this post was submitted on 22 May 2024
7 points (88.9% liked)
Aotearoa / New Zealand
1656 readers
38 users here now
Kia ora and welcome to !newzealand, a place to share and discuss anything about Aotearoa in general
- For politics , please use !politics@lemmy.nz
- Shitposts, circlejerks, memes, and non-NZ topics belong in !offtopic@lemmy.nz
- If you need help using Lemmy.nz, go to !support@lemmy.nz
- NZ regional and special interest communities
Rules:
FAQ ~ NZ Community List ~ Join Matrix chatroom
Banner image by Bernard Spragg
Got an idea for next month's banner?
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I would start by setting up some sort of a monitoring system that tracks your memory usage, disk I/O, CPU etc. There are many packages out there for that. I don't know what lemmy is written in but chances are there are also application monitoring you can wire in too like Sentry https://sentry.io/welcome/
Of course I don't know how your app is being hosted by fediservices. I don't know if you have shell access or can install any apps or whatever.
Oh sorry, should have mentioned they have it hosted on proxmox and I have access to view the dashboard. I can see the resource usage you mentioned including history.
I have access to and full control over the proxmox container, but don't have any specific monitoring outside of the logging.
Unfortunately neither the resource usage nor the logs have given away anything. Resource usage is often all over the place. CPU spikes are common and always have been, and whenever there is downtime it's followed by a resource spike as federation catches up. Plus, federation is pretty random, especially when kbin fires a bunch of stuff at lemmy.world and messes everyone up.
Over the course of today I've done a lot of log reading, and I have identified one possible problem and made a tweak tonight. Time will tell if it helps.
Today was also particularly rocky as the host had various spots of downtime, mixed in with lemmy being down at times. I'll keep monitoring tomorrow and see if it's better, today was particularly bad.
If the federation is done by a helper app then it may be possible to throttle it. At least it wouldn't choke out the machine and slow down other running processes.
The federation doesn't generally seem to be a problem, but many of the large instances do run inbound federation in a separate container.
My problem has been that I haven't managed to narrow it down to a component, so splitting out the containers may not help me troubleshoot. It's definitely on my list of things to try though, if I don't manage to narrow it down.
Currently we have had a run of 5 hours with no outages! So we are doing much better than yesterday. But I suspect that's probably just the host solving their issues.
Maybe the host was the problem in the first place!
To my knowledge, the host issues were only yesterday. The problems over the week or more before that were probably not a problem with the host. But now those are solved I can get back to trying to solve the original issue 😅