[
https://issues.apache.org/jira/browse/CASSSIDECAR-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18015319#comment-18015319
]
Arjun Ashok commented on CASSSIDECAR-274:
-----------------------------------------
Hi Andres, Thanks for the detailed proposal.
Assuming the intention here is to trigger an asynchronous node restart job,
that can be updated or checked for status/progress, you might want to refer to
the sidecar [job-management
framework|https://github.com/apache/cassandra-sidecar/tree/trunk/server/src/main/java/org/apache/cassandra/sidecar/job].
The node {{decommission}} API is currently integrated with it for reference.
Operations for {{repair}}, {{drain}}, {{rebuild}} are upcoming integrations.
It also comes with [job-management
APIs|https://github.com/apache/cassandra-sidecar/blob/trunk/client-common/src/main/java/org/apache/cassandra/sidecar/common/ApiEndpointsV1.java#L139-L140]
List-jobs: {{GET /api/v1/cassandra/operational-jobs}}
Get job: {{GET /api/v1/cassandra/operational-jobs/<job-uuid>}}
Couple of areas where it might have to be enhanced based on your needs are -
1. Updating an existing job (or it's state in your case)
2. Having the job return some metadata either as a response or in the status.
The existing design currently supports returning just the job status.
> Enable rolling restarts of Cassandra clusters via Sidecar
> ---------------------------------------------------------
>
> Key: CASSSIDECAR-274
> URL: https://issues.apache.org/jira/browse/CASSSIDECAR-274
> Project: Sidecar for Apache Cassandra
> Issue Type: Improvement
> Reporter: Isaac Reath
> Priority: Major
> Attachments: Screenshot 2025-08-13 at 12.34.43 PM.png
>
>
> Rolling restarts are frequently used in Cassandra to apply changes to a
> cluster such as configuration changes, or version upgrades. In
> CASSSIDECAR-266, we are adding functionality to safely start and stop a
> single Cassandra node via Sidecar. This ticket will build on that work to
> implement a coordinated rolling restart.
> The scope of this effort includes:
> * Adding API endpoints to enable operators to start, monitor, pause and stop
> a rolling restart.
> * Updating Sidecar to orchestrate start and stop operations across the
> cluster, allowing for a configurable amount of nodes to be offline
> simultaneously.
> * Creating safeguards to ensure that a rolling restart is safe to perform
> and does not interfere with other operations ongoing in the cluster such as
> node bootstraps or decommissions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]