...
Code Block |
---|
# ======================== Elasticsearch Configuration ========================= # # NOTE: Elasticsearch comes with reasonable defaults for most settings. # Before you set out to tweak and tune the configuration, make sure you # understand what are you trying to accomplish and the consequences. # # The primary way of configuring a node is via this file. This template lists # the most important settings you may want to configure for a production cluster. # # Please seeconsult the documentation for further information on configuration options: # <httphttps://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>index.html # # ---------------------------------- Cluster ----------------------------------- # # Use a descriptive name for your cluster: # cluster.name: resource_cluster #cluster.name: my-application # # ------------------------------------ Node ------------------------------------ # # Use a descriptive name for the node: # # node.name: node-1master # # Add custom attributes to the node: # # node#node.attr.rack: r1 # # ----------------------------------- Paths ------------------------------------ # # Path to directory where to store the data (separate multiple locations by comma): # # path.data: /pathvar/tolib/dataelasticsearch # # Path to log files: # # path.logs: /pathvar/tolog/logselasticsearch # # ----------------------------------- Memory ----------------------------------- # # Lock the memory on startup: # bootstrap#bootstrap.mlockallmemory_lock: true # # Make sure that the `ES_HEAP_SIZE` environment variableheap size is set to about half the memory available # available on the system and that the owner of the process is allowed to use this # limit. # # Elasticsearch performs poorly when the system is swapping the memory. # # ---------------------------------- Network ----------------------------------- # # Set the bind adressaddress to a specific IP (IPv4 or IPv6): # network.host: 0.0.0.0 # # Set a custom port for HTTP: # # http#http.port: 9200 # # For more information, seeconsult the documentationnetwork at: # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>module documentation. # # ---------------------------------- GatewayDiscovery ----------------------------------- # # Pass Blockan initial recoverylist afterof ahosts fullto clusterperform restartdiscovery untilwhen Nthis nodesnode areis started: # # gateway.recover_after_nodes: 3The default list of hosts is ["127.0.0.1", "[::1]"] # #discovery.seed_hosts: ["host1", "host2"] # # Bootstrap the cluster using an initial set of master-eligible nodes: # cluster.initial_master_nodes: ["master"] # # For more information, seeconsult the discovery and documentationcluster at:formation # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>module documentation. # # ---------------------------------- DiscoveryGateway ----------------------------------- # # ElasticsearchBlock nodesinitial willrecovery findafter eacha otherfull viacluster unicast,restart byuntil default.N # # Pass an initial list of hosts to perform discovery when new node is nodes are started: # The default list of hosts is ["127.0.0.1", "[::1]"] # # discovery.zen.ping.unicast.hosts: ["host1", "host2"] # # Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1): # # discovery.zen.minimum_master#gateway.recover_after_nodes: 3 # # For more information, seeconsult the documentation at: # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html> gateway module documentation. # # ---------------------------------- Various ----------------------------------- # # Disable starting multiple nodes on a single system: # # node.max_local_storage_nodes: 1 # # Require explicit names when deleting indices: # # action.destructive_requires_name: true # # Increase number of shards index.number_of_shards: 16 # increase threadpool for search and index threadpool.search. http.cors.enabled: true http.cors.allow-origin: "*" http.cors.allow-headers: "Authorization, Content-Type" thread_pool.get.queue_size: 100000 thread_pool.write.queue_size: 100000 thread_pool.search.queue_size: 7500 thread_pool.search.min_queue_size: 1000005000 threadpoolthread_pool.indexsearch.max_queue_size: 10000010000 |
Celery
The pertinent celeryconfig settings are:
...