Skip to content

[Enhancement] Do not assume node role from node index during sequential rolls #123

@jdheyburn

Description

@jdheyburn

Currently the sequential roll pods logic will target the replica index of a shard to roll first before moving onto the primary.

Given that the role can change during the lifecycle of the cluster, this may not always be the current replica.

This should be enhanced such that all replicas are rolled first before moving onto the primary.

This could be retrieved via the Status.Role of the ValkeyNodes for a shard, however that check may need to be enhanced.

Perhaps a new function getReplicasForShard and getPrimaryForShard could be introduced.

Perhaps a preStop script for the pods can be introduced to invoke a CLUSTER FAILOVER if the pod is priamry, and await for reconciliation can be added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions