Multi cast removed
This commit is contained in:
parent
4edc56f104
commit
dcbebf79c6
6 changed files with 12 additions and 17 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
|
/vars/Debian.yml
|
||||||
.kitchen/
|
.kitchen/
|
||||||
license.json
|
license.json
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
|
||||||
17
README.md
17
README.md
|
|
@ -66,7 +66,7 @@ The following illustrates applying configuration parameters to an Elasticsearch
|
||||||
node.data: false,
|
node.data: false,
|
||||||
node.master: true,
|
node.master: true,
|
||||||
bootstrap.memory_lock: true,
|
bootstrap.memory_lock: true,
|
||||||
discovery.zen.ping.multicast.enabled: false }
|
}
|
||||||
}
|
}
|
||||||
vars:
|
vars:
|
||||||
es_scripts: false
|
es_scripts: false
|
||||||
|
|
@ -75,7 +75,7 @@ The following illustrates applying configuration parameters to an Elasticsearch
|
||||||
es_heap_size: 1g
|
es_heap_size: 1g
|
||||||
```
|
```
|
||||||
`
|
`
|
||||||
The role utilises Elasticsearch version defaults. Multicast is therefore disabled for 5.x. The following should be set to ensure a successful cluster forms.
|
The role utilises Elasticsearch version defaults. The following should be set to ensure a successful cluster forms.
|
||||||
|
|
||||||
* ```es_config['http.port']``` - the http port for the node
|
* ```es_config['http.port']``` - the http port for the node
|
||||||
* ```es_config['transport.tcp.port']``` - the transport port for the node
|
* ```es_config['transport.tcp.port']``` - the transport port for the node
|
||||||
|
|
@ -105,7 +105,7 @@ A more complex example:
|
||||||
node.data: false,
|
node.data: false,
|
||||||
node.master: true,
|
node.master: true,
|
||||||
bootstrap.memory_lock: true,
|
bootstrap.memory_lock: true,
|
||||||
discovery.zen.ping.multicast.enabled: false }
|
}
|
||||||
}
|
}
|
||||||
vars:
|
vars:
|
||||||
es_scripts: false
|
es_scripts: false
|
||||||
|
|
@ -144,14 +144,13 @@ recommended in any multi node cluster configuration.
|
||||||
- { role: elasticsearch, es_instance_name: "node1", es_heap_size: "1g",
|
- { role: elasticsearch, es_instance_name: "node1", es_heap_size: "1g",
|
||||||
es_config: {
|
es_config: {
|
||||||
cluster.name: "test-cluster",
|
cluster.name: "test-cluster",
|
||||||
"discovery.zen.ping.multicast.enabled": false,
|
|
||||||
discovery.zen.ping.unicast.hosts: "elastic02:9300",
|
discovery.zen.ping.unicast.hosts: "elastic02:9300",
|
||||||
http.port: 9200,
|
http.port: 9200,
|
||||||
transport.tcp.port: 9300,
|
transport.tcp.port: 9300,
|
||||||
node.data: false,
|
node.data: false,
|
||||||
node.master: true,
|
node.master: true,
|
||||||
bootstrap.memory_lock: false,
|
bootstrap.memory_lock: false,
|
||||||
discovery.zen.ping.multicast.enabled: false }
|
}
|
||||||
}
|
}
|
||||||
vars:
|
vars:
|
||||||
es_scripts: false
|
es_scripts: false
|
||||||
|
|
@ -166,19 +165,17 @@ recommended in any multi node cluster configuration.
|
||||||
roles:
|
roles:
|
||||||
- { role: elasticsearch, es_instance_name: "node1", es_data_dirs: "/opt/elasticsearch",
|
- { role: elasticsearch, es_instance_name: "node1", es_data_dirs: "/opt/elasticsearch",
|
||||||
es_config: {
|
es_config: {
|
||||||
"discovery.zen.ping.multicast.enabled": false,
|
|
||||||
discovery.zen.ping.unicast.hosts: "elastic02:9300",
|
discovery.zen.ping.unicast.hosts: "elastic02:9300",
|
||||||
http.port: 9200,
|
http.port: 9200,
|
||||||
transport.tcp.port: 9300,
|
transport.tcp.port: 9300,
|
||||||
node.data: true,
|
node.data: true,
|
||||||
node.master: false,
|
node.master: false,
|
||||||
bootstrap.memory_lock: false,
|
bootstrap.memory_lock: false,
|
||||||
cluster.name: "test-cluster",
|
cluster.name: "test-cluster"
|
||||||
discovery.zen.ping.multicast.enabled: false }
|
}
|
||||||
}
|
}
|
||||||
- { role: elasticsearch, es_instance_name: "node2",
|
- { role: elasticsearch, es_instance_name: "node2",
|
||||||
es_config: {
|
es_config: {
|
||||||
"discovery.zen.ping.multicast.enabled": false,
|
|
||||||
discovery.zen.ping.unicast.hosts: "elastic02:9300",
|
discovery.zen.ping.unicast.hosts: "elastic02:9300",
|
||||||
http.port: 9201,
|
http.port: 9201,
|
||||||
transport.tcp.port: 9301,
|
transport.tcp.port: 9301,
|
||||||
|
|
@ -186,7 +183,7 @@ recommended in any multi node cluster configuration.
|
||||||
node.master: false,
|
node.master: false,
|
||||||
bootstrap.memory_lock: false,
|
bootstrap.memory_lock: false,
|
||||||
cluster.name: "test-cluster",
|
cluster.name: "test-cluster",
|
||||||
discovery.zen.ping.multicast.enabled: false }
|
}
|
||||||
}
|
}
|
||||||
vars:
|
vars:
|
||||||
es_scripts: false
|
es_scripts: false
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
roles:
|
roles:
|
||||||
#expand to all available parameters
|
#expand to all available parameters
|
||||||
- { role: elasticsearch, es_instance_name: "node1", es_data_dirs: ["/opt/elasticsearch/data-1","/opt/elasticsearch/data-2"], es_log_dir: "/opt/elasticsearch/logs", es_work_dir: "/opt/elasticsearch/temp", es_user_id: 333, es_group_id: 333, es_config: {node.name: "node1", cluster.name: "custom-cluster", discovery.zen.ping.unicast.hosts: "localhost:9301", http.port: 9201, transport.tcp.port: 9301, node.data: false, node.master: true, bootstrap.memory_lock: true, discovery.zen.ping.multicast.enabled: false } }
|
- { role: elasticsearch, es_instance_name: "node1", es_data_dirs: ["/opt/elasticsearch/data-1","/opt/elasticsearch/data-2"], es_log_dir: "/opt/elasticsearch/logs", es_work_dir: "/opt/elasticsearch/temp", es_user_id: 333, es_group_id: 333, es_config: {node.name: "node1", cluster.name: "custom-cluster", discovery.zen.ping.unicast.hosts: "localhost:9301", http.port: 9201, transport.tcp.port: 9301, node.data: false, node.master: true, bootstrap.memory_lock: true } }
|
||||||
vars:
|
vars:
|
||||||
es_scripts: false
|
es_scripts: false
|
||||||
es_templates: false
|
es_templates: false
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ shared_examples 'config::init' do |es_version|
|
||||||
it { should contain 'transport.tcp.port: 9301' }
|
it { should contain 'transport.tcp.port: 9301' }
|
||||||
it { should contain 'node.data: false' }
|
it { should contain 'node.data: false' }
|
||||||
it { should contain 'node.master: true' }
|
it { should contain 'node.master: true' }
|
||||||
it { should contain 'discovery.zen.ping.multicast.enabled: false' }
|
|
||||||
it { should contain 'cluster.name: custom-cluster' }
|
it { should contain 'cluster.name: custom-cluster' }
|
||||||
it { should contain 'node.name: node1' }
|
it { should contain 'node.name: node1' }
|
||||||
it { should contain 'bootstrap.memory_lock: true' }
|
it { should contain 'bootstrap.memory_lock: true' }
|
||||||
|
|
@ -76,7 +75,7 @@ shared_examples 'config::init' do |es_version|
|
||||||
end
|
end
|
||||||
|
|
||||||
#test to make sure mlock was applied
|
#test to make sure mlock was applied
|
||||||
describe command('curl -s "localhost:9201/_nodes/process?pretty" | grep memory_lock') do
|
describe command('curl -s "localhost:9201/_nodes/process?pretty" | grep mlockall') do
|
||||||
its(:stdout) { should match /true/ }
|
its(:stdout) { should match /true/ }
|
||||||
its(:exit_status) { should eq 0 }
|
its(:exit_status) { should eq 0 }
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ shared_examples 'multi::init' do |es_version,plugins|
|
||||||
it { should contain 'transport.tcp.port: 9301' }
|
it { should contain 'transport.tcp.port: 9301' }
|
||||||
it { should contain 'node.data: true' }
|
it { should contain 'node.data: true' }
|
||||||
it { should contain 'node.master: false' }
|
it { should contain 'node.master: false' }
|
||||||
it { should contain 'discovery.zen.ping.multicast.enabled: false' }
|
|
||||||
it { should contain 'node.name: localhost-node1' }
|
it { should contain 'node.name: localhost-node1' }
|
||||||
it { should_not contain 'bootstrap.memory_lock: true' }
|
it { should_not contain 'bootstrap.memory_lock: true' }
|
||||||
it { should contain 'path.conf: /etc/elasticsearch/node1' }
|
it { should contain 'path.conf: /etc/elasticsearch/node1' }
|
||||||
|
|
@ -42,7 +41,6 @@ shared_examples 'multi::init' do |es_version,plugins|
|
||||||
it { should contain 'transport.tcp.port: 9300' }
|
it { should contain 'transport.tcp.port: 9300' }
|
||||||
it { should contain 'node.data: false' }
|
it { should contain 'node.data: false' }
|
||||||
it { should contain 'node.master: true' }
|
it { should contain 'node.master: true' }
|
||||||
it { should contain 'discovery.zen.ping.multicast.enabled: false' }
|
|
||||||
it { should contain 'node.name: localhost-master' }
|
it { should contain 'node.name: localhost-master' }
|
||||||
it { should contain 'bootstrap.memory_lock: true' }
|
it { should contain 'bootstrap.memory_lock: true' }
|
||||||
it { should contain 'path.conf: /etc/elasticsearch/master' }
|
it { should contain 'path.conf: /etc/elasticsearch/master' }
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
- name: Elasticsearch Multi tests
|
- name: Elasticsearch Multi tests
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
roles:
|
roles:
|
||||||
- { role: elasticsearch, es_instance_name: "master", es_data_dirs: ["/opt/elasticsearch/master"], es_heap_size: "1g", es_config: { "discovery.zen.ping.multicast.enabled": false, discovery.zen.ping.unicast.hosts: "localhost:9300", http.port: 9200, transport.tcp.port: 9300, node.data: false, node.master: true, bootstrap.memory_lock: true, discovery.zen.ping.multicast.enabled: false } }
|
- { role: elasticsearch, es_instance_name: "master", es_data_dirs: ["/opt/elasticsearch/master"], es_heap_size: "1g", es_config: { discovery.zen.ping.unicast.hosts: "localhost:9300", http.port: 9200, transport.tcp.port: 9300, node.data: false, node.master: true, bootstrap.memory_lock: true } }
|
||||||
- { role: elasticsearch, es_instance_name: "node1", es_data_dirs: "/opt/elasticsearch/data-1,/opt/elasticsearch/data-2", es_config: { "discovery.zen.ping.multicast.enabled": false, discovery.zen.ping.unicast.hosts: "localhost:9300", http.port: 9201, transport.tcp.port: 9301, node.data: true, node.master: false, discovery.zen.ping.multicast.enabled: false } }
|
- { role: elasticsearch, es_instance_name: "node1", es_data_dirs: "/opt/elasticsearch/data-1,/opt/elasticsearch/data-2", es_config: { discovery.zen.ping.unicast.hosts: "localhost:9300", http.port: 9201, transport.tcp.port: 9301, node.data: true, node.master: false } }
|
||||||
vars:
|
vars:
|
||||||
es_scripts: true
|
es_scripts: true
|
||||||
es_templates: true
|
es_templates: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue