-
Notifications
You must be signed in to change notification settings - Fork 624
Beta: Execute ghe-backup tasks in parallel #597
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
Conversation
1aa484c
to
80f7862
Compare
Two issues come to mind with this, and only because I've thought about this before when considering parallelisation in the past:
With both in mind, I think we need a guard really early in the backup and restore steps (can bung it in |
As an aside, as this is a breaking change, it should not ship until Backup Utils 2.21.0 at the earliest. |
868a1dc
to
7ee1099
Compare
fa53e9d
to
6c3e4ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making these changes @ryansimmen ❤️
It looks like there are some test failures that need to be resolved here.
As @lildude mentioned, we should also hold off merging this for now until closer to 2.21. This will also give us some time to exert this under more varied testing scenarios.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few recommendations. The test failures are legit too.
6c3e4ad
to
27511e0
Compare
This PR is now using moreutils parallel instead of GNU parallel and if both are installed the code will check the path for the presence of parallel and choose the appropriate executable. |
66ae7f5
to
7561b14
Compare
Here is a thread describing why gawk is needed over mawk https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593504 |
af61628
to
6a47bf3
Compare
6a47bf3
to
d263c8a
Compare
01cabcd
to
53912d8
Compare
53912d8
to
c8eccf8
Compare
Glad to see my POC has come to fruition! I can't wait to test this out in our environment! @ryansimmen is there a limit for the parallel rsyncs? In my POC I ran 7000 at a time, lol. Thanks for your great work on this! |
@randyr505 yes, you may simply set |
Set enterprise2 branch as env var
Execute long running backup tasks in parallel by leveraging moreutils parallel.
This resolves https://github.com/github/ghes-infrastructure/issues/386