Files
sqlalchemy-fastapi-pydentic…/server/database/db_balancer/pgpool.conf
2025-09-22 14:22:46 +03:00

20 lines
715 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#Это если вдруг мне когда нибудь приспичит сделать sql balancer с распределенными бд через pgpool-II
backend_hostname0 = 'pg-master'
backend_port0 = 5432
backend_weight0 = 1
backend_flag0 = 'ALWAYS_PRIMARY'
backend_hostname1 = 'pg-replica1'
backend_port1 = 5432
backend_weight1 = 1
backend_flag1 = 'ALLOW_TO_FAILOVER'
backend_hostname2 = 'pg-replica2'
backend_port2 = 5432
backend_weight2 = 1 #сколько запросов куда отправлять 1/1 например = 50/50
backend_flag2 = 'ALLOW_TO_FAILOVER'
load_balance_mode = on
replication_mode = off #не юзают, тк устарело и глючно
master_slave_mode = on