File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7373 - name : DATABASE_PREPARED_STATEMENTS
7474 value : {{ .Values.global.database.preparedStatement | quote }}
7575 {{- end }}
76+ {{/* DB session timeouts. Per-instance override wins over the umbrella default; rendered only when set so an unset value falls back to the Postgres server default. */}}
77+ {{- $statementTimeout := default .Values.global.database.statementTimeout .Values.config.database.statementTimeout }}
78+ {{- if $statementTimeout }}
79+ - name : LAGO_DATABASE_STATEMENT_TIMEOUT
80+ value : {{ $statementTimeout | quote }}
81+ {{- end }}
82+ {{- $idleInTransactionTimeout := default .Values.global.database.idleInTransactionTimeout .Values.config.database.idleInTransactionTimeout }}
83+ {{- if $idleInTransactionTimeout }}
84+ - name : LAGO_DATABASE_IDLE_TX_TIMEOUT
85+ value : {{ $idleInTransactionTimeout | quote }}
86+ {{- end }}
87+ {{- $lockTimeout := default .Values.global.database.lockTimeout .Values.config.database.lockTimeout }}
88+ {{- if $lockTimeout }}
89+ - name : LAGO_DATABASE_LOCK_TIMEOUT
90+ value : {{ $lockTimeout | quote }}
91+ {{- end }}
7692 - name : LAGO_SIDEKIQ_PRO_REQUIRED
7793 value : {{ .Values.global.sidekiq.pro | quote }}
7894 - name : LAGO_SIDEKIQ_WEB
Original file line number Diff line number Diff line change @@ -76,6 +76,21 @@ global:
7676 # explicitly set.
7777 # @section -- Database
7878 preparedStatement :
79+ # -- (int, milliseconds) Per-instance `statement_timeout`, rendered as
80+ # `LAGO_DATABASE_STATEMENT_TIMEOUT`. Overrides `global.database.statementTimeout`.
81+ # Unset → falls back to the Postgres server default.
82+ # @section -- Database
83+ statementTimeout :
84+ # -- (int, milliseconds) Per-instance `idle_in_transaction_session_timeout`,
85+ # rendered as `LAGO_DATABASE_IDLE_TX_TIMEOUT`. Overrides
86+ # `global.database.idleInTransactionTimeout`. Unset → Postgres server default.
87+ # @section -- Database
88+ idleInTransactionTimeout :
89+ # -- (int, milliseconds) Per-instance `lock_timeout`, rendered as
90+ # `LAGO_DATABASE_LOCK_TIMEOUT`. Overrides `global.database.lockTimeout`.
91+ # Unset → Postgres server default.
92+ # @section -- Database
93+ lockTimeout :
7994
8095 encryption :
8196 # -- Primary encryption key (`openssl rand -hex 16`)
Original file line number Diff line number Diff line change @@ -81,6 +81,21 @@ global:
8181 # explicitly set.
8282 # @section -- Database
8383 preparedStatement :
84+ # -- (int, milliseconds) Default `statement_timeout` for every Rails pod,
85+ # rendered as `LAGO_DATABASE_STATEMENT_TIMEOUT`. Per-component
86+ # `config.database.statementTimeout` overrides. Unset → Postgres server default.
87+ # @section -- Database
88+ statementTimeout :
89+ # -- (int, milliseconds) Default `idle_in_transaction_session_timeout`,
90+ # rendered as `LAGO_DATABASE_IDLE_TX_TIMEOUT`. Per-component override via
91+ # `config.database.idleInTransactionTimeout`. Unset → Postgres server default.
92+ # @section -- Database
93+ idleInTransactionTimeout :
94+ # -- (int, milliseconds) Default `lock_timeout`, rendered as
95+ # `LAGO_DATABASE_LOCK_TIMEOUT`. Per-component override via
96+ # `config.database.lockTimeout`. Unset → Postgres server default.
97+ # @section -- Database
98+ lockTimeout :
8499
85100 encryption :
86101 # -- Primary encryption key (`openssl rand -hex 16`)
You can’t perform that action at this time.
0 commit comments