Skip to content

Instantly share code, notes, and snippets.

@amankrbl
Last active March 16, 2016 08:01
Show Gist options
  • Save amankrbl/962f0cc85f360eb28e80 to your computer and use it in GitHub Desktop.
Save amankrbl/962f0cc85f360eb28e80 to your computer and use it in GitHub Desktop.
Graylog Scale up

Elasticsearch cluster scale out

  • Remove one elastic search node from the cluster to create AMI

      curl -XPUT localhost:9200/_cluster/settings -d '{
        "transient" :{
            "cluster.routing.allocation.exclude._ip" : "10.0.0.1"
         }
      }';echo
    
  • Wait for shards to relocate

  • Create AMI of the above stopped machine

  • Include the node stopped in step 1 to the cluster

      curl -XPUT localhost:9200/_cluster/settings -d '{
        "transient" :{
            "cluster.routing.allocation.include._ip" : "10.0.0.1"
         }
      }';echo
    
  • With the AMI created in step 3 launch one new instance.

  • Remove the data and log from new created machine.

  • Create the AMI of this freshly created machine for creating new machines.

  • Add the above machine in gralog cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment