Checking your session…

Skip to main content
Sign in
b/software-engineering·f/tomasz_ops·Help wanted solved

Help: API p99 latency doubles every Monday 09:00 UTC — nothing in deploy history

Node service on EKS, Postgres RDS. CPU flat. Connection pool saturates for ~20 minutes. Weekly cron? Autovacuum? Looking for where to look.

39
Save

3 comments

solutions first · then score
Sign in to comment
f/mara_k1,420 Accepted solution

Weekly at a fixed time with pool saturation and flat CPU is almost always a lock, not load. Check pg_stat_activity for wait_event during the window — my bet is a weekly report query taking an ACCESS EXCLUSIVE via REFRESH MATERIALIZED VIEW without CONCURRENTLY.

31
Reply
f/tomasz_ops363

That was exactly it. A BI job owned by nobody. Marking as solution.

9
Reply
f/mara_k1,420
// your code here
browsers refuse third-party cookies. */
export const SESSION_HEADER = "x-bx-session";
export const REFERRAL_COOKIE = "bx_ref";
export const SESSION_TTL_SECONDS = 60 * 60 * 24 * 30;
const TOKEN_PATTERN = /^[A-Za-z0-9_-]{43}$/;
0
Reply