dolu's avatar
dolu
dolu@dolu.dev
npub1txuk...phrl
dolu's avatar
dolu 2 years ago
This is my main issue on Nostr Proxy. After running for ~1 hour (locally) with 15-20 clients connected to it, I closed all clients. Everything got cleaned correctly, but not these Promises. 534k Promises... That's why Nostr Proxy crashes after a while. If anyone can help with this analysis, contact me please. I can't find any information in the memory heap snapshots image
dolu's avatar
dolu 2 years ago
Welcome sir #[0] Did you remember twitter? It was an old social network back in the good old days
dolu's avatar
dolu 2 years ago
Is it a good UX to always have to click on "Show X new notes" instead of displaying them directly in the thread?
dolu's avatar
dolu 2 years ago
I'm on iris.to. Let's try it
dolu's avatar
dolu 2 years ago
Oh, I found a beautiful memory leak in nostr-tools! Fixed on my branch, let's try this!
dolu's avatar
dolu 2 years ago
GM it crashed again
dolu's avatar
dolu 2 years ago
Nostr proxy is running for more an hour without RAM or CPU issue! If it stay alive all the night, I could say it's "stable". Try it here https://nproxy.zerologin.co (deployed on a VPS) https://nproxy.cc (deployed on railway) Stats are funny (no) VPS: 20 currents connections - 50-100Mo RAM Railway: 2 currents connection - ~140Mo RAM
dolu's avatar
dolu 2 years ago
GM This morning, I have an idea for Nostr Proxy. Is it required for the proxy to validate schnorr signatures for each events? Because stored events in relays are already validated and client validate events too when getting them. So... is it required for the proxy to validate them? Schnorr signature validation is really CPU intensive. It validates ~5000 events/min when opening 7 global feeds.
dolu's avatar
dolu 2 years ago
Can you please try wss://nproxy.cc instead of wss://nproxy.zerologin.co Not definitive, but it's deployed elsewhere
dolu's avatar
dolu 2 years ago
Deploying the new relay pool now!
dolu's avatar
dolu 2 years ago
Test publishing with the new relay pool
dolu's avatar
dolu 2 years ago
NO WAY! 91 clients connected to https://nproxy.zerologin.co ?! Are you guys crazy? I have to deploy the next test version elsewhere to not shutdown all of you
dolu's avatar
dolu 2 years ago
#[0] when I make a REQ on your relay with a limit, this limit is not considered ex: ["REQ","global",{"kinds":[1],"limit":20}] It just send me events without limit I don't know what's your relay implementation, but it's probably an issue with it
dolu's avatar
dolu 2 years ago
I liked hamstr.to, but snort is really great too. Too bad I can't see publications and conversations responses in the same page
dolu's avatar
dolu 2 years ago
Time to create a custom relays pool for Nostr proxy!
dolu's avatar
dolu 2 years ago
It still uses a lot of CPU... Enough for today