mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-11 10:46:25 +03:00
console: update idleTimeout
placeholder values for pg/mssql
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10541 Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com> Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com> GitOrigin-RevId: 5828d5d2e40a65da4e11ef8e15ba857f99a0fa77
This commit is contained in:
parent
004602c37f
commit
107812213b
@ -182,7 +182,7 @@ generally shouldn't be enabled at the same time.
|
||||
| --------------------- | -------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| max_connections | false | `Integer` | Maximum number of connections to be kept in the pool (default: 50) |
|
||||
| total_max_connections | false | `Integer` | Maximum number of total connections to be maintained across any number of Hasura Cloud instances (default: 1000). Takes precedence over `max_connections` in Cloud projects. _(Only available in Hasura Cloud)_ |
|
||||
| idle_timeout | false | `Integer` | The idle timeout (in seconds) per connection (default: 180) |
|
||||
| idle_timeout | false | `Integer` | The idle timeout (in seconds) per connection (180 seconds for self-hosted & 30 seconds for Cloud). |
|
||||
| retries | false | `Integer` | Number of retries to perform when failing to acquire connection (default: 1). Note that this configuration does not affect user/statement errors on PG. |
|
||||
| pool_timeout | false | `Integer` | Maximum time to wait while acquiring a Postgres connection from the pool, in seconds (default: forever) |
|
||||
| connection_lifetime | false | `Integer` | Time from connection creation after which the connection should be destroyed and a new one created. A value of 0 indicates we should never destroy an active connection. If 0 is passed, memory from large query results may not be reclaimed. (default: 600 sec) |
|
||||
@ -207,7 +207,7 @@ This schema indicates that the source uses a connection pool (the default):
|
||||
| --------------------- | -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| max_connections | false | `Integer` | Maximum number of connections to be kept in the pool (default: 50) |
|
||||
| total_max_connections | false | `Integer` | Maximum number of total connections across any number of Hasura Cloud instances (default: 50). Takes precedence over `max_connections` in Cloud projects. _(Only available in Cloud)_ |
|
||||
| idle_timeout | false | `Integer` | The idle timeout (in seconds) per connection (default: 180) |
|
||||
| idle_timeout | false | `Integer` | The idle timeout (in seconds) per connection (default: 5) |
|
||||
|
||||
This schema indicates that the source does not use a connection pool:
|
||||
|
||||
|
@ -12,7 +12,7 @@ export const PoolSettings = ({ name }: { name: string }) => {
|
||||
<NumberInputField
|
||||
name={`${name}.idleTimeout`}
|
||||
label="Idle Timeout"
|
||||
placeholder="180"
|
||||
placeholder="5"
|
||||
tooltip="The idle timeout (in seconds) per connection"
|
||||
/>
|
||||
</>
|
||||
|
@ -33,7 +33,7 @@ export const PoolSettings = ({ name }: { name: string }) => {
|
||||
type="number"
|
||||
name={`${name}.idleTimeout`}
|
||||
label="Idle Timeout"
|
||||
placeholder="180"
|
||||
placeholder={isCloudConsole(globals) ? '30' : '180'}
|
||||
tooltip="The idle timeout (in seconds) per connection"
|
||||
fieldProps={commonFieldProps}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user