Please suggest performance settings for my ElasticSearch cluster

Hi all! As Mark suggested I have done the changes:

  1. This is my new configuration

     cluster.name: xxxx_search
     node.name: xxxx-master-1
     node.data: true
     node.master: true
    
     bootstrap.mlockall: true
     index.cache.query.enable: true
     transport.tcp.compress: true;
    
     network.bind_host: xxx.xxx.xxx.xxx
     network.publish_host: xxx.xxx.xxx.xxx
     network.host: xxx.xxx.xxx.xxx
     discovery.zen.ping.unicast.hosts: ["xxx.xxx.xxx.xxx"]
     discovery.zen.ping.multicast.enabled: false
     discovery.zen.ping.timeout: 10s
     transport.tcp.port: 9300
     http.port: 9200
     http.max_content_length: 500mb
    
     index.search.slowlog.threshold.query.warn: 10s
     index.search.slowlog.threshold.query.info: 5s
     index.search.slowlog.threshold.query.debug: 2s
     index.search.slowlog.threshold.query.trace: 500ms
    
     script.engine.groovy.inline.aggs: on
     script.inline: on
     script.indexed: on
     index.max_result_window: 10000
    
  2. I have set 2 shards on each index insteat of 8 .

Here is now the graph of the JVM HEAP

Is it ok it this way? What do you think?

I will write you tomorrow, when there are 12 hours uptime.

Thanks for the suggestions from all of you! If there is someone with more suggestions, please write I can test it asap!

Cheers
Nik