Solution for elasticsearch 0.13.1 as JSON file (i used default values only)
If you look for YML configuration example,then go this page:
https://github.com/elasticsearch/elasticsearch/blob/master/config/elasticsearch.yml
Some general information about configuration can be found:
http://www.elasticsearch.org/guide/reference/setup/configuration.html
and here:
http://www.elasticsearch.org/guide/
{
"gateway": {
"type": "fs", //shared file system
"fs": {
"location": "/opt/elasticsearch/data/cluster" //locaction of shared file system
"recover_after_nodes": 1,
"expected_nodes": 1,
"recover_after_time": "5m"
},
"cluster": {
"name": "dom"
},
"node": {
"data": true,
"master": true
},
"index": {
"number_of_shards" : 1,
"number_of_replicas" : 3
},
"bootstrap": {
"mlockall": true
},
"http": {
"enabled": true,
"port": 9200
},
"index": {
"number_of_shards": 1,
"number_of_replicas" :3
},
"node": {
"data": true,
"master": true
},
"store": {
"type": "memory",
"cacheSize": "100m",
"bufferSize": "10k"
},
"transport": {
"port": 9300,
"tcp": {
"compress": true
}
},
"routing": {
"allocation": {
"node_initial_primaries_recoveries" : 4,
"node_concurrent_recoveries": 2
}
}
}
No comments:
Post a Comment