Skip to content

Refactor: Consider removing cluster id from code base #5609

@v0y4g3r

Description

@v0y4g3r

What type of enhancement is this?

Refactor

What does the enhancement do?

The cluster_id field was originally intended to isolate nodes from different clusters, allowing metasrv to be shared among various GreptimeDB clusters. However, since the cluster ID is not assigned anywhere and is largely ignored, it can lead to confusion. We need to remove this field because we will not rely on it for tenant isolation.

Implementation challenges

The main challenge is metadata compatibility in that many key values in metasrv contains a cluster id field, for example:

pub struct DatanodeLeaseKey {
pub cluster_id: ClusterId,
pub node_id: u64,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions