Increase Haven speed ? #114
Replies: 1 comment
-
|
Realistically, I doubt that Nginx will be a bottleneck for the usual personal relay. You can, of course, harden your Nginx settings for production so that it lasts longer when under attack or during traffic spikes caused by broken clients. This general guide for WebSockets mentions some interesting settings around rate limiters, persistent connections (keepalive), HTTP/2, timeouts, buffers, logging, etc: https://websocket.org/guides/infrastructure/nginx/ Haven also has its own rate limiting settings. On machines with faster NVMe SSDs or fast IO in general, the LMDB backend tends to perform better than BadgerDB, but it will not work very well on oversubscribed cloud instances (e.g. cheaper Amazon EC2 tiers). Finally, a proper CDN, or something like Cloudflare Proxy, works well to cache Blossom media and offload the bulk of the HTTP traffic and will likely be the biggest "win" for most setups. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have two Haven instances running on my 8GB VPS with Nginx proxy. Everything is running smoothly so far.
Are there any settings that can increase Haven's efficiency? Redis, Nginx settings.
Tips
Beta Was this translation helpful? Give feedback.
All reactions