Skip to content

Instantly share code, notes, and snippets.

@rmax
Forked from reyjrar/elasticsearch.yml
Created January 28, 2017 04:27
Show Gist options
  • Save rmax/937257c69e72d5f30bf6788897a0eb98 to your computer and use it in GitHub Desktop.
Save rmax/937257c69e72d5f30bf6788897a0eb98 to your computer and use it in GitHub Desktop.

Revisions

  1. @reyjrar reyjrar revised this gist Nov 7, 2013. 1 changed file with 15 additions and 6 deletions.
    21 changes: 15 additions & 6 deletions elasticsearch.yml
    Original file line number Diff line number Diff line change
    @@ -14,12 +14,6 @@ node.datacenter: amsterdam
    # Force all memory to be locked, forcing the JVM to never swap
    bootstrap.mlockall: true

    # Indexing Settings for Writes
    indices.memory.index_buffer_size: 50%
    index.refresh_interval: 30
    index.translog.flush_threshold_ops: 50000
    index.store.compress.stored: true

    ## Threadpool Settings ##

    # Search pool
    @@ -37,6 +31,21 @@ threadpool.index.type: fixed
    threadpool.index.size: 20
    threadpool.index.queue_size: 100

    # Indices settings
    indices.memory.index_buffer_size: 30%
    indices.memory.min_shard_index_buffer_size: 12mb
    indices.memory.min_index_buffer_size: 96mb

    # Cache Sizes
    indices.fielddata.cache.size: 15%
    indices.fielddata.cache.expire: 6h
    indices.cache.filter.size: 15%
    indices.cache.filter.expire: 6h

    # Indexing Settings for Writes
    index.refresh_interval: 30s
    index.translog.flush_threshold_ops: 50000

    # Minimum nodes alive to constitute an operational cluster
    discovery.zen.minimum_master_nodes: 2

  2. @reyjrar reyjrar created this gist Dec 23, 2012.
    45 changes: 45 additions & 0 deletions elasticsearch.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,45 @@
    ##################################################################
    # /etc/elasticsearch/elasticsearch.yml
    #
    # Base configuration for a write heavy cluster
    #

    # Cluster / Node Basics
    cluster.name: logng

    # Node can have abritrary attributes we can use for routing
    node.name: logsearch-01
    node.datacenter: amsterdam

    # Force all memory to be locked, forcing the JVM to never swap
    bootstrap.mlockall: true

    # Indexing Settings for Writes
    indices.memory.index_buffer_size: 50%
    index.refresh_interval: 30
    index.translog.flush_threshold_ops: 50000
    index.store.compress.stored: true

    ## Threadpool Settings ##

    # Search pool
    threadpool.search.type: fixed
    threadpool.search.size: 20
    threadpool.search.queue_size: 100

    # Bulk pool
    threadpool.bulk.type: fixed
    threadpool.bulk.size: 60
    threadpool.bulk.queue_size: 300

    # Index pool
    threadpool.index.type: fixed
    threadpool.index.size: 20
    threadpool.index.queue_size: 100

    # Minimum nodes alive to constitute an operational cluster
    discovery.zen.minimum_master_nodes: 2

    # Unicast Discovery (disable multicast)
    discovery.zen.ping.multicast.enabled: false
    discovery.zen.ping.unicast.hosts: [ "logsearch-01", "logsearch-02", "logsearch-03" ]