Open
Description
CrateDB version
5.10.8
CrateDB setup information
docker run --publish=4200:4200 crate/crate:5.10.8 \
-Cnode.attr.zone=a \
-Ccluster.routing.allocation.awareness.attributes=zone \
-Ccluster.routing.allocation.awareness.force.zone.values=a,b,c \
-Ccluster.routing.allocation.cluster_concurrent_rebalance=99
Problem description
Certain cluster-wide attributes aren't shown in sys.cluster
. I was trying to reproduce an issue with a multi-zone setup reported in the community and started a Docker container as described above.
To validate if my settings got applied correctly, I want to query sys.cluster
and check if they appear.
Steps to Reproduce
- Run a Docker container as described above
SELECT settings['cluster']['routing']['allocation'] FROM sys.cluster
Actual Result
{
"allow_rebalance": "indices_all_active",
"balance": {
"index": 0.55,
"shard": 0.45,
"threshold": 1.0
},
"cluster_concurrent_rebalance": 99,
"disk": {
"threshold_enabled": true,
"watermark": {
"flood_stage": "95%",
"high": "90%",
"low": "85%"
}
},
"enable": "all",
"exclude": {
"_host": "",
"_id": "",
"_ip": "",
"_name": ""
},
"include": {
"_host": "",
"_id": "",
"_ip": "",
"_name": ""
},
"node_concurrent_recoveries": 2,
"node_initial_primaries_recoveries": 4,
"require": {
"_host": "",
"_id": "",
"_ip": "",
"_name": ""
},
"total_shards_per_node": -1
}
Observations:
"cluster_concurrent_rebalance": 99
has been applied successfully from the Docker startup parameters- There is no sign of
cluster.routing.allocation.awareness.attributes
orcluster.routing.allocation.awareness.force.zone.values
.
Expected Result
cluster.routing.allocation.awareness.attributes
and cluster.routing.allocation.awareness.force.zone.values
are shown in sys.cluster
, so one can check if they got applied correctly or not.