graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.RQL.Types.ResizePool

Description

Types related to resizing a connection pool

Resize connection pools, on-demand, based on underlying server replicas

See @resizeSourcePools in Hasura.RQL.Types.Backend

Synopsis

Documentation

data ServerReplicas Source #

Number of server instances. A wrapper over Word type, a non-negative integer with the same size as Int. Useful for resize a connection pool.

safeServerReplicas :: Int -> Either Text ServerReplicas Source #

Safely build ServerReplicas from non-negative and non-zero Int value.

getServerReplicasInt :: ServerReplicas -> Int Source #

Get server replic count in @Int

data ResizePoolStrategy Source #

A strategy for resizing a pool

Constructors

NeverResizePool

Never resize the pool

ResizePool Int

Resize the pool by using provided total maximum connections