Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make mysql capacity check optional (high load caused oom error) #671

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ITJamie
Copy link
Contributor

@ITJamie ITJamie commented Feb 13, 2024

General information

on a shared hosting server we found the capacity check was adding extreme amounts of load to our MySQL server. it was also causing the checkmk agent to not respond in time (per https://forum.checkmk.com/t/cmk-agent-connection-ok-dump-has-no-output/38598)

timed dump command before disabling the mysql_capacity check

real	2m3.968s
user	0m0.002s
sys	0m0.006s

timed dump after disabling the mysql_capacity check

real	0m15.227s
user	0m0.002s
sys	0m0.013s

Proposed changes

This change makes it possible to easily disable the capacity checks by creating a local file at ${MK_CONFDIR}/mysql.local.disable_capacity_checks
The existing usecase will not change at all if the file does not exist.

@ITJamie ITJamie changed the title make mysql capacity check optional make mysql capacity check optional (high load caused oom error) Feb 13, 2024
@CheckmkCI CheckmkCI force-pushed the master branch 2 times, most recently from 875a494 to 3419412 Compare May 29, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants