2016-03-06 26 views
3

我想知道如何获得我的一个群集的索引大小。如何检查我的R&R集群中有多少空间?

我想知道我的群集中是否仍有足够的空间,或者是否需要增加其大小。

Solr中的本地实例,我能提出以下要求:

卷曲 “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([email protected]/Users/user/Documents/solr-5.3.1/example/cloud/node1/solr/gettingstarted_shard2_replica1/data/index [email protected]; maxCacheMB=48.0 maxMergeSizeMB=4.0)", 
     "userData": {}, 
     "sizeInBytes": 71, 
     "size": "71 bytes" 
     } 
    } 
    } 
} 

但这两个动作=状态和行动= CLUSTERSTATUS被阻止R & R(403禁止响应)。

我找不到我怎么能在R&R documentation

感谢

回答

2

Retrieve and Rank服务现在有一个stats API来确定磁盘和内存使用情况。您可以通过发送GET请求来访问它:

/v1/solr_clusters/{cluster-id}/stats 
2

这目前还不支持实现这一目标的任何见解;我们会阻止这些特定的管理API,但我们很快会添加单独的服务级别统计信息API,以便让您深入了解诸如已用磁盘空间,RAM等内容。一旦暴露出来,我将用指针更新此答案。

与此同时,如果您想获得这些信息,请打开支持服务单,我们很乐意为您提供相关信息。


更新:的answer的URI路径Greg