Conversation
Notices
-
matthew - retroedge.tech (matthew@social.retroedge.tech)'s status on Saturday, 14-Oct-2023 15:10:31 JST matthew - retroedge.tech I have a #linux #sysadmin question
On a web server with limited CPU resources, optipng and mysqld processes sometimes take up all the CPU for a few minutes. While that is happening, the apache web server is unavailable. It comes back fine and responds after those processes are done, but while they are running you get nothing while trying to load the website in a web browser.
What would you do to solve this issue so that the apache web server is still responsive while these processes run? The cpulimit utility or some other technique?-
† top dog :pedomustdie: (dcc@annihilation.social)'s status on Saturday, 14-Oct-2023 15:10:30 JST † top dog :pedomustdie: @matthew Sound's like something is overloading your cpu, what process is it? -
† top dog :pedomustdie: (dcc@annihilation.social)'s status on Saturday, 14-Oct-2023 15:13:37 JST † top dog :pedomustdie: @matthew My sql is what's doing that then -
matthew - retroedge.tech (matthew@social.retroedge.tech)'s status on Saturday, 14-Oct-2023 15:13:38 JST matthew - retroedge.tech optipng and mysqld - have temporarily disabled optipng from running, but want to use it again eventually. -
Robert @ Tech Addressed (techaddressed@fosstodon.org)'s status on Saturday, 14-Oct-2023 15:16:49 JST Robert @ Tech Addressed @matthew my thought was that perhaps Nginx would have a better chance of responding when the other processes are being hogs. I have no experience w/ optipng so I don't have any advice there.
-
† top dog :pedomustdie: (dcc@annihilation.social)'s status on Saturday, 14-Oct-2023 15:16:49 JST † top dog :pedomustdie: @techaddressed @matthew Why would it? -
Robert @ Tech Addressed (techaddressed@fosstodon.org)'s status on Saturday, 14-Oct-2023 15:16:50 JST Robert @ Tech Addressed @matthew probably not the answer you're looking for but let me ask a question or two. Is Apache a necessity? Have you considered Nginx? If you want to discuss the situation via PM I'm willing to do what I can to help.
-
matthew - retroedge.tech (matthew@social.retroedge.tech)'s status on Saturday, 14-Oct-2023 15:16:50 JST matthew - retroedge.tech I like and use #nginx for other things. This one should stay on apache for now. I'd like to understand and figure out a solution to the specific issue of optipng and mysqld taking up so much CPU that they knock the website offline while they run. -
matthew - retroedge.tech (matthew@social.retroedge.tech)'s status on Saturday, 14-Oct-2023 15:16:51 JST matthew - retroedge.tech Is there a way to have the website related processes, such as apache and php always have priority over others? Or is limiting the offending CPU hogs the better approach?
#linux #sysadmin
-