Server move complete
I mentioned the new cluster-based/autoscaling setup we were moving to previously and the initial work deployed correctly but there were a few bottlenecks found which caused serious performance issues.
The issues are now resolved on both Loforo and our image/video host (Thumbsnap) so responses should be much faster.
For the technical folks who want specifics:
-
NFS file-shares over the private network didn't perform as expected leading to slow transfers that was using a tiny portion of our full bandwidth. This was fixed with NFS caching (via cachefilesd)
-
The database was getting hammered by background-jobs when containers were scaled up and down (media encoding, feed generation, caching). Jobs were rewritten to wait longer before starting instead of at-startup.
-
High rates of media access was causing a race condition where the same image/videos were being repeatedly fetched from the storage servers (code changes)
-
The new clustered setup gives us a massive amount of bandwidth (multiple gigabits) and also makes the service able to self-heal and scale automatically as traffic increases
Let us know if you notice anything still broken.

>
The database was getting hammered by background-jobs when containers were scaled up and down (media encoding, feed generation, caching). Jobs were rewritten to wait longer before starting instead of at-startup.
Hot take: run them on separate pods and distribute the work via some queue that could rate-limit as well? Or scale up less aggressively :D
is the posting api down? i get all my upload requests rejected.
(namely, i get 400 bad request from cloudflare)
Thank you very much for your efforts 🥳🥳
I'll check that out later today @tomash
@tomash This is fixed now (permission issue)
@leavemealone Yes thats a good idea and its something I'm planning on doing (splitting job processing from the app and running them on their own)
Thanks, mate. You're doing good job!
Thank you, API works again now!
Thank you very much.
Still not working: https://drive.google.com/file/d/1ltSUKMnBdtBYgSSRgImW7M3PhdPKd2SA/view?usp=sharing
Resolved now @greenka2000