How do I change the heap sizes for Elasticsearch and Logstash?
Scale up the default Elasticsearch and Logstash heap size for each service to match your deployment.
About this task
Before deciding on the heap size for your deployment, consider these guidelines:
- Elasticsearch recommends that you assign 50 percent of available memory to the Elasticsearch client service, but not exceed 30.5 GB. Based on these recommendations, configure the Elasticsearch client and data services heap in IBM® Spectrum Conductor to use 6 to 8 GB. If your hosts have more memory (for example, 1 TB), tune these options as recommended in Heap: Sizing and Swapping.
- The default garbage collector for Elasticsearch is Concurrent-Mark and Sweep (CMS). To prevent long stop-the-world pauses, do not configure the heap size to be higher than what the CMS garbage collector was designed for (6 to 8 GB). . For more information, see Elasticsearch setup and configuration.
Procedure
Follow these steps to scale up your Elasticsearch and Logstash heap sizes: