В логах postgres приходят сообщения :
LOG: checkpoints are occurring too frequently (9 seconds apart)
HINT: Consider increasing the configuration parameter "max_wal_size".
LOG: checkpoints are occurring too frequently (13 seconds apart)
HINT: Consider increasing the configuration parameter "max_wal_size".
Периодически появляются сильные задержки iowait.
Сервер: 6cpu, 16memory, 320ssd
Конфиг:
shared_preload_libraries = 'pg_stat_statements' # (change requires restart)
logging_collector = on # Enable capturing of stderr and csvlog
log_directory = 'pg_log' # directory where log files are written,
log_filename = 'postgresql-%Y-%m-%d.log' # log file name pattern
log_truncate_on_rotation = on # If on, an existing log file with the
log_rotation_age = 14d # Automatic rotation of logfiles will
log_rotation_size = 0 # Automatic rotation of logfiles will
log_min_duration_statement = 10000 # -1 is disabled, 0 logs all statements
checkpoint_timeout = 30min
max_wal_size = 8GB
effective_cache_size = 6GB