Elasticsearch - Locking Memory for Production
Each row is a An individual credit transaction made by a state employee on a specific date.
Here is what I have done to lock the memory on my ES nodes, version 5.4.0 on RedHat/Centos 7 (it will work on other distributions if they use systemd).
You must make the change in 4 different places:
/etc/sysconfig/elasticsearch you should have:
ES_JAVA_OPTS="-Xms4g -Xmx4g" MAX_LOCKED_MEMORY=unlimited
(replace 4g with HALF your available RAM as recommended [here])
On security limits config:
/etc/security/limits.conf you should have
elasticsearch soft memlock unlimited elasticsearch hard memlock unlimited
On the service script:
/usr/lib/systemd/system/elasticsearch.service you should uncomment:
you should do systemctl daemon-reload after changing the service script
On elasticsearch config finally:
/etc/elasticsearch/elasticsearch.yml you should add:
Thats it, restart your node and the RAM will be locked, you should notice a major performance improvement.
Next you can update your site name, avatar and other options using the _config.yml file in the root of your repository (shown below).
The easiest way to make your first post is to edit this one. Go into /_posts/ and update the Hello World markdown file. For more instructions head over to the Jekyll Now repository on GitHub.