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

Hot Reload of Nodes List #699

Open
VictorCavichioli opened this issue Aug 21, 2024 · 0 comments
Open

Hot Reload of Nodes List #699

VictorCavichioli opened this issue Aug 21, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request PoC/Agent Tasks related to new generation of ecchronos as an agent

Comments

@VictorCavichioli
Copy link
Contributor

VictorCavichioli commented Aug 21, 2024

Story Description:
Occasionally, it is necessary to perform bootstrapping, remove nodes, and decommission in Cassandra clusters. Therefore, it is required to periodically reload the list of nodes, refresh the JMX connections with these nodes, and reconcile the nodes_sync table to ensure it aligns with the latest information.

I think that the process for it might be:

  1. Create a new nodes list based on the agent type (As the provider does);
  2. If the length is equal, compare the node_id, if all is equal, so we don't need to reconcile anything, else, prepare for reconcile;
  3. If the length is not equal, so you need to compare the difference and then modifying the nodes_sync table, including and/or deleting the nodes;
  4. Refresh the nodes list on DistributedNativeProvider with the current nodes list;
  5. Refresh the nodes list on the DistributedJmxProvider with the current nodes list;
  6. Refresh the Jmx connections, closing and/or opening connections with the respective new nodes list.

Also, an time interval for this hot reload must be available on ecc.yml, I'd say that we can check it by default using 1 day of interval or even more].

Acceptance Criteria:

NA

Definition of Done:

Hot reload feature working as described, code approved by maintainers, time interval specified in ecc.yml

Notes:

This would required an really complex integration test, please evaluate if it can be done in the same patch or in a different one.

Related to #652

@VictorCavichioli VictorCavichioli added enhancement New feature or request PoC/Agent Tasks related to new generation of ecchronos as an agent labels Aug 21, 2024
@paulchandler paulchandler self-assigned this Sep 9, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 9, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 9, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 9, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 10, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 10, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 11, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 11, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 11, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 11, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 11, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 11, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 11, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 11, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 11, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 11, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 11, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 11, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 14, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 14, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 14, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 14, 2024
paulchandler pushed a commit to paulchandler/ecchronos that referenced this issue Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PoC/Agent Tasks related to new generation of ecchronos as an agent
Projects
None yet
Development

No branches or pull requests

2 participants