docs: Update _postgres.mdx (#7027)

Update _postgres.mdx

Added MaxIdleConns since this option is missing in the Postgres database settings.
My implementation was slow, because this setting wasn't set and I found it after checking the larger config files. Might have value to show that this value can be set in the database specific page.

Co-authored-by: Silvan <silvan.reusser@gmail.com>
This commit is contained in:
Koen-Nocore 2023-12-07 10:15:56 +01:00 committed by GitHub
parent 8c85318fbd
commit fb235d7ea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ Database:
Port: 5432 Port: 5432
Database: zitadel Database: zitadel
MaxOpenConns: 25 MaxOpenConns: 25
MaxIdleConns: 10
MaxConnLifetime: 1h MaxConnLifetime: 1h
MaxConnIdleTime: 5m MaxConnIdleTime: 5m
Options: Options:
@ -54,4 +55,4 @@ GRANT CONNECT, CREATE ON DATABASE zitadel TO zitadel;
Don't forget to adjust `pg_hba.conf` and set a password for the zitadel user. Don't forget to adjust `pg_hba.conf` and set a password for the zitadel user.
With the setup done, follow the [phases guide](/docs/self-hosting/manage/updating_scaling#separating-init-and-setup-from-the-runtime) With the setup done, follow the [phases guide](/docs/self-hosting/manage/updating_scaling#separating-init-and-setup-from-the-runtime)
to run the init and then setup phase to get all necessary tables and data set up. to run the init and then setup phase to get all necessary tables and data set up.