Кейсы оптимальных конфигураций производительности PostgreSQL Linux

Материал из largespace
Перейти к навигации Перейти к поиску

Кейсы оптимальных конфигураций производительности

Тип железа CPU RAM DISK Linux PG_version Тест Гилева до Параметры оптимизации Тест Гилева после
Bare metal AMD Ryzen 7 2700x (8 cores) 32 GB NVMe 500 GB Green Linux 21.1 14 19,63 shared_buffers=8GB

seq_page_cost = 0.5

random_page_cost = 0.5

effective_io_concurrency = 500

effective_cache_size = 16GB

work_mem = 128MB

row_security = off

temp_buffers = 128MB

ssl = off

wal_sync_method = fdatasync

24.39
VM ESXi Xeon Silver 4208 (8 cores) 32 GB SSD 480 GB Linux Mint 20.3 12 n\a shared_buffers = 8GB

tem_buffers = 64MB work_mem = 128MB wal_sync_method = fdatasync effective_io_concurrency = 200 synchronous_commit = off wal_buffers = 64MB random_page_cost = 0.5 effective_cache_size = 16GB row_security = off ssl = off checkpoint_completion_target = 0.9

21.01
VM ESXi Xeon E5-2643 v2 x2 (12 cores) 48 GB RAID 10 1 TB Linux Mint 21 12 n\a
VM Proxmox AMD Ryzen 7 2700x (8 cores) 12 GB SSD 240 GB Astra Linux 1.7.2 12 26,18 shared_buffers = 3GB

temp_buffers = 32MB work_mem = 64MB effective_io_concurrency = 200 synchronous_commit = off random_page_cost = 0.5 checkpoint_completion_target = 0.9 ssl = off row_security = off wal_sync_method = fdatasync