DB timeouts despite fast storage, pgtune and vacuum analyze
Getting constant DB timeouts despite having fast storage (Samsung 850 EVO Pro NVMe), following pgtune config, and running a vacuum analyze
# DB Version: 11
# OS Type: linux
# DB Type: web
# Total Memory (RAM): 3 GB
# CPUs num: 2
# Data Storage: ssd
max_connections = 200
shared_buffers = 768MB
effective_cache_size = 2304MB
maintenance_work_mem = 192MB
checkpoint_completion_target = 0.7
wal_buffers = 16MB
default_statistics_target = 100
random_page_cost = 1.1
effective_io_concurrency = 200
work_mem = 3932kB
min_wal_size = 1GB
max_wal_size = 4GB
max_worker_processes = 2
max_parallel_workers_per_gather = 1
max_parallel_workers = 2
max_parallel_maintenance_workers = 1