You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe
pgpool container (inside of Pod) restart when many client session
Reproduce
Deploy chart with configs.
maxConnections: "1000" in postgresql chart value
default pgpool.conf
postgresql replicas: 3
pgpool replicas: 1 (or 3)
Create python script
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
import os
from urllib.parse import quote
for i in range(500):
engine = create_engine("postgresql://[USER]:%s@[IP]:[PORT]/[DB]" % quote('pass'))
db = scoped_session(sessionmaker(bind=engine))
pid = os.getpid()
cmd_sql = "INSERT INTO test (pid) VALUES ('"+str(pid)+"');"
print(cmd_sql)
db.execute(cmd_sql)
db.commit()
db.close()
Execute script with different shell terminal (create multiple process)
Data will be inserted. and stop when 80~90 records were inserted and container will restart with log below
2021-09-16 03:56:27: pid 1: LOG: shutting down
2021-09-16 03:56:27: pid 1: LOG: terminating all child processes
Expected behavior
A clear and concise description of what you expected to happen.
child process of pgpool is 32.
max_pool is 15.
so pgpool can accept 480 sessions. (at least 480 data would be inserted)
Version of Helm and Kubernetes:
Output of helm version:
Helm chart version
postgresql-ha-7.8.2
Describe
pgpool container (inside of Pod) restart when many client session
Reproduce
Deploy chart with configs.
Create python script
Execute script with different shell terminal (create multiple process)
Data will be inserted. and stop when 80~90 records were inserted and container will restart with log below
Expected behavior
A clear and concise description of what you expected to happen.
child process of pgpool is 32.
max_pool is 15.
so pgpool can accept 480 sessions. (at least 480 data would be inserted)
Version of Helm and Kubernetes:
Output of helm version:
Output of kubectl version:
The text was updated successfully, but these errors were encountered: