Conversation
Notices
-
Embed this notice
matthew - retroedge.tech (matthew@social.retroedge.tech)'s status on Saturday, 14-Oct-2023 06:55:42 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?-
Embed this notice
✙ dcc :pedomustdie: :phear_slackware: (dcc@annihilation.social)'s status on Saturday, 14-Oct-2023 06:55:42 JST ✙ dcc :pedomustdie: :phear_slackware: @matthew Sound's like something is overloading your cpu, what process is it? -
Embed this notice
✙ dcc :pedomustdie: :phear_slackware: (dcc@annihilation.social)'s status on Saturday, 14-Oct-2023 06:59:40 JST ✙ dcc :pedomustdie: :phear_slackware: @matthew My sql is what's doing that then -
Embed this notice
matthew - retroedge.tech (matthew@social.retroedge.tech)'s status on Saturday, 14-Oct-2023 06:59:41 JST matthew - retroedge.tech optipng and mysqld - have temporarily disabled optipng from running, but want to use it again eventually. -
Embed this notice
✙ dcc :pedomustdie: :phear_slackware: (dcc@annihilation.social)'s status on Saturday, 14-Oct-2023 07:01:09 JST ✙ dcc :pedomustdie: :phear_slackware: @techaddressed @matthew Why would it? -
Embed this notice
Robert @ Tech Addressed (techaddressed@fosstodon.org)'s status on Saturday, 14-Oct-2023 07:01:10 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.
-
Embed this notice
matthew - retroedge.tech (matthew@social.retroedge.tech)'s status on Saturday, 14-Oct-2023 07:01:11 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. -
Embed this notice
Robert @ Tech Addressed (techaddressed@fosstodon.org)'s status on Saturday, 14-Oct-2023 07:01:12 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.
-
Embed this notice
matthew - retroedge.tech (matthew@social.retroedge.tech)'s status on Saturday, 14-Oct-2023 07:01:13 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
-
Embed this notice