Too Many Clients
Kestrel is down with PostgreSQL running. A restart of the database brings it back for a few seconds, then it falls over again. Find out why.
- Intermediate
- 20 min
- Challenge
- Kestrel
- PostgreSQL
- Timed
Overview
Every Kestrel page is failing and /health answers 503. PostgreSQL is running, and your own psql kestrel connects fine. Someone already tried the classic move: restarting PostgreSQL brought Kestrel back for about five seconds, and then it fell over again.
Bring Kestrel back, and make sure it stays back. Leave PostgreSQL's configuration as you found it.
What done looks like
- Read PostgreSQL's own view of who is connected
- Explain why restarting the database only helped for seconds
- Stop the cause, leaving PostgreSQL's configuration as it was
Before you start
- Drill: Kestrel On Call, or equivalent Linux, nginx and PostgreSQL familiarity
- Timed challenge: failed checks return no hints