Django PostgreSQL Yüksek Performans Ayarları Yapma
Aşağıda yüksek performans için ayarlar bulunmaktadır.
echo '' > /etc/postgresql/10/main/postgresql.conf
nano /etc/postgresql/10/main/postgresql.conf
data_directory = '/var/lib/postgresql/10/main'
hba_file = '/etc/postgresql/10/main/pg_hba.conf'
ident_file = '/etc/postgresql/10/main/pg_ident.conf'
external_pid_file = '/var/run/postgresql/10-main.pid'
listen_addresses = '*'
port = 5432
max_connections = 300
shared_buffers = 2GB
effective_cache_size = 4GB
maintenance_work_mem = 512MB
checkpoint_completion_target = 0.9
wal_buffers = 16MB
default_statistics_target = 100
effective_io_concurrency = 200
work_mem = 6990kB
min_wal_size = 2GB
max_wal_size = 4GB
max_worker_processes = 2
max_parallel_workers_per_gather = 1
max_parallel_workers = 2
random_page_cost = 10
seq_page_cost = 1
unix_socket_directories = '/var/run/postgresql'
dynamic_shared_memory_type = posix
cluster_name = '10/main'
stats_temp_directory = '/var/run/postgresql/10-main.pg_stat_tmp'
datestyle = 'iso, mdy'
timezone = 'Europe/Istanbul'
lc_messages = 'en_US.UTF-8'
lc_monetary = 'en_US.UTF-8'
lc_numeric = 'en_US.UTF-8'
lc_time = 'en_US.UTF-8'
default_text_search_config = 'pg_catalog.english'
include_dir = 'conf.d'
log_statement = all
logging_collector = on
log_destination = 'stderr'
log_rotation_age = 1d
log_directory = '/var/log/postgresql/pg_log'
log_min_duration_statement = 30
log_rotation_age = 1d
log_timezone = 'Turkey'
log_rotation_size = 100MB
Ayarları yaptıktan sonra postgresql ı aşağıdaki komut ile restart atıp aktif ediyoruz.
systemctl restart postgresql; systemctl enable postgresql
Performanslı sanal sunucularımız için tıklayabilirsiniz.
Aradığınız Bilgiyi Bulamıyor musunuz?
Bilgi bankasını detaylı olarak incelediniz, fakat ihtiyacınız olan bilgiyi bulamıyorsanız,
Bir Destek Talebi Oluşturun.-
Windows Port Açma İşlemi Nasıl Yapılır?
208 2
-
Windows Administrator Yetkisi Nasıl Verilir?
184 0
-
Ubuntu Webmin kurulumu nasıl yapılır?
803 2
-
Linux SSH Terminal Komutları ve Açıklamaları
682 3
-
CentOS Stream 10 Update Komutları
768 1
-
CentOS Stream 9 Update Komutları
1112 1
-
CentOS Stream 8 Update Komutları
621 0
-
FreeBSD Nedir?
765 2
-
Out: 452 4.3.1 Insufficient system storage
708 2
-
Windows İşletim Sistemlerinde Otomatik Güncellemeleri Kapatma
822 0