2014-02-09 13:19:03 -05:00
|
|
|
---
|
2015-03-24 18:19:57 -04:00
|
|
|
"Help":
|
|
|
|
- do:
|
|
|
|
cat.shards:
|
|
|
|
help: true
|
|
|
|
|
|
|
|
- match:
|
|
|
|
$body: |
|
|
|
|
/^ index .+ \n
|
|
|
|
shard .+ \n
|
|
|
|
prirep .+ \n
|
|
|
|
state .+ \n
|
|
|
|
docs .+ \n
|
|
|
|
store .+ \n
|
|
|
|
ip .+ \n
|
|
|
|
id .+ \n
|
|
|
|
node .+ \n
|
|
|
|
completion.size .+ \n
|
|
|
|
fielddata.memory_size .+ \n
|
|
|
|
fielddata.evictions .+ \n
|
|
|
|
filter_cache.memory_size .+ \n
|
|
|
|
filter_cache.evictions .+ \n
|
|
|
|
flush.total .+ \n
|
|
|
|
flush.total_time .+ \n
|
|
|
|
get.current .+ \n
|
|
|
|
get.time .+ \n
|
|
|
|
get.total .+ \n
|
|
|
|
get.exists_time .+ \n
|
|
|
|
get.exists_total .+ \n
|
|
|
|
get.missing_time .+ \n
|
|
|
|
get.missing_total .+ \n
|
|
|
|
indexing.delete_current .+ \n
|
|
|
|
indexing.delete_time .+ \n
|
|
|
|
indexing.delete_total .+ \n
|
|
|
|
indexing.index_current .+ \n
|
|
|
|
indexing.index_time .+ \n
|
|
|
|
indexing.index_total .+ \n
|
|
|
|
merges.current .+ \n
|
|
|
|
merges.current_docs .+ \n
|
|
|
|
merges.current_size .+ \n
|
|
|
|
merges.total .+ \n
|
|
|
|
merges.total_docs .+ \n
|
|
|
|
merges.total_size .+ \n
|
|
|
|
merges.total_time .+ \n
|
|
|
|
percolate.current .+ \n
|
|
|
|
percolate.memory_size .+ \n
|
|
|
|
percolate.queries .+ \n
|
|
|
|
percolate.time .+ \n
|
|
|
|
percolate.total .+ \n
|
|
|
|
refresh.total .+ \n
|
|
|
|
refresh.time .+ \n
|
|
|
|
search.fetch_current .+ \n
|
|
|
|
search.fetch_time .+ \n
|
|
|
|
search.fetch_total .+ \n
|
|
|
|
search.open_contexts .+ \n
|
|
|
|
search.query_current .+ \n
|
|
|
|
search.query_time .+ \n
|
|
|
|
search.query_total .+ \n
|
|
|
|
segments.count .+ \n
|
|
|
|
segments.memory .+ \n
|
|
|
|
segments.index_writer_memory .+ \n
|
|
|
|
segments.index_writer_max_memory .+ \n
|
|
|
|
segments.version_map_memory .+ \n
|
|
|
|
segments.fixed_bitset_memory .+ \n
|
|
|
|
warmer.current .+ \n
|
|
|
|
warmer.total .+ \n
|
|
|
|
warmer.total_time .+ \n
|
|
|
|
$/
|
|
|
|
---
|
2014-02-09 13:19:03 -05:00
|
|
|
"Test cat shards output":
|
|
|
|
|
|
|
|
- do:
|
2014-12-12 08:51:20 -05:00
|
|
|
cat.shards:
|
|
|
|
v: false
|
2014-02-09 13:19:03 -05:00
|
|
|
|
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-02-09 13:19:03 -05:00
|
|
|
/^$/
|
|
|
|
|
|
|
|
- do:
|
2014-03-10 08:48:17 -04:00
|
|
|
indices.create:
|
|
|
|
index: index1
|
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
number_of_shards: "5"
|
|
|
|
number_of_replicas: "1"
|
2014-02-09 13:19:03 -05:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: yellow
|
|
|
|
- do:
|
2014-12-12 08:51:20 -05:00
|
|
|
cat.shards:
|
|
|
|
v: false
|
2014-02-09 13:19:03 -05:00
|
|
|
|
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-02-09 13:19:03 -05:00
|
|
|
/^(index1 \s+ \d \s+ (p|r) \s+ ((STARTED|INITIALIZING) \s+ (\d \s+ (\d+|\d+[.]\d+)(kb|b) \s+)? \d{1,3}.\d{1,3}.\d{1,3}.\d{1,3} \s+ .+|UNASSIGNED \s+) \n?){10}$/
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: index2
|
|
|
|
body:
|
|
|
|
settings:
|
2014-03-10 08:48:17 -04:00
|
|
|
number_of_shards: "5"
|
2014-02-09 13:19:03 -05:00
|
|
|
number_of_replicas: "0"
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: yellow
|
2014-06-03 04:48:11 -04:00
|
|
|
wait_for_relocating_shards: 0
|
2014-02-09 13:19:03 -05:00
|
|
|
|
|
|
|
- do:
|
2014-12-12 08:51:20 -05:00
|
|
|
cat.shards:
|
|
|
|
v: false
|
2014-02-09 13:19:03 -05:00
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-02-09 13:19:03 -05:00
|
|
|
/^(index(1|2) \s+ \d \s+ (p|r) \s+ ((STARTED|INITIALIZING) \s+ (\d \s+ (\d+|\d+[.]\d+)(kb|b) \s+)? \d{1,3}.\d{1,3}.\d{1,3}.\d{1,3} \s+ .+|UNASSIGNED \s+) \n?){15}$/
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.shards:
|
|
|
|
index: index2
|
2014-12-12 08:51:20 -05:00
|
|
|
v: false
|
2014-02-09 13:19:03 -05:00
|
|
|
- match:
|
2014-05-02 18:27:40 -04:00
|
|
|
$body: |
|
2014-02-09 13:19:03 -05:00
|
|
|
/^(index2 \s+ \d \s+ (p|r) \s+ ((STARTED|INITIALIZING) \s+ (\d \s+ (\d+|\d+[.]\d+)(kb|b) \s+)? \d{1,3}.\d{1,3}.\d{1,3}.\d{1,3} \s+ .+|UNASSIGNED \s+) \n?){5}$/
|
2015-03-06 13:35:14 -05:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: index3
|
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
number_of_shards: "1"
|
|
|
|
number_of_replicas: "1"
|
|
|
|
shadow_replicas: true
|
|
|
|
shared_filesystem: false
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: yellow
|
|
|
|
wait_for_relocating_shards: 0
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cat.shards:
|
|
|
|
index: index3
|
|
|
|
v: false
|
|
|
|
- match:
|
|
|
|
$body: |
|
|
|
|
/^(index3 \s+ \d \s+ (p|s) \s+ ((STARTED|INITIALIZING) \s+ (\d \s+ (\d+|\d+[.]\d+)(kb|b) \s+)? \d{1,3}.\d{1,3}.\d{1,3}.\d{1,3} \s+ .+|UNASSIGNED \s+) \n?){2}$/
|
|
|
|
|