This file contains 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
public String version() | |
public void start(Map<String, String> map) | |
public Class<? extends Task> taskClass() | |
public List<Map<String, String>> taskConfigs(int i) | |
public void stop() |
This file contains 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
[2014-05-28 12:16:08,698][INFO ][http ] [Xorr the God-Jewel] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/100.92.56.47:9200]} | |
[2014-05-28 12:16:08,736][INFO ][gateway ] [Xorr the God-Jewel] recovered [0] indices into cluster_state | |
[2014-05-28 12:16:08,737][INFO ][node ] [Xorr the God-Jewel] started | |
[2014-05-28 12:16:30,667][INFO ][cluster.service ] [Xorr the God-Jewel] added {[Occulus][SmioHKuCRFmiixo_6NLkfg][apiserv2][inet[/100.92.26.62:9300]],}, reason: zen-disco-receive(join from node[[Occulus][SmioHKuCRFmiixo_6NLkfg][apiserv2][inet[/100.92.26.62:9300]]]) |
This file contains 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
#put that into your config/elasticsearch.yml file | |
cloud: | |
azure: | |
keystore: #path your keystore file | |
password: #the password of your keystore, you didnt forget to put one right? ;) | |
subscription_id: #your Azure subscription ID | |
service_name: #this one should be common for all your VMs which is also the case for those belonging to the same #availability zone | |
discovery: | |
type: azure |
This file contains 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
./bin/plugin -install elasticsearch/elasticsearch-cloud-azure/2.2.0 |
This file contains 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
#it requires to have your keys created already | |
openssl pkcs8 -topk8 -nocrypt -in azure-private.key -inform PEM -out azure-pk.pem -outform PEM | |
openssl x509 -inform der -in azure-certificate.cer -out azure-cert.pem | |
cat azure-cert.pem azure-pk.pem > azure.pem.txt | |
openssl pkcs12 -export -in azure.pem.txt -out azurekeystore.pkcs12 -name azure -noiter -nomaciter |
This file contains 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
#do not forget to do the following in an appropriate directory ;) | |
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout azure-private.key -out azure-certificate.pem | |
chmod 600 * | |
openssl x509 outform der -in azure-certificate.pem -out azure-certificate.cer |
This file contains 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
service mysql start --wsrep-new-cluster |
This file contains 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
[mysqld] | |
#mysql settings | |
binlog_format=ROW | |
default-storage-engine=innodb | |
innodb_autoinc_lock_mode=2 | |
query_cache_size=0 | |
query_cache_type=0 | |
bind-address=0.0.0.0 | |
#galera settings |
This file contains 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
DEBIAN_FRONTEND=noninteractive apt-get install -y rsync galera mariadb-galera-server |
This file contains 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
apt-get install software-properties-common python-software-properties | |
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db | |
sudo add-apt-repository 'deb http://mirror.klaus-uwe.me/mariadb/repo/5.5/ubuntu saucy main' | |
apt-get update |
NewerOlder