• 0 Posts
  • 10 Comments
Joined 2 years ago
cake
Cake day: June 25th, 2023

help-circle


  • Exactly. I wouldn’t mind that at all. Instead I have open space with one desk close to one another and people around me have meetings all day long and they just talk to somebody constantly. There are not enough conference rooms for everyone, so there’s nothing one could do about it. It annoys me so much that I prefer to stay at home to work, even though I would definitely prefer office if it just wasn’t so noisy and annoying.






  • I set up infrastructure for web apps and what you are describing is still most likely server config issue, not Lemmy issue itself, unless Lemmy is lacking something to allow load balancing (then the bug is missing feature actually, also I don’t think so). I don’t know how Lemmy keeps/reads its sessions, but usually it doesn’t matter from the application code standpoint. Preparing multi-host setup as an admin you need to take care about each instance accessing the same session data or whatever application data needs to be shared anyeay. There are many options:

    • Database: it’s not good for DB performance and is usually avoided. The problem cannot occur here as all the instances have to access same database (or replicas) in the first place
    • Filesystem: the problem can occur here, but can be worked around with CIFS or NFS, which hits performance
    • Redis: good for performance, as many hosts as you want can access the same Redis instance (unless Redis is overloaded, which is pretty hard for small session values)
    • Memcached: also an option, but all sessions would be gone on service restart
    • …?

    The load balancing scenario where all requests are handled by one host and the other only takes requests when the other is overloaded, is very unlikely. The most common algorithms for balancing are roundrobin - which means (more-or-less) split connections (not load!) equally across all targets, and leastconn - which means hit the host that is least busy with active connections. I mean of course they could’ve used ‘fallback’ alhorithm, but it’s rather inefficient in most scenarios.

    Or maybe the issue is somewhere else, is caused by full-page/CDN cache etc.