Why Nostr? What is Njump?
2023-04-02 02:19:13
in reply to

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

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