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

bug: cpu at 100% on database server #271

Open
mcdurdin opened this issue Feb 8, 2025 · 2 comments
Open

bug: cpu at 100% on database server #271

mcdurdin opened this issue Feb 8, 2025 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@mcdurdin
Copy link
Member

mcdurdin commented Feb 8, 2025

Symptoms

Symptoms include timeouts on api queries, causing keymanweb.com, help.keyman.com, keyman.com, meaning that keymanweb in particular was failing to load, e.g. with heavy queries such as:

https://api.keyman.com/cloud/4.0/keyboards?jsonp=keyman.register&languageidtype=bcp47&version=17.0&keyboardid=khmer_angkor,basic_kbdkni

Reported also by @LornaSIL this morning:

Something seems to be broken with displaying the osk on help files: https://help.keyman.com/keyboard/sil_bolivia and https://help.keyman.com/keyboard/sil_bwe_karen/1.0.1/sil_bwe_karen

Diagnostics

Looking at the cluster, api.keyman.com database pod was showing 100% CPU utilization for last 2 days:

Image

Unclear why the cpu would be spiking at that point. No evidence of changes to database, or spike in api.keyman.com visits. Memory+disk show a spike that starts hours after the high cpu starts. So that's a bit weird too, but may be SQL Server resource management?

Mitigation

  • Restarted the pod. Resolved the immediate issue.
  • Will continue to monitor.

Additional actions

  • Monitor
  • We should have an alert setup for persistent high cpu (e.g. >10 minutes at >.9 CPU avg?)

cc @darcywong00 @tim-eves

@mcdurdin mcdurdin added the bug Something isn't working label Feb 8, 2025
@mcdurdin mcdurdin added this to the B18S1 milestone Feb 8, 2025
@mcdurdin
Copy link
Member Author

mcdurdin commented Feb 8, 2025

@darcywong00 can you look at setting up alerts for high cpu as described?

@mcdurdin
Copy link
Member Author

Checked this morning and CPU is at <1% avg.

@darcywong00 darcywong00 modified the milestones: B18S1, B18S2 Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants