The Linux self-hosting requirements recommend 4GB of memory.
I recently migrated a self-hosted instance from a local machine to Azure into a Standard B2als v2 burstable VM; a very cost-effective gen 2 VM.
The local instance was allocated 6GB of memory, which was always allocated at about 90%. I think this is due to SQL Server, which at least in “real” Windows always takes everything it can get. IOW, it didn’t matter how much memory I allocated on the local instance, Proxmox and
top
always showed memory utilization at about 90%.
On the Azure VM at 4GB, this has occurred as well, as you can see here:
Except that the Azure VM has begun to swap after only two days of very light usage. The local instance swapped, too, but much more slowly. Performance of the Azure VM has been excellent.
But Azure VMs are expensive, especially for burstable VMs with large memory. I don’t want to mess with Ubuntu’s swappiness
settings to avoid causing issues with SQL Server when it requests memory that necessitates a swap.
My question: is 4GB really enough for Bitwarden?