8000 Allocation awareness settings not shown in `sys.cluster` · Issue #18047 · crate/crate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Allocation awareness settings not shown in sys.cluster #18047
Open
@hammerhead

Description

@hammerhead

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

  1. Run a Docker container as described above
  2. 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:

  1. "cluster_concurrent_rebalance": 99 has been applied successfully from the Docker startup parameters
  2. There is no sign of cluster.routing.allocation.awareness.attributes or cluster.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageAn issue that needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0