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

Allow multiple replication jobs at the same time #30

Closed
yaroslav-gwit opened this issue May 31, 2023 · 1 comment
Closed

Allow multiple replication jobs at the same time #30

yaroslav-gwit opened this issue May 31, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@yaroslav-gwit
Copy link
Owner

Right now, the replication function creates a temporary shell script in /tmp/replication.sh, so only 1 replication job can be active at the time (file name is hard coded and file existence is checked before each replication job). HA/Clustered setup requires multiple jobs running at the same time. For this purpose, I am planning to create a /var/run/replication-endpoint-address-hash.sh file.

This way we can still rely on the original design of not trying to "overrun" a currently running operation and fail in some unpredictable way, potentially damaging the data, but at the same time will allow parallel execution to different endpoints.

@yaroslav-gwit yaroslav-gwit added the enhancement New feature or request label May 31, 2023
@yaroslav-gwit yaroslav-gwit self-assigned this May 31, 2023
@yaroslav-gwit
Copy link
Owner Author

The change has been implemented by introducing the additional cmd flag --script-name. This allows for more flexibility, but keeps similar safety mechanisms in order to avoid running 2 parallel jobs for the same VM.

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

No branches or pull requests

1 participant