bigbluebutton-Github/bbb-graphql-server/metadata/databases/databases.yaml
Gustavo Trott 1465d3dca3
refactor (gql-server): Set some configs for Max PG connections and Nginx max workers aiming to support more users (#20549)
* Set hasura max connections with pg to 100

* set nginx worker_connections from 4k to 10k

* Update bbb-graphql-server/metadata/databases/databases.yaml

* remove deprecated config

* set pg max connections up to 300

---------

Co-authored-by: Tiago Jacobs <tiago.jacobs@gmail.com>
2024-06-20 16:41:47 -03:00

26 lines
754 B
YAML

- name: default
kind: postgres
configuration:
connection_info:
database_url:
from_env: HASURA_GRAPHQL_DATABASE_URL
isolation_level: read-committed
pool_settings:
connection_lifetime: 600
idle_timeout: 180
max_connections: 50
retries: 1
use_prepared_statements: true
tables: "!include default/tables/tables.yaml"
- name: BigBlueButton
kind: postgres
configuration:
connection_info:
database_url: postgres://postgres:bbb_graphql@127.0.0.1:5432/bbb_graphql
isolation_level: read-committed
pool_settings:
connection_lifetime: 3600
max_connections: 100
use_prepared_statements: true
tables: "!include BigBlueButton/tables/tables.yaml"