Skip to content

Instantly share code, notes, and snippets.

View okulik's full-sized avatar
🦋

Orest K okulik

🦋
  • go/ruby/elixir fun
  • Zagreb, Croatia
  • 06:38 (UTC +02:00)
  • X @nisdom
View GitHub Profile
@okulik
okulik / elastic-ec2.md
Created April 4, 2015 11:55
ElasticSearch installation, EC2 instance provisioning, logstash configuration etc.

Provisioning EC2 instance for ElasticSearch

EC2 instance type

Use c3.xlarge instance or c3.2xlarge instance to store ElasticSearch server. We need a fair bit of RAM and computing power, as well as 2 SSD disks for storage. We need to choose exising IAM role or create a new one so that ElasticSearch can seamlessly discover other cluster nodes hosted on EC2. Also, don't forget to add both SSDs to the list of devices (/dev/sdb and /dev/sdc).

Linux system modification

Increase number of open file handles

First we need to increase system-wide file descriptor limits. To make it work temporary (will reset on the next reboot) execute from bash:

### Keybase proof
I hereby claim:
* I am okulik on github.
* I am orest (https://keybase.io/orest) on keybase.
* I have a public key whose fingerprint is 4FE6 A851 6029 A60D 4896 943C CBAE 180C 5F39 9B20
To claim this, I am signing this object: