Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a status flag for scaling #16368

Open
neverchanje opened this issue Apr 18, 2024 · 0 comments
Open

a status flag for scaling #16368

neverchanje opened this issue Apr 18, 2024 · 0 comments
Assignees
Milestone

Comments

@neverchanje
Copy link
Contributor

neverchanje commented Apr 18, 2024

Is your feature request related to a problem? Please describe.

Only the RisingWave kernel is able to tell whether the scaling is still in progress.
Therefore, we should expose a flag in a system table indicating the scaling status.
With the flag, RW Cloud can collect the start time and end time of scaling by polling for the status change.

Describe the solution you'd like

I'd like to propose a system table rw_cluster_info:

| instype | address | version | githash | status | starttime | uptime |

Once all nodes are 'ready', the cluster can be viewed as recovered from downtime.

--- It's supposed to return an empty result set.
SELECT *
FROM rw_cluster_info
WHERE status != 'ready';

The status column is redundant from an informational completeness perspective and is maintained only for clarity. The uptime column already indicates whether the cluster is ready. If a node is dead, the uptime field should be set to null.

@shanicky Please correct me if my understanding is different from the implementation.

Describe alternatives you've considered

No response

Additional context

also cc: @xuefengze

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants