summaryrefslogtreecommitdiffstats
path: root/protocols
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@verizonmedia.com>2020-01-17 12:39:12 +0100
committerHåkon Hallingstad <hakon@verizonmedia.com>2020-01-17 12:39:12 +0100
commitc28f13dac59167dee1257f5b23835e6441bc5f31 (patch)
tree7910cb0ce12e37b7af828c3b13c14b84cbcb0105 /protocols
parentb324c19e007a7a57ba731ed72a01d35cd6937ed7 (diff)
Use bucket_space metric in retirement
This makes the Cluster Controller use the vds.datastored.bucket_space.buckets_total, dimension bucketSpace=default, to determine whether a content node manages zero buckets, and if so, will allow the node to go permanently down. This is used when a node is retiring, and it is to be removed from the application. The change is guarded by the use-bucket-space-metric, default true. If the new metric doesn't work as expected, we can revert to using the current/old metric by flipping the flag. The flag can be controlled per application.
Diffstat (limited to 'protocols')
-rw-r--r--protocols/getnodestate/host_info.json34
-rw-r--r--protocols/getnodestate/slow_host_info.json34
2 files changed, 68 insertions, 0 deletions
diff --git a/protocols/getnodestate/host_info.json b/protocols/getnodestate/host_info.json
index 5bfa4f3171c..b14eaa0e13c 100644
--- a/protocols/getnodestate/host_info.json
+++ b/protocols/getnodestate/host_info.json
@@ -30,6 +30,40 @@
"last": 3069833
},
"dimensions": {}
+ },
+ {
+ "name":"vds.datastored.bucket_space.buckets_total",
+ "description":"Total number buckets present in the bucket space (ready + not ready)",
+ "values":
+ {
+ "average":0.0,
+ "sum":0.0,
+ "count":1,
+ "rate":0.016666,
+ "min":0,
+ "max":0,
+ "last":0
+ },
+ "dimensions":
+ {
+ "bucketSpace":"global"
+ }
+ },
+ {
+ "name": "vds.datastored.bucket_space.buckets_total",
+ "description": "Total number buckets present in the bucket space (ready + not ready)",
+ "values": {
+ "average": 129.0,
+ "sum": 129.0,
+ "count": 1,
+ "rate": 0.016666,
+ "min": 129,
+ "max": 129,
+ "last": 129
+ },
+ "dimensions": {
+ "bucketSpace": "default"
+ }
}
]
},
diff --git a/protocols/getnodestate/slow_host_info.json b/protocols/getnodestate/slow_host_info.json
index a489ac0a4b1..b792e45d5d6 100644
--- a/protocols/getnodestate/slow_host_info.json
+++ b/protocols/getnodestate/slow_host_info.json
@@ -9,6 +9,40 @@
"values":
[
{
+ "name":"vds.datastored.bucket_space.buckets_total",
+ "description":"Total number buckets present in the bucket space (ready + not ready)",
+ "values":
+ {
+ "average":0.0,
+ "sum":0.0,
+ "count":1,
+ "rate":0.016666,
+ "min":0,
+ "max":0,
+ "last":0
+ },
+ "dimensions":
+ {
+ "bucketSpace":"global"
+ }
+ },
+ {
+ "name": "vds.datastored.bucket_space.buckets_total",
+ "description": "Total number buckets present in the bucket space (ready + not ready)",
+ "values": {
+ "average": 129.0,
+ "sum": 129.0,
+ "count": 1,
+ "rate": 0.016666,
+ "min": 129,
+ "max": 129,
+ "last": 129
+ },
+ "dimensions": {
+ "bucketSpace": "default"
+ }
+ },
+ {
"name":"vds.datastored.alldisks.buckets",
"description":"buckets managed",
"values":