Amarjeet
01/27/2025, 1:25 PMAmarjeet
01/30/2025, 4:28 AMnathan-watkins-unityai
01/30/2025, 8:42 PMcody
01/30/2025, 10:29 PMAmarjeet
02/04/2025, 4:28 AMnathan-watkins-unityai
02/05/2025, 2:36 PMSHOW max_connections;
SHOW superuser_reserved_connections;
If your pg instance is only used for medplum and you are only running 1 replica of the server, you could start with max_connections - superuser_reserved_connections - X where X is a reasonable buffer, like 5-10.
Medplum scales fine, but your pg server size could end up being a bottleneck depending on your throughput. Probably not though. Try tuning the maxConnections first.cody
02/06/2025, 3:25 AMAmarjeet
02/17/2025, 3:50 PM