This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## For a node | |
This tells ES to not move shards around if a node/nodes drops out of the cluster; | |
`curl -XPUT eshost.example.com:9200/_cluster/settings -d '{"transient":{"cluster.routing.allocation.enable": none}}'` | |
`sudo service elasticsearch restart` | |
`curl -XPUT eshost.example.com:9200/_cluster/settings -d '{"transient":{"cluster.routing.allocation.enable": all}}'` | |
When you are done and the node/nodes are back, they will reinitialise their local shards and you're cluster should be back to green as fast as the local node can work. | |
## For a cluster |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This assumes a 5 node cluster - one master aggregator (172.16.1.1), one aggregator (172.16.1.2) and 4 leaves (172.16.1.3-6) - and that you have a download URL from MemSQL. | |
## On all nodes | |
apt-get install g++ mysql-client-core-5.5 | |
wget ${MEMSQL_DOWNLOAD_URL} | |
dpkg -i ${MEMSQL_DOWNLOAD} | |
# Check that things are running and you can connect | |
mysql -u root -h 127.0.0.1 -P 3306 --prompt="memsql> " | |
# Install collectd | |
apt-get install libtool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen *:80; | |
server_name kibana.domain.com; | |
access_log /var/log/nginx/kibana_access.log; | |
error_log /var/log/nginx/kibana_error.log; | |
location /kibana { | |
root /var/www; | |
index index.html; |
NewerOlder