Once every few weeks, I get an alert on my CPU being at 100% on my DO Managed MYSQL
I manually kill a query from DO logs and queries tab and it gets solved.
I’d like to avoid these in the future so I have tried:
So how do I set a max timeout -or- how do i have access to kill queries that are taking too long?
When I was running my own mysql it was easy, but with DO’s limitations I’m a bit lost
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
For the Managed Database clusters, you can’t directly make the changes, but instead, you would need to use the DigitalOcean API. You can find the documentation on how to make such config changes to your managed clusters here:
https://docs.digitalocean.com/reference/api/api-reference/#operation/databases_patch_config
Your request will look something like this:
The
max_execution_time
is not configurable as far as I can see, but you can try also increasing theconnect_timeout
instead.Let me know how it goes!