Skip to content

Fix worker deadlock, add CloudWatch logging, restore home page endpoints (debug endpoints still removed) #87#88

Merged
bazarkua merged 4 commits intomainfrom
issue-87
Mar 3, 2026
Merged

Fix worker deadlock, add CloudWatch logging, restore home page endpoints (debug endpoints still removed) #87#88
bazarkua merged 4 commits intomainfrom
issue-87

Conversation

@bazarkua
Copy link
Copy Markdown
Collaborator

@bazarkua bazarkua commented Mar 3, 2026

uWSGI workers were deadlocking permanently. thunder-lock serializes accept() with flock(), and when a worker dies while holding the lock, every other worker freezes forever. Removed thunder-lockentirely. Also raised max-requests from 100 to 10000 because 100 was causing constant worker recycling (each one forks a 90 GB process), and added max-requests-delta=2000 so workers don't all recycle at the same time.

nginx and uWSGI logs were only going to files inside the container. On ITRB Kubernetes, kubectl logs and CloudWatch couldn't see them. Switched nginx to log to stdout/stderr directly. Added tail -F in start.sh to mirror the uWSGI log file to stderr. Also added ploverdb.log to logrotate (it was missing and would grow forever).

@bazarkua bazarkua merged commit 935f6a7 into main Mar 3, 2026
@bazarkua bazarkua deleted the issue-87 branch March 23, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant