-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Signal decoupling #462
base: master
Are you sure you want to change the base?
Signal decoupling #462
Conversation
First of all, thanks for iterating on this. I think @InsanePrawn should have communicated more clearly what we were working on when we reverted the original
The
The current work on this feature is in branch https://github.com/zrepl/zrepl/tree/trigger-wait-reset-rearchitecture .
Sadly, the branch is not exactly in a state where it can be picked up by someone other than myself. Since you are obviously interested in this topic, maybe we (= @calistoc @InsanePrawn and myself) should find some time to discuss how we proceed on this? (Feel free to join the IRC chat, |
Yes I read it but I didn’t know where you were with the reworking
That looks great!
If you know this will take some time you may consider my PR as a step forward to the same direction, otherwise just reject it and no worries from my side :) |
I'll have to think a little more about whether the work-in-progress will be a strict subset of the externally visible behavior. If it's a strict subset we might as well do it. If not then I'd rather let the PR sit open and set some artificial deadline for the work-in-progress :D
The question whether a manually-triggered snapshot invocation should trigger invocation was an open design question with the work-in-progress. Did you have a specific reason to not trigger replicatione? Can you think of use cases that would need it? What do you think of |
Not many to be honest, let say you need some additional snapshots but the network is overloaded so having automatic replication could create network issues. Anyhow talking about cli commands I just thought that being very specific about what is triggered would give more flexibility, that imho would mean more use cases could be addressed even those we still can’t think of.
This looks good but I would prefer the following, especially with scripting: zrepl signal -–wait snapshot JOB I really like the idea of the --wait with signals, once it will be implemented of course, also my PR would benefit of the --wait as it would be better to be sure some tasks are completed before running other signals with the same JOB and snapshots. |
Changed zrepl cli signaling decoupling the signals for each task, snapshot, replicate, prune and reset.
$ zrepl [snapshot|replicate|prune|reset] JOB
Added the same signals in the zrepl status GUI.
Every signal will just do what it says, nothing more, as an example the snapshot signal will just do snapshots and won’t trigger replication nor pruning.
Should address #451
It took me a while to figure out how zrepl works with the signaling and I had to change quite a few files, hopefully I haven’t missed anything.
Let me know what you think.