What is Nostr?
pistolero /
npub1ch8…sw60
2023-04-02 00:19:13
in reply to nevent1q…g498

pistolero on Nostr: #[0] Two things: if Postgres and BEAM are competing for RAM, that can be an issue. ...

erramenos :verifiedpedophile: (npub1awh…4ll9) Two things: if Postgres and BEAM are competing for RAM, that can be an issue. Try zram swap and give Postgres less memory. The other option is sometimes less Postgres latency means the bottleneck moves: get nginx to log response times (time to upstream headers is the relevant one), measure that, and also poll Postgres for which queries are consuming time (`select state,pid,CURRENT_TIMESTAMP-query_start, datname, query from pg_stat_activity where state <> 'idle' order by CURRENT_TIMESTAMP-query_start DESC;`).
Author Public Key
npub1ch8nj9yu4676fnwkzacu28mt4y002ezeryqyuhzfnzjw560sq5fqaysw60