User backups priority..

ExoCrew

Verified User
Joined
Jun 21, 2005
Messages
21
Hello,

I was wondering if the priority of user backups (made via control panel) can be set? I know it can set for the sysbck but not sure how do I change it for the backups made via control panel.

Backups do not deserve a high priority, perhaps a 19 is fine for them ;) .. Serving is more important!

Thanks for any replies...
 
I'm not aware of any existing way to change that.

You might drop DA a line and request this feature though :)
 
Ahh.. where do I contact them :rolleyes: ??

And anyone knows which file/script is responsible for handling the backups made via control panel? Or is that encrypted?

Only an addition of /bin/nice -n19 is needed before the original commands, so I was thinking about some core hacking.

Thanks for your reply, jmstacey.
 
I took a quick look and from what I can tell it's part of the binary.

so I was thinking about some core hacking.
I doubt your going to get much help with that on these forums since it is illegal to decompile, reverse engineer (whatever you want to call it) copyright programs.
 
Ahh ok ... I had no such intentions, I was just inquiring whether it's encrypted or not.

So the only way is a feature request... Do you think running directadmin itself with LOWEST prirority will help creating the same priority for user backups from control panel? :rolleyes: The main point is running tar and gzip with lower priorities.

Thanks for the replies so far..
 
I doubt it, and a bad side effect would be caused. (DirectAdmin might become unaccessible under higher loads)

There might be other workarounds, for example: monitoring processes and setting all tar/gzip to a lower priority...

email DA support, they are usually pretty helpful ;)
 
Oh wow ... That wasn't expected at all. 10x to directadmin support!!!

Gonna try that..

Thanks a lot!
 
Use the setpriority funciton when running tar for user backups.
setpriority(PRIO_PROCESS, 0, 19);
the numerical priority will be set in the directadmin.conf. backup_nice=19 (default value)

Has it been made available to skin? or we have to manually edit directadmin.conf? What are the acceptable value? 0 TO 19 or 0 AND 19? Which value correspond lower priority?

thank you
 
Back
Top