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

Handle ip changes #2

Conversation

ivan-kripakov-m10
Copy link

@ivan-kripakov-m10 ivan-kripakov-m10 commented Dec 21, 2023

Pull request is associated with issue distribworks#1442

I made several things here:

  1. add server_lookup and pass it to raft transport layer to provide possibility for ip changing in cluster (id -> ip mapping is updated on serf events)
  2. add serf member update handling
  3. resolve todo Query each of the servers and make sure they report no Raft peers. (I'm not sure if it is correct approach)
  4. Avoid self removing from raft cluster in leader loop because it leads to raft shutdown (on both add [don't remove if server id matches, just update configuration] and remove peer [skip if server id matches with current])

I built image and tested it in k8s using this helm - distribworks/dkron-helm#7
Seems like everything works fine now

Victor Castell and others added 5 commits July 22, 2022 20:16
* Convert shell plugin to internal plugin

The purpose of this PR is to embed the shell plugin in the main dkron binary, that will facilitate creating a single binary with the most important executor, for easy deployment using a single binary.

* Remove debugging
* Release a light image tag

Omit all plugins except the shell plugin that will be included in the main binary.
@ivan-kripakov-m10
Copy link
Author

ivan-kripakov-m10 commented Dec 21, 2023

dkron is deployed to feature/try-147 now

@ivan-kripakov-m10 ivan-kripakov-m10 force-pushed the handle_ip_changes branch 2 times, most recently from f9c445b to 98be95b Compare January 4, 2024 14:32
@ivan-kripakov-m10 ivan-kripakov-m10 marked this pull request as draft January 4, 2024 15:07
@ivan-kripakov-m10
Copy link
Author

PR will be included in 4.x Dkron release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

5 participants