Commit graph

3 commits

Author SHA1 Message Date
Ian
d7210ac465 Add CPU Quota for SickGear
I have had a lot of issues with SickGear eating up every resource that I give to it. Most people are not going to be running SickGear on it's own dedicated hardware. While you can do a lot of resource management with virtualization, even then, I would imagine you're stacking other services with this. At one point, I was setting SickGear to restart nightly to keep the process from completely locking up my system. However, systemd has given us some pretty neat resources to handle this sort of stuff.

I'm proposing we set a 50% CPU quota on SickGear, as it helps keep resources freed for other processes. If the user wants to dedicate all resources, then they have the option of changing the service file. However, this sets a pretty good precedent for resource allocation.

For now, I'm only setting a CPU quota, however, there are FAR MORE options in case we want to further manage the resources which SickGear can use. https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html
2016-04-25 19:32:48 -05:00
Adam
6b129c9eee Change sickbeard variables to sickgear variables in init-scripts 2015-11-20 23:52:29 +08:00
Adam
503f7d715f Change to move init-scripts to single folder 2015-11-20 23:52:27 +08:00