Small downtime today
UpdatesHey there, just wanted to give a quick update on what has happened today with the downtime — it was around 10 - 15 mins of chaos before.
I was working on fixing some N+1 queries, especially around loading content and images for posts. So that basically means instead of requesting multiple sets of data multiple times, everything is kinda fetched ahead of time before I need it during rendering.
Whilst I deployed this, and not taking into account how busy Scribbles is already, some feeds and sites were being fetched on top of me also fetching data to make sure it "warms up".
That caused the memory of the server to run out — unfortunately that also affected some other shared services on the same server, so everything was fighting to get a drip of RAM.
So I decided to upgrade the server. Before it had 3 virtual CPU's and 4GB of RAM, but I went for dedicated CPU's this time around, because of sustained load, and double the RAM to 8GB — that's around a €3/month increase on the server price, which is totally cool with me.
Things are working super nice now and I am happy I did that upgrade even though it meant a bit of downtime.
It was a little unexpected, but to be honest, I would have faced that problem down the line anyway.
I have a plan to slowly move some services to another server over the course of the year, so that it becomes a dedicated host just for Scribbles.
Thanks for your patience today ✌️❤️