Skip to content

Instantly share code, notes, and snippets.

@astrobounce
astrobounce / elaticsearch.yml
Created August 21, 2018 18:40
Hot/Warm Node Elasticsearch Configuration
########## Sample elasticsearch.yml ################
cluster.name: < Your Cluster Name >
node.name: < Identified which is generated on installing cluster >
path.data: /data/elasticsearch
path.logs: /var/log/elasticsearch
node.master: false #### < Value Depends on type of node >
node.data: true #### < Value Depends on type of node >
@astrobounce
astrobounce / gist:6fb27116d9308080eb257b60e0680404
Created August 21, 2018 18:25
Helper Code to Launch Instances with Elasticsearch configured .
### Sample Helper Code to Launcg Elasticsearch cluster preconfigured Instance
from troposphere import Ref, Join
from troposphere import autoscaling, policies, Base64
from magicdict import MagicDict
class EC2_MASTER(MagicDict):
def __init__(self, parameters):
@astrobounce
astrobounce / gist:3f4d7178201df0e210f4671b9d32f478
Created August 21, 2018 18:10
Main Template generation code
### Sample Template Generation Code
from troposphere import GetAtt, Output, Template
from parameters import Parameters
from ec2_master import EC2_MASTER
from loadbalancer import LoadBalancer
from mappings import Mappings