Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##################### ElasticSearch Configuration #####################
- # Managed by Puppet
- # DO NOT EDIT
- ################################### Cluster ###################################
- # Cluster name identifies your cluster for auto-discovery. If you're running
- # multiple clusters on the same network, make sure you're using unique names.
- #
- cluster.name: esdev1_cluster
- #################################### Node #####################################
- # Node names are generated dynamically on startup, so you're relieved
- # from configuring them manually. You can tie this node to a specific name:
- #
- # node.name: "Franz Kafka"
- # Every node can be configured to allow or deny being eligible as the master,
- # and to allow or deny to store the data.
- #
- # Allow this node to be eligible as a master node (enabled by default):
- #
- node.master: true
- #
- # Allow this node to store data (enabled by default):
- #
- node.data: true
- # A node can have generic attributes associated with it, which can later be used
- # for customized shard allocation filtering, or allocation awareness. An attribute
- # is a simple key value pair, similar to node.key: value, here is an example:
- #
- node.rack: rack314
- #################################### Index ####################################
- # Set the number of shards (splits) of an index (5 by default):
- #
- index.number_of_shards: 8
- # Set the number of replicas (additional copies) of an index (1 by default):
- #
- index.number_of_replicas: 1
- # Field Data Cache (Faceting)
- index.cache.field.type: soft
- index.cache.field.max_size: 25000
- # Stats API refresh interval
- index.cache.stats.refresh_interval: 5s
- # Index Buffer
- indices.memory.index_buffer_size: 10%
- # Dynamic Mappings
- index.mapper.dyanmic: false
- # After how many operations to flush. Defaults to 5000
- index.translog.flush_threshold_ops: 200000
- # Merge Factor
- index.merge.policy.merge_factor: 10
- # Minimim merge size for segments. Defaults to 1.6mb
- index.merge.policy.min_merge_size: 2.7mb
- #################################### Paths ####################################
- # Path to directory containing configuration (this file and logging.yml):
- #
- path.conf: /etc/elasticsearch
- # Path to directory where to store index data allocated for this node.
- #
- path.data: /data/0/elasticsearch,/data/1/elasticsearch,/data/2/elasticsearch,/data/3/elasticsearch,/data/4/elasticsearch,/data/5/elasticsearch,/data/6/elasticsearch,/data/7/elasticsearch
- # Path to temporary files:
- #
- path.work: /tmp/elasticsearch
- # Path to log files:
- #
- path.logs: /var/log/elasticsearch
- # Path to where plugins are installed:
- #
- path.plugins: /usr/share/java/elasticsearch/plugins
- ################################### Memory ####################################
- # ElasticSearch performs poorly when JVM starts swapping: you should ensure that
- # it _never_ swaps.
- #
- # Set this property to true to lock the memory:
- #
- bootstrap.mlockall: true
- # Make sure that the ES_MIN_MEM and ES_MAX_MEM environment variables are set
- # to the same value, and that the machine has enough memory to allocate
- # for ElasticSearch, leaving enough memory for the operating system itself.
- #
- # You should also make sure that the ElasticSearch process is allowed to lock
- # the memory, eg. by using `ulimit -l unlimited`.
- ############################## Network And HTTP ###############################
- # ElasticSearch, by default, binds itself to the 0.0.0.0 address, and listens
- # on port [9200-9300] for HTTP traffic and on port [9300-9400] for node-to-node
- # communication. (the range means that if the port is busy, it will automatically
- # try the next port).
- # Set the bind address specifically (IPv4 or IPv6):
- #
- # network.bind_host: 192.168.0.1
- # Set the address other nodes will use to communicate with this node. If not
- # set, it is automatically derived. It must point to an actual IP address.
- #
- # network.publish_host: 192.168.0.1
- # Set both 'bind_host' and 'publish_host':
- #
- # network.host: 192.168.0.1
- # Set a custom port for the node to node communication (9300 by default):
- #
- # transport.port: 9300
- # Enable compression for all communication between nodes (disabled by default):
- #
- # transport.tcp.compress: true
- # Set a custom port to listen for HTTP traffic:
- #
- # http.port: 9200
- # Set a custom allowed content length:
- #
- http.max_content_length: 100mb
- # Disable HTTP completely:
- #
- # http.enabled: false
- ################################### Mappings ###################################
- # Turn off dynamic mapping
- index.mapper.dynamic: false
- ################################### Gateway ###################################
- # The gateway allows for persisting the cluster state between full cluster
- # restarts. Every change to the state (such as adding an index) will be stored
- # in the gateway, and when the cluster starts up for the first time,
- # it will read its state from the gateway.
- # There are several types of gateway implementations. For more information,
- # see <http://elasticsearch.org/guide/reference/modules/gateway>.
- # The default gateway type is the "local" gateway (recommended):
- #
- gateway.type: local
- # Settings below control how and when to start the initial recovery process on
- # a full cluster restart (to reuse as much local data as possible).
- # Allow recovery process after N nodes in a cluster are up:
- #
- gateway.recover_after_nodes: 3
- # Set the timeout to initiate the recovery process, once the N nodes
- # from previous setting are up (accepts time value):
- #
- gateway.recover_after_time: 5m
- # Set how many nodes are expected in this cluster. Once these N nodes
- # are up, begin recovery process immediately:
- #
- gateway.expected_nodes: 3
- ############################# Recovery Throttling #############################
- # These settings allow to control the process of shards allocation between
- # nodes during initial recovery, replica allocation, rebalancing,
- # or when adding and removing nodes.
- # Set the number of concurrent recoveries happening on a node:
- #
- # 1. During the initial recovery
- #
- cluster.routing.allocation.node_initial_primaries_recoveries: 4
- #
- # 2. During adding/removing nodes, rebalancing, etc
- #
- cluster.routing.allocation.node_concurrent_recoveries: 4
- # Set to throttle throughput when recovering (eg. 100mb, by default unlimited):
- #
- indices.recovery.max_size_per_sec: 0
- # Set to limit the number of open concurrent streams when
- # recovering a shard from a peer:
- #
- indices.recovery.concurrent_streams: 5
- ################################## Discovery ##################################
- # Discovery infrastructure ensures nodes can be found within a cluster
- # and master node is elected. Multicast discovery is the default.
- # Set to ensure a node sees N other master eligible nodes to be considered
- # operational within the cluster. Set this option to a higher value (2-4)
- # for large clusters:
- #
- discovery.zen.minimum_master_nodes: 1
- # Set the time to wait for ping responses from other nodes when discovering.
- # Set this option to a higher value on a slow or congested network
- # to minimize discovery failures:
- #
- discovery.zen.ping.timeout: 10s
- # 1. Disable multicast discovery (enabled by default):
- #
- discovery.zen.ping.multicast.enabled: false
- discovery.zen.ping.multicast.group: 224.2.2.4
- discovery.zen.ping.multicast.port: 54328
- discovery.zen.ping.multicast.ttl: 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement