-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
nixos/restic: add option maxCpuCores to limit cpu-usage per backup-job #314668
base: master
Are you sure you want to change the base?
Conversation
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.
There is no need for this option. Just use rcloneConfig.GOMAXPROCS
.
Thanks for the feedback, I see that this will work - but it's not very intuitive/good UX especially for new users. What about renaming I also tried searching for the environment-variable with language-nix through github (user-configs, https://github.com/search?q=GOMAXPROCS+language%3ANix&type=code) so it might not be popular or do I have another issue if my fan goes crazy while restic is running? |
That's probably a good idea. But I'm not sure it's worth a breaking change. You could add GOMAXPROCS to the example. |
Had another look - we can't use rcloneConfig here - as it uses
which prefixes the environment-variables - so maybe it's still the best option or add customEnvironement option? I know that I could do |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
@dotlambda ping? |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/4265 |
Did my best to get feedback/review - will rebase-merge after next week 21/08/2024 - if nobody complains/raises concerns. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/4540 |
Uses go environment-variable "GOMAXPROCS" as suggested in the manual. https://restic.readthedocs.io/en/latest/047_tuning_backup_parameters.html#cpu-usage
ca0e3b4
to
8047082
Compare
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.