Skip to content

Commit

Permalink
console: update idleTimeout placeholder values for pg/mssql
Browse files Browse the repository at this point in the history
PR-URL: hasura/graphql-engine-mono#10541
Co-authored-by: Varun Choudhary <[email protected]>
Co-authored-by: Rob Dominguez <[email protected]>
GitOrigin-RevId: 5828d5d2e40a65da4e11ef8e15ba857f99a0fa77
  • Loading branch information
3 people authored and hasura-bot committed Dec 19, 2023
1 parent 004602c commit 1078122
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/docs/api-reference/syntax-defs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand All @@ -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:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
Expand Down

0 comments on commit 1078122

Please sign in to comment.