danswer-ai / danswer

Gen-AI Chat for Teams - Think ChatGPT if it had access to your team's unique knowledge.
https://docs.danswer.dev/
Other
9.77k stars 1.09k forks source link

Add pre ping lifo params to sqlalchemy #1746

Open moshe opened 5 days ago

moshe commented 5 days ago

When setting https://postgresqlco.nf/doc/en/param/idle_session_timeout/ , Postgres kills connections which idle for more than idle_session_timeout seconds. Due to the facts that danswer default pool size is pretty big (40 connections), some connections get killed before used, which raise SSL errors.

May be related to: https://github.com/danswer-ai/danswer/issues/1622 https://github.com/danswer-ai/danswer/issues/1625

Running in production for 5 days without any issue so far

vercel[bot] commented 5 days ago

@moshe is attempting to deploy a commit to the Danswer Team on Vercel.

A member of the Team first needs to authorize it.