1 shard, 0 replica.
Update default template:
curl -X PUT http://localhost:9200/_template/default -H 'Content-Type: application/json' -d '{"index_patterns": ["*"],"order": -1,"settings": {"number_of_shards": "1","number_of_replicas": "0"}}' 1 shard, 0 replica.
Update default template:
curl -X PUT http://localhost:9200/_template/default -H 'Content-Type: application/json' -d '{"index_patterns": ["*"],"order": -1,"settings": {"number_of_shards": "1","number_of_replicas": "0"}}' | package main | |
| import ( | |
| "flag" | |
| "github.com/streadway/amqp" | |
| "log" | |
| "time" | |
| ) | |
| var amqpUri = flag.String("r", "amqp://guest:guest@127.0.0.1/", "RabbitMQ URI") |