我想知道如何获得其中一个集群的索引大小。
我想知道我的群集上是否还有足够的空间,或者是否需要增加其大小。
在Solr的本地实例中,我能够提出以下请求:
curl" http://localhost:8888/solr/admin/cores?action=STATUS&wt=json"
响应:
{
"responseHeader": {
"status": 0,
"QTime": 0
},
"initFailures": {},
"status": {
"gettingstarted_shard2_replica1": {
"name": "gettingstarted_shard2_replica1",
"instanceDir": "/Users/hacker/Documents/solr-5.3.1/example/cloud/node1/solr/gettingstarted_shard2_replica1/",
"dataDir": "/Users/hacker/Documents/solr-5.3.1/example/cloud/node1/solr/gettingstarted_shard2_replica1/data/",
"config": "solrconfig.xml",
"schema": "managed-schema",
"startTime": "2016-03-05T01:51:09.964Z",
"uptime": 69420729,
"index": {
"numDocs": 0,
"maxDoc": 0,
"deletedDocs": 0,
"indexHeapUsageBytes": 0,
"version": 2,
"segmentCount": 0,
"current": true,
"hasDeletions": false,
"directory": "org.apache.lucene.store.NRTCachingDirectory:NRTCachingDirectory(MMapDirectory@/Users/user/Documents/solr-5.3.1/example/cloud/node1/solr/gettingstarted_shard2_replica1/data/index lockFactory=org.apache.lucene.store.NativeFSLockFactory@662d167e; maxCacheMB=48.0 maxMergeSizeMB=4.0)",
"userData": {},
"sizeInBytes": 71,
"size": "71 bytes"
}
}
}
}
但是R& R阻止了action = STATUS和action = CLUSTERSTATUS(403 Forbidden response)。
找到任何有关如何实现此目标的见解由于