maltfield
1
5
maltfield

@monero.house

maltfield 77 points 3 years ago

Yes. And I'm asking him to share his tweaks here with the community so that others instance admins can shore-up their servers :)

path: 0 101168 101318, hotness: undefined, score: 77, children: 4
maltfield 8 points 3 years ago

Right, but if you don't have a cache setup, then the DB gets taxed. At a certain point a cache looses its benefit, but an enormous amount of savings can be made (to backend DB calls, for example) by just caching all API reads for ~60 seconds.

path: 0 101603 101664, hotness: undefined, score: 8, children: 11
maltfield 6 points 3 years ago

I wouldn't be surprised if it has more to do with caching than throwing hardware at it.

path: 0 101270 101333, hotness: undefined, score: 6, children: 6
maltfield 5 points 3 years ago

In my experience, the best benefits gained from caching are done before the backend and are stored in RAM, so the query never even reaches those services at all. I've used varnish for this (which is also what the big CDN providers use). In Lemmy, I imagine that would be the ngnix proxy that sits in-front of the backend.

path: 0 101603 101664 101752 101891, hotness: undefined, score: 5, children: 9
maltfield 4 points 3 years ago

Yeah, that's exactly why I'm asking this question. All the effort seems to be going into the DB -- but you can have a horribly shitty DB and backend but still have a massively performant webserver by just caching away the reads to RAM.

I didn't see any tickets about this on the GitHub, which is why I'm asking around to see if there's actually some very low-hanging-fruit for improving all the instances with a frontend RAM cache.

path: 0 101603 101664 101752 101891 102352 102812, hotness: undefined, score: 4, children: 1

thanks for using Leebra!

go to feed...