Last active
September 15, 2016 07:00
-
-
Save markuskont/77fc367ee3dbc9586abc6e74579875b6 to your computer and use it in GitHub Desktop.
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 indice in `pcregrep --color -o1 '^\S+\s+\S+\s+(\S+)' indices.txt `; do | |
curl -ss -XPUT localhost:9200/$indice/_settings -d ' | |
{ | |
"index" : { | |
"number_of_replicas" : 0 | |
} | |
}' | |
done |
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 indice in `pcregrep --color -o1 '^\S+\s+\S+\s+(\S+)' indices.txt `; do | |
curl -ss -XPUT localhost:9200/$indice/_settings -d ' | |
{ | |
"index" : { | |
"routing" : { | |
"allocation" : { | |
"total_shards_per_node" : "2" | |
} | |
}, | |
"number_of_replicas" : 1 | |
} | |
}' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment