nostr-rs-relay
nostr-rs-relay copied to clipboard
How to stop the service?
I'm running the relay in a tmux and noticed it was using up all my 8 vCPU and the nostr.db-wal was 18GB compared to 4GB of the nostr.db ...
I wanted to see what happens if I stop the relay and hit CTRL-C. It closed all connections and supposedly the DB but the process never finished and all the vCPU are still busy running ./nostr-rs-relay --db /usr/src/app/db
.
Now ~6~ ~11~ 30min later it even complains about some events. Does it run on a many minutes backlog? How long is the backlog??
Dec 26 23:45:42.785 INFO nostr_rs_relay::server: Close connection down due to shutdown, client: e1e16dbd, ip: "172.17.0.1", connected: 1360.588062127s
Dec 26 23:45:42.786 INFO nostr_rs_relay::server: stopping client connection (cid: e1e16dbd, ip: "172.17.0.1", sent: 0 events, recv: 0 events, connected: 1360.588289512s)
Dec 26 23:45:43.745 INFO nostr_rs_relay::db: database connection closed
^C
Dec 26 23:51:02.721 INFO nostr_rs_relay::db: Could not parse hex range from id "note1kka4yztq697w6pj97we7hudynp6xzkumgdr87hga2s2fkv903nxsxp7g6r"