[
https://issues.apache.org/jira/browse/CASSSIDECAR-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956449#comment-17956449
]
Arjun Ashok commented on CASSSIDECAR-253:
-----------------------------------------
Thanks for the proposal.
Few minor suggestions -
- Consistency with with the existing `gossip` resource endpoint, namely
`/api/v1/cassandra/gossip/_health`, so nesting under a `/gossip` resource.
- Although `DELETE` is more RESTful, it does not correlate with stopping a
service IMO. I'd prefer for it to be more explicit.
Potentially something like:
`PUT /api/v1/cassandra/operations/gossip/start`
`PUT /api/v1/cassandra/operations/gossip/stop`
And likewise for native:
`PUT /api/v1/cassandra/operations/native-transport/start`
`PUT /api/v1/cassandra/operations/native-transport/stop`
Although the above options are not purely RESTful (verb/action resource), I
feel it's a reasonable tradeoff to having something a little more verbose (but
a valid alternative) like this in the body of the PUT `{ "state": "start|stop"
}`.
> Create API to enable/disable gossip & enable/disable Native Transport via
> sidecar
> ---------------------------------------------------------------------------------
>
> Key: CASSSIDECAR-253
> URL: https://issues.apache.org/jira/browse/CASSSIDECAR-253
> Project: Sidecar for Apache Cassandra
> Issue Type: New Feature
> Components: Rest API
> Reporter: Yuntong Qu
> Assignee: Yuntong Qu
> Priority: Normal
> Fix For: 0.2
>
>
> Currently we can enable/disable gossip & enable/disable Native Transport via
> nodetool. This can be useful for traffic shaping and quarantine misbehaving
> nodes.
> We would like to create APIs to enable/disable gossip & enable/disable Native
> Transport in sidecar, to more easily intergrate with automated control planes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]