Skip to content

Commit

Permalink
tweaks no postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Baroni committed Feb 8, 2024
1 parent 6e5ceaa commit aeb151e
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions participantes/josebaroni/config/database/postgresql.conf
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
listen_addresses = '*'
max_connections = 250
max_connections = 100
superuser_reserved_connections = 3
unix_socket_directories = '/var/run/postgresql'
shared_buffers = 512MB
shared_buffers = 200MB
work_mem = 4MB
maintenance_work_mem = 256MB
effective_cache_size = 1GB
wal_buffers = 64MB
effective_cache_size = 200MB
wal_buffers = 128MB
checkpoint_completion_target = 0.9
random_page_cost = 4.0
effective_io_concurrency = 10
random_page_cost = 2.0
effective_io_concurrency = 3
autovacuum = on
log_statement = 'none'
log_duration = off
log_lock_waits = off
log_error_verbosity = terse
log_min_messages = panic
log_min_error_statement = panic
synchronous_commit=off
max_wal_size=8GB
checkpoint_timeout=500

# blz, to apelando, mas ainda é persistente... deixa durabilidade pro meu trampo kek
# caso ache muita apelacao, só remover essas 2 linhas
synchronous_commit=off
fsync=off

0 comments on commit aeb151e

Please sign in to comment.