Adding nice
to backup process
#532
spannerman79
started this conversation in
Ideas
Replies: 2 comments 4 replies
-
Tbh in a true production grade deployment, you would be running backups in a separate container on a little more beefy hardware or use a container running rsync. The backup function is rather simple and I can look into optimizing it a bit <3 |
Beta Was this translation helpful? Give feedback.
4 replies
-
This has been resolved via #549 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Related: #531
I suggest adding
nice
to the backuip process in order to ensure both CPU & I/O doesn't trash the system on lower end hardware.It will require the container to be started with
--privileged --cap-add=sys_nice
--cap-add=sys_nice
or;added to
docker-compose.yml
in order to function.Edit:
--privileged
not required, see #532 (reply in thread)If the host has kernel > 2.6.26
ionice
doesn't need to be defined asionice
is determined vianice
( man ionice )I suggest some logic is added so that it isn't configured < 0 - Unless for testing wise
DEBUG_MODE=1
is set.In keeping with other env var's,
AUTO_BACKUP_NICE
, default to0
, with logic to only allow 1 - 19 to be defined without forcing odin to not continue.The most ideal way to do this of course is that two containers are ran, that way you can define the container that handles odin/hugin is ran with
--cpus=x
or to pin the CPU's via--cpuset-cpus <value>
There are even better ways to control docker but those are not available to those that have docker on say a QNAP (actual experience)
Beta Was this translation helpful? Give feedback.
All reactions