昨天我用 pgbench 测试了 pgpool:
pgbench -c 30 -T 20 -r pgbench -p9999 -h192.168.8.28
并发连接数为 30,pgpool 默认 num_init_children 为 32。
因此,当我设置 -c 33 时,除非我爆发,否则测试将被阻止。
我的问题是:
If my concurrent connections online is 10000, should I set num_init_children=10000?
num_init_children=10000 意味着 pgpool 以 10000 个进程开始,这很糟糕。
有什么不对 ?
如何为 pgpool 配置 10000 个并发连接?