我如何查看我的 R&R 集群消耗了多少 space?
How can I check how much space I have consumed in one of my R&R clusters?
我想知道如何获得我的一个集群的索引大小。
我想知道我的集群上是否还有足够的 space 或者我是否需要增加它的大小。
在 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(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"
}
}
}
}
但是action=STATUS 和action=CLUSTERSTATUS 都被R&R 屏蔽了(403 Forbidden response)。
我无法在 R&R documentation
找到任何有关如何完成此操作的见解
谢谢
目前还不支持;我们阻止了那些特定的管理 API,但我们很快会添加单独的服务级别统计 API,让您深入了解已用磁盘 space、RAM 等。一旦这些公开,我将更新此答案指针。
同时,如果您想获取此信息,请打开支持票,我们很乐意为您获取信息。
更新: URI 路径参见 Greg's 。
检索和排名服务现在有一个统计信息 API 来确定磁盘和内存使用情况。您可以通过向以下地址发送 GET 请求来访问它:
/v1/solr_clusters/{cluster-id}/stats
我想知道如何获得我的一个集群的索引大小。
我想知道我的集群上是否还有足够的 space 或者我是否需要增加它的大小。
在 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(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"
}
}
}
}
但是action=STATUS 和action=CLUSTERSTATUS 都被R&R 屏蔽了(403 Forbidden response)。
我无法在 R&R documentation
找到任何有关如何完成此操作的见解谢谢
目前还不支持;我们阻止了那些特定的管理 API,但我们很快会添加单独的服务级别统计 API,让您深入了解已用磁盘 space、RAM 等。一旦这些公开,我将更新此答案指针。
同时,如果您想获取此信息,请打开支持票,我们很乐意为您获取信息。
更新: URI 路径参见 Greg's
检索和排名服务现在有一个统计信息 API 来确定磁盘和内存使用情况。您可以通过向以下地址发送 GET 请求来访问它:
/v1/solr_clusters/{cluster-id}/stats