[ https://issues.apache.org/jira/browse/SOLR-6325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shalin Shekhar Mangar updated SOLR-6325: ---------------------------------------- Attachment: SOLR-6325.patch # More refactoring # Exposed cache statistics too # Moved the statistics to its own "stats" section in the response {code} { "responseHeader":{ "status":0, "QTime":2399}, "cluster":{ "collections":{ "collection1":{ "shards":{"shard1":{ "range":"80000000-7fffffff", "state":"active", "replicas":{"core_node1":{ "state":"active", "base_url":"http://127.0.1.1:8983/solr", "core":"collection1", "node_name":"127.0.1.1:8983_solr", "leader":"true", "stats":{ "/select":{ "15minRateReqsPerSecond":0.020777404380269187, "75thPcRequestTime":16.5131245, "999thPcRequestTime":23.885722, "requests":6, "avgRequestsPerSecond":0.002879798788323655, "99thPcRequestTime":23.885722, "95thPcRequestTime":23.885722, "avgTimePerRequest":8.255495666666667, "5minRateReqsPerSecond":2.2744935458792422E-4, "medianRequestTime":4.984649, "totalTime":49.532974}, "documentCache":{ "cumulative_hits":14, "cumulative_inserts":7, "cumulative_evictions":0, "cumulative_lookups":21}, "filterCache":{ "cumulative_hits":0, "cumulative_inserts":0, "cumulative_evictions":0, "cumulative_lookups":0}, "/get":{ "15minRateReqsPerSecond":0.0, "75thPcRequestTime":0.0, "999thPcRequestTime":0.0, "requests":0, "avgRequestsPerSecond":0.0, "99thPcRequestTime":0.0, "95thPcRequestTime":0.0, "avgTimePerRequest":0.0, "5minRateReqsPerSecond":0.0, "medianRequestTime":0.0, "totalTime":0.0}, "queryResultCache":{ "cumulative_hits":1, "cumulative_inserts":4, "cumulative_evictions":0, "cumulative_lookups":5}, "/replication":{ "15minRateReqsPerSecond":1.2007506401163562E-4, "75thPcRequestTime":1.150843, "999thPcRequestTime":1.150843, "99thPcRequestTime":1.150843, "95thPcRequestTime":1.150843, "5minRateReqsPerSecond":4.206957310723102E-6, "indexSizeBytes":11801, "requests":1, "avgRequestsPerSecond":4.7997019618170594E-4, "avgTimePerRequest":1.150843, "indexSize":"11.52 KB", "medianRequestTime":1.150843, "totalTime":1.150843}, "/update":{ "15minRateReqsPerSecond":8.553393156539473E-4, "75thPcRequestTime":3.793427, "999thPcRequestTime":29.892342, "requests":7, "avgRequestsPerSecond":0.0033597832110602117, "99thPcRequestTime":29.892342, "95thPcRequestTime":29.892342, "avgTimePerRequest":6.517293, "5minRateReqsPerSecond":3.103535401845922E-5, "medianRequestTime":2.425348, "totalTime":45.621051}, "searcher":{ "maxDoc":7, "deletedDocs":0, "numDocs":7}, "fieldValueCache":{ "cumulative_hits":0, "cumulative_inserts":0, "cumulative_evictions":0, "cumulative_lookups":0}, "perSegFilter":{ "cumulative_hits":0, "cumulative_inserts":0, "cumulative_evictions":0, "cumulative_lookups":0}}}}, "stats":{ "/select":{ "avgTimePerRequest":8.255495666666667, "requests":6, "totalTime":49.532974}, "documentCache":{ "cumulative_hits":14, "cumulative_inserts":7, "cumulative_evictions":0, "cumulative_lookups":21}, "filterCache":{ "cumulative_hits":0, "cumulative_inserts":0, "cumulative_evictions":0, "cumulative_lookups":0}, "/get":{ "avgTimePerRequest":0.0, "requests":0, "totalTime":0.0}, "queryResultCache":{ "cumulative_hits":1, "cumulative_inserts":4, "cumulative_evictions":0, "cumulative_lookups":5}, "/replication":{ "avgTimePerRequest":1.150843, "requests":1, "indexSize":"11.52 KB", "indexSizeBytes":11801, "totalTime":1.150843}, "/update":{ "avgTimePerRequest":6.5172930000000004, "requests":7, "totalTime":45.621051}, "fieldValueCache":{ "cumulative_hits":0, "cumulative_inserts":0, "cumulative_evictions":0, "cumulative_lookups":0}, "searcher":{ "maxDoc":7, "deletedDocs":0, "numDocs":7}, "perSegFilter":{ "cumulative_hits":0, "cumulative_inserts":0, "cumulative_evictions":0, "cumulative_lookups":0}}}}, "maxShardsPerNode":"1", "router":{"name":"compositeId"}, "replicationFactor":"1", "autoCreated":"true", "stats":{ "/select":{ "avgTimePerRequest":8.255495666666667, "requests":6, "totalTime":49.532974}, "documentCache":{ "cumulative_hits":14, "cumulative_inserts":7, "cumulative_evictions":0, "cumulative_lookups":21}, "filterCache":{ "cumulative_hits":0, "cumulative_inserts":0, "cumulative_evictions":0, "cumulative_lookups":0}, "/get":{ "avgTimePerRequest":0.0, "requests":0, "totalTime":0.0}, "queryResultCache":{ "cumulative_hits":1, "cumulative_inserts":4, "cumulative_evictions":0, "cumulative_lookups":5}, "/replication":{ "avgTimePerRequest":1.150843, "requests":1, "indexSize":"11.52 KB", "indexSizeBytes":11801, "totalTime":1.150843}, "/update":{ "avgTimePerRequest":6.5172930000000004, "requests":7, "totalTime":45.621051}, "fieldValueCache":{ "cumulative_hits":0, "cumulative_inserts":0, "cumulative_evictions":0, "cumulative_lookups":0}, "searcher":{ "maxDoc":7, "deletedDocs":0, "numDocs":7}, "perSegFilter":{ "cumulative_hits":0, "cumulative_inserts":0, "cumulative_evictions":0, "cumulative_lookups":0}}}}, "live_nodes":["127.0.1.1:8983_solr"]}} {code} > Expose per-collection and per-shard aggregate statistics > -------------------------------------------------------- > > Key: SOLR-6325 > URL: https://issues.apache.org/jira/browse/SOLR-6325 > Project: Solr > Issue Type: Sub-task > Components: SolrCloud > Reporter: Shalin Shekhar Mangar > Assignee: Shalin Shekhar Mangar > Fix For: 4.9, 5.0 > > Attachments: SOLR-6325.patch, SOLR-6325.patch, SOLR-6325.patch, > SOLR-6325.patch > > > SolrCloud doesn't provide any aggregate stats about the cluster or a > collection. Very common questions such as document counts per shard, index > sizes, request rates etc cannot be answered easily without figuring out the > cluster state, invoking multiple core admin APIs and aggregating them > manually. > I propose that we expose an API which returns each of the following on a > per-collection and per-shard basis: > # Document counts > # Index size on disk > # Query request rate > # Indexing request rate > # Real time get request rate > I am not yet sure if this should be a distributed search component or a > collection API. -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org