Page MenuHomePhabricator

[keyserver] Bump MariaDB --innodb-buffer-pool-size config to 14000M in docker-compose.yml
ClosedPublic

Authored by ashoat on Thu, Jun 6, 8:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 30, 6:45 PM
Unknown Object (File)
Sun, Jun 30, 6:18 PM
Unknown Object (File)
Sat, Jun 29, 1:12 PM
Unknown Object (File)
Sun, Jun 23, 3:56 AM
Unknown Object (File)
Sat, Jun 22, 4:33 AM
Unknown Object (File)
Thu, Jun 20, 8:30 AM
Unknown Object (File)
Wed, Jun 19, 5:11 PM
Unknown Object (File)
Wed, Jun 19, 3:24 PM
Subscribers
None

Details

Summary

I noticed that I have this change on my keyserver running in production. There's been some recent discussion about this config in D12322 (see diff description).

The context about this change being on my production keyserver is here on Linear. For whatever reason I never got around to diffing it up, probably because the performance improvement seem minimal and I didn't have a strong argument for it.

Test Plan

See context Linear link above; I tested this and observed a slight performance improvement. I vaguely recall testing how long eg. 3 attempts of the same fetchServerThreadInfos query would take, before and after the change

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat requested review of this revision.Thu, Jun 6, 8:18 PM
This revision is now accepted and ready to land.Thu, Jun 6, 8:42 PM

For the AWS RDS configuration, I used 75% of DBInstanceClassMemory which I believe is just the RAM.

This amounts to roughly 6144 MiB on the MariaDB RDS database which will hopefully lead to performance benefits compared to 1600M.

Like this change, we might want to consider upping this to 14000M though on AWS


Oracle suggests 50-75%: https://docs.oracle.com/cd/E17952_01/mysql-8.0-en/memory-use.html#:~:text=InnoDB%20allocates%20memory%20for%20the,75%20percent%20of%20system%20memory.