Skip to content

Instantly share code, notes, and snippets.

@mahnunchik
Created October 7, 2013 12:09
Show Gist options
  • Save mahnunchik/6866796 to your computer and use it in GitHub Desktop.
Save mahnunchik/6866796 to your computer and use it in GitHub Desktop.
Status API (num_docs, max_doc, deleted_docs) http://localhost:9200/photos/_status?pretty
{
"ok" : true,
"_shards" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"indices" : {
"photos" : {
"index" : {
"primary_size" : "5.4gb",
"primary_size_in_bytes" : 5831593376,
"size" : "5.4gb",
"size_in_bytes" : 5831593376
},
"translog" : {
"operations" : 0
},
"docs" : {
"num_docs" : 4642751,
"max_doc" : 5912872,
"deleted_docs" : 1270121
},
"merges" : {
"current" : 0,
"current_docs" : 0,
"current_size" : "0b",
"current_size_in_bytes" : 0,
"total" : 0,
"total_time" : "0s",
"total_time_in_millis" : 0,
"total_docs" : 0,
"total_size" : "0b",
"total_size_in_bytes" : 0
},
"refresh" : {
"total" : 5582,
"total_time" : "31m",
"total_time_in_millis" : 1863527
},
"flush" : {
"total" : 463,
"total_time" : "1.4h",
"total_time_in_millis" : 5280017
},
"shards" : {
"0" : [ {
"routing" : {
"state" : "STARTED",
"primary" : true,
"node" : "j0PZd_knTAO6cv0k9AWj3Q",
"relocating_node" : null,
"shard" : 0,
"index" : "photos"
},
"state" : "STARTED",
"index" : {
"size" : "5.4gb",
"size_in_bytes" : 5831593376
},
"translog" : {
"id" : 1381132140748,
"operations" : 0
},
"docs" : {
"num_docs" : 4642751,
"max_doc" : 5912872,
"deleted_docs" : 1270121
},
"merges" : {
"current" : 0,
"current_docs" : 0,
"current_size" : "0b",
"current_size_in_bytes" : 0,
"total" : 0,
"total_time" : "0s",
"total_time_in_millis" : 0,
"total_docs" : 0,
"total_size" : "0b",
"total_size_in_bytes" : 0
},
"refresh" : {
"total" : 5582,
"total_time" : "31m",
"total_time_in_millis" : 1863527
},
"flush" : {
"total" : 463,
"total_time" : "1.4h",
"total_time_in_millis" : 5280017
}
} ]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment