UNPKG

@pulumi/digitalocean

Version:

A Pulumi package for creating and managing DigitalOcean cloud resources.

700 lines (699 loc) 36.1 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a virtual resource that can be used to change advanced configuration * options for a DigitalOcean managed PostgreSQL database cluster. * * > **Note** PostgreSQL configurations are only removed from state when destroyed. The remote configuration is not unset. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as digitalocean from "@pulumi/digitalocean"; * * const exampleDatabaseCluster = new digitalocean.DatabaseCluster("example", { * name: "example-postgresql-cluster", * engine: "pg", * version: "15", * size: digitalocean.DatabaseSlug.DB_1VPCU1GB, * region: digitalocean.Region.NYC1, * nodeCount: 1, * }); * const example = new digitalocean.DatabasePostgresqlConfig("example", { * clusterId: exampleDatabaseCluster.id, * timezone: "UTC", * workMem: 16, * }); * ``` * * ## Import * * A PostgreSQL database cluster's configuration can be imported using the `id` the parent cluster, e.g. * * bash * * ```sh * $ pulumi import digitalocean:index/databasePostgresqlConfig:DatabasePostgresqlConfig example 52556c07-788e-4d41-b8a7-c796432197d1 * ``` */ export declare class DatabasePostgresqlConfig extends pulumi.CustomResource { /** * Get an existing DatabasePostgresqlConfig resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatabasePostgresqlConfigState, opts?: pulumi.CustomResourceOptions): DatabasePostgresqlConfig; /** * Returns true if the given object is an instance of DatabasePostgresqlConfig. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is DatabasePostgresqlConfig; /** * Specifies a fraction, in a decimal value, of the table size to add to autovacuumAnalyzeThreshold when deciding whether to trigger an ANALYZE. The default is 0.2 (20% of table size). */ readonly autovacuumAnalyzeScaleFactor: pulumi.Output<number>; /** * Specifies the minimum number of inserted, updated, or deleted tuples needed to trigger an ANALYZE in any one table. The default is 50 tuples. */ readonly autovacuumAnalyzeThreshold: pulumi.Output<number>; /** * Specifies the maximum age (in transactions) that a table's pg_class.relfrozenxid field can attain before a VACUUM operation is forced to prevent transaction ID wraparound within the table. Note that the system will launch autovacuum processes to prevent wraparound even when autovacuum is otherwise disabled. This parameter will cause the server to be restarted. */ readonly autovacuumFreezeMaxAge: pulumi.Output<number>; /** * Specifies the maximum number of autovacuum processes (other than the autovacuum launcher) that may be running at any one time. The default is three. This parameter can only be set at server start. */ readonly autovacuumMaxWorkers: pulumi.Output<number>; /** * Specifies the minimum delay, in seconds, between autovacuum runs on any given database. The default is one minute. */ readonly autovacuumNaptime: pulumi.Output<number>; /** * Specifies the cost delay value, in milliseconds, that will be used in automatic VACUUM operations. If -1, uses the regular vacuumCostDelay value, which is 20 milliseconds. */ readonly autovacuumVacuumCostDelay: pulumi.Output<number>; /** * Specifies the cost limit value that will be used in automatic VACUUM operations. If -1 is specified (which is the default), the regular vacuumCostLimit value will be used. */ readonly autovacuumVacuumCostLimit: pulumi.Output<number>; /** * Specifies a fraction, in a decimal value, of the table size to add to autovacuumVacuumThreshold when deciding whether to trigger a VACUUM. The default is 0.2 (20% of table size). */ readonly autovacuumVacuumScaleFactor: pulumi.Output<number>; /** * Specifies the minimum number of updated or deleted tuples needed to trigger a VACUUM in any one table. The default is 50 tuples. */ readonly autovacuumVacuumThreshold: pulumi.Output<number>; /** * The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed. */ readonly backupHour: pulumi.Output<number>; /** * The minute of the backup hour when backup for the service starts. New backup is only started if previous backup has already completed. */ readonly backupMinute: pulumi.Output<number>; /** * Specifies the delay, in milliseconds, between activity rounds for the background writer. Default is 200 ms. */ readonly bgwriterDelay: pulumi.Output<number>; /** * The amount of kilobytes that need to be written by the background writer before attempting to force the OS to issue these writes to underlying storage. Specified in kilobytes, default is 512. Setting of 0 disables forced writeback. */ readonly bgwriterFlushAfter: pulumi.Output<number>; /** * The maximum number of buffers that the background writer can write. Setting this to zero disables background writing. Default is 100. */ readonly bgwriterLruMaxpages: pulumi.Output<number>; /** * The average recent need for new buffers is multiplied by bgwriterLruMultiplier to arrive at an estimate of the number that will be needed during the next round, (up to bgwriter_lru_maxpages). 1.0 represents a “just in time” policy of writing exactly the number of buffers predicted to be needed. Larger values provide some cushion against spikes in demand, while smaller values intentionally leave writes to be done by server processes. The default is 2.0. */ readonly bgwriterLruMultiplier: pulumi.Output<number>; /** * The ID of the target PostgreSQL cluster. */ readonly clusterId: pulumi.Output<string>; /** * The amount of time, in milliseconds, to wait on a lock before checking to see if there is a deadlock condition. */ readonly deadlockTimeout: pulumi.Output<number>; /** * Specifies the default TOAST compression method for values of compressible columns (the default is lz4). Supported values are: `lz4`, `pglz`. */ readonly defaultToastCompression: pulumi.Output<string>; /** * Time out sessions with open transactions after this number of milliseconds */ readonly idleInTransactionSessionTimeout: pulumi.Output<number>; /** * Activates, in a boolean, the system-wide use of Just-in-Time Compilation (JIT). */ readonly jit: pulumi.Output<boolean>; /** * Causes each action executed by autovacuum to be logged if it ran for at least the specified number of milliseconds. Setting this to zero logs all autovacuum actions. Minus-one (the default) disables logging autovacuum actions. */ readonly logAutovacuumMinDuration: pulumi.Output<number>; /** * Controls the amount of detail written in the server log for each message that is logged. Supported values are: `TERSE`, `DEFAULT`, `VERBOSE`. */ readonly logErrorVerbosity: pulumi.Output<string>; /** * Selects one of the available log-formats. These can support popular log analyzers like pgbadger, pganalyze, etc. Supported values are: `pid=%p,user=%u,db=%d,app=%a,client=%h`, `%m [%p] %q[user=%u,db=%d,app=%a]`, `%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h`. */ readonly logLinePrefix: pulumi.Output<string>; /** * Log statements that take more than this number of milliseconds to run. If -1, disables. */ readonly logMinDurationStatement: pulumi.Output<number>; /** * PostgreSQL maximum number of files that can be open per process. */ readonly maxFilesPerProcess: pulumi.Output<number>; /** * PostgreSQL maximum locks per transaction. Once increased, this parameter cannot be lowered from its set value. */ readonly maxLocksPerTransaction: pulumi.Output<number>; /** * PostgreSQL maximum logical replication workers (taken from the pool of max_parallel_workers). */ readonly maxLogicalReplicationWorkers: pulumi.Output<number>; /** * Sets the maximum number of workers that the system can support for parallel queries. */ readonly maxParallelWorkers: pulumi.Output<number>; /** * Sets the maximum number of workers that can be started by a single Gather or Gather Merge node. */ readonly maxParallelWorkersPerGather: pulumi.Output<number>; /** * PostgreSQL maximum predicate locks per transaction. */ readonly maxPredLocksPerTransaction: pulumi.Output<number>; /** * PostgreSQL maximum prepared transactions. Once increased, this parameter cannot be lowered from its set value. */ readonly maxPreparedTransactions: pulumi.Output<number>; /** * PostgreSQL maximum replication slots. */ readonly maxReplicationSlots: pulumi.Output<number>; /** * Maximum depth of the stack in bytes. */ readonly maxStackDepth: pulumi.Output<number>; /** * Max standby archive delay in milliseconds. */ readonly maxStandbyArchiveDelay: pulumi.Output<number>; /** * Max standby streaming delay in milliseconds. */ readonly maxStandbyStreamingDelay: pulumi.Output<number>; /** * PostgreSQL maximum WAL senders. Once increased, this parameter cannot be lowered from its set value. */ readonly maxWalSenders: pulumi.Output<number>; /** * Sets the maximum number of background processes that the system can support. Once increased, this parameter cannot be lowered from its set value. */ readonly maxWorkerProcesses: pulumi.Output<number>; /** * Sets the time interval to run pg_partman's scheduled tasks. */ readonly pgPartmanBgwInterval: pulumi.Output<number>; /** * Controls which role to use for pg_partman's scheduled background tasks. Must consist of alpha-numeric characters, dots, underscores, or dashes. May not start with dash or dot. Maximum of 64 characters. */ readonly pgPartmanBgwRole: pulumi.Output<string>; /** * Controls which statements are counted. Specify 'top' to track top-level statements (those issued directly by clients), 'all' to also track nested statements (such as statements invoked within functions), or 'none' to disable statement statistics collection. The default value is top. Supported values are: `all`, `top`, `none`. */ readonly pgStatStatementsTrack: pulumi.Output<string>; /** * PGBouncer connection pooling settings */ readonly pgbouncers: pulumi.Output<outputs.DatabasePostgresqlConfigPgbouncer[]>; /** * Percentage of total RAM that the database server uses for shared memory buffers. Valid range is 20-60 (float), which corresponds to 20% - 60%. This setting adjusts the sharedBuffers configuration value. */ readonly sharedBuffersPercentage: pulumi.Output<number>; /** * PostgreSQL temporary file limit in KiB. If -1, sets to unlimited. */ readonly tempFileLimit: pulumi.Output<number>; /** * TimescaleDB extension configuration values */ readonly timescaledbs: pulumi.Output<outputs.DatabasePostgresqlConfigTimescaledb[]>; /** * PostgreSQL service timezone */ readonly timezone: pulumi.Output<string>; /** * Specifies the number of bytes reserved to track the currently executing command for each active session. */ readonly trackActivityQuerySize: pulumi.Output<number>; /** * Record commit time of transactions. The default value is top. Supported values are: `off`, `on`. */ readonly trackCommitTimestamp: pulumi.Output<string>; /** * Enables tracking of function call counts and time used. The default value is top. Supported values are: `all`, `pl`, `none`. */ readonly trackFunctions: pulumi.Output<string>; /** * Enables timing of database I/O calls. This parameter is off by default, because it will repeatedly query the operating system for the current time, which may cause significant overhead on some platforms. The default value is top. Supported values are: `off`, `on`. */ readonly trackIoTiming: pulumi.Output<string>; /** * Terminate replication connections that are inactive for longer than this amount of time, in milliseconds. Setting this value to zero disables the timeout. Must be either 0 or between 5000 and 10800000. */ readonly walSenderTimeout: pulumi.Output<number>; /** * WAL flush interval in milliseconds. Note that setting this value to lower than the default 200ms may negatively impact performance */ readonly walWriterDelay: pulumi.Output<number>; /** * The maximum amount of memory, in MB, used by a query operation (such as a sort or hash table) before writing to temporary disk files. Default is 1MB + 0.075% of total RAM (up to 32MB). */ readonly workMem: pulumi.Output<number>; /** * Create a DatabasePostgresqlConfig resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DatabasePostgresqlConfigArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DatabasePostgresqlConfig resources. */ export interface DatabasePostgresqlConfigState { /** * Specifies a fraction, in a decimal value, of the table size to add to autovacuumAnalyzeThreshold when deciding whether to trigger an ANALYZE. The default is 0.2 (20% of table size). */ autovacuumAnalyzeScaleFactor?: pulumi.Input<number>; /** * Specifies the minimum number of inserted, updated, or deleted tuples needed to trigger an ANALYZE in any one table. The default is 50 tuples. */ autovacuumAnalyzeThreshold?: pulumi.Input<number>; /** * Specifies the maximum age (in transactions) that a table's pg_class.relfrozenxid field can attain before a VACUUM operation is forced to prevent transaction ID wraparound within the table. Note that the system will launch autovacuum processes to prevent wraparound even when autovacuum is otherwise disabled. This parameter will cause the server to be restarted. */ autovacuumFreezeMaxAge?: pulumi.Input<number>; /** * Specifies the maximum number of autovacuum processes (other than the autovacuum launcher) that may be running at any one time. The default is three. This parameter can only be set at server start. */ autovacuumMaxWorkers?: pulumi.Input<number>; /** * Specifies the minimum delay, in seconds, between autovacuum runs on any given database. The default is one minute. */ autovacuumNaptime?: pulumi.Input<number>; /** * Specifies the cost delay value, in milliseconds, that will be used in automatic VACUUM operations. If -1, uses the regular vacuumCostDelay value, which is 20 milliseconds. */ autovacuumVacuumCostDelay?: pulumi.Input<number>; /** * Specifies the cost limit value that will be used in automatic VACUUM operations. If -1 is specified (which is the default), the regular vacuumCostLimit value will be used. */ autovacuumVacuumCostLimit?: pulumi.Input<number>; /** * Specifies a fraction, in a decimal value, of the table size to add to autovacuumVacuumThreshold when deciding whether to trigger a VACUUM. The default is 0.2 (20% of table size). */ autovacuumVacuumScaleFactor?: pulumi.Input<number>; /** * Specifies the minimum number of updated or deleted tuples needed to trigger a VACUUM in any one table. The default is 50 tuples. */ autovacuumVacuumThreshold?: pulumi.Input<number>; /** * The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed. */ backupHour?: pulumi.Input<number>; /** * The minute of the backup hour when backup for the service starts. New backup is only started if previous backup has already completed. */ backupMinute?: pulumi.Input<number>; /** * Specifies the delay, in milliseconds, between activity rounds for the background writer. Default is 200 ms. */ bgwriterDelay?: pulumi.Input<number>; /** * The amount of kilobytes that need to be written by the background writer before attempting to force the OS to issue these writes to underlying storage. Specified in kilobytes, default is 512. Setting of 0 disables forced writeback. */ bgwriterFlushAfter?: pulumi.Input<number>; /** * The maximum number of buffers that the background writer can write. Setting this to zero disables background writing. Default is 100. */ bgwriterLruMaxpages?: pulumi.Input<number>; /** * The average recent need for new buffers is multiplied by bgwriterLruMultiplier to arrive at an estimate of the number that will be needed during the next round, (up to bgwriter_lru_maxpages). 1.0 represents a “just in time” policy of writing exactly the number of buffers predicted to be needed. Larger values provide some cushion against spikes in demand, while smaller values intentionally leave writes to be done by server processes. The default is 2.0. */ bgwriterLruMultiplier?: pulumi.Input<number>; /** * The ID of the target PostgreSQL cluster. */ clusterId?: pulumi.Input<string>; /** * The amount of time, in milliseconds, to wait on a lock before checking to see if there is a deadlock condition. */ deadlockTimeout?: pulumi.Input<number>; /** * Specifies the default TOAST compression method for values of compressible columns (the default is lz4). Supported values are: `lz4`, `pglz`. */ defaultToastCompression?: pulumi.Input<string>; /** * Time out sessions with open transactions after this number of milliseconds */ idleInTransactionSessionTimeout?: pulumi.Input<number>; /** * Activates, in a boolean, the system-wide use of Just-in-Time Compilation (JIT). */ jit?: pulumi.Input<boolean>; /** * Causes each action executed by autovacuum to be logged if it ran for at least the specified number of milliseconds. Setting this to zero logs all autovacuum actions. Minus-one (the default) disables logging autovacuum actions. */ logAutovacuumMinDuration?: pulumi.Input<number>; /** * Controls the amount of detail written in the server log for each message that is logged. Supported values are: `TERSE`, `DEFAULT`, `VERBOSE`. */ logErrorVerbosity?: pulumi.Input<string>; /** * Selects one of the available log-formats. These can support popular log analyzers like pgbadger, pganalyze, etc. Supported values are: `pid=%p,user=%u,db=%d,app=%a,client=%h`, `%m [%p] %q[user=%u,db=%d,app=%a]`, `%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h`. */ logLinePrefix?: pulumi.Input<string>; /** * Log statements that take more than this number of milliseconds to run. If -1, disables. */ logMinDurationStatement?: pulumi.Input<number>; /** * PostgreSQL maximum number of files that can be open per process. */ maxFilesPerProcess?: pulumi.Input<number>; /** * PostgreSQL maximum locks per transaction. Once increased, this parameter cannot be lowered from its set value. */ maxLocksPerTransaction?: pulumi.Input<number>; /** * PostgreSQL maximum logical replication workers (taken from the pool of max_parallel_workers). */ maxLogicalReplicationWorkers?: pulumi.Input<number>; /** * Sets the maximum number of workers that the system can support for parallel queries. */ maxParallelWorkers?: pulumi.Input<number>; /** * Sets the maximum number of workers that can be started by a single Gather or Gather Merge node. */ maxParallelWorkersPerGather?: pulumi.Input<number>; /** * PostgreSQL maximum predicate locks per transaction. */ maxPredLocksPerTransaction?: pulumi.Input<number>; /** * PostgreSQL maximum prepared transactions. Once increased, this parameter cannot be lowered from its set value. */ maxPreparedTransactions?: pulumi.Input<number>; /** * PostgreSQL maximum replication slots. */ maxReplicationSlots?: pulumi.Input<number>; /** * Maximum depth of the stack in bytes. */ maxStackDepth?: pulumi.Input<number>; /** * Max standby archive delay in milliseconds. */ maxStandbyArchiveDelay?: pulumi.Input<number>; /** * Max standby streaming delay in milliseconds. */ maxStandbyStreamingDelay?: pulumi.Input<number>; /** * PostgreSQL maximum WAL senders. Once increased, this parameter cannot be lowered from its set value. */ maxWalSenders?: pulumi.Input<number>; /** * Sets the maximum number of background processes that the system can support. Once increased, this parameter cannot be lowered from its set value. */ maxWorkerProcesses?: pulumi.Input<number>; /** * Sets the time interval to run pg_partman's scheduled tasks. */ pgPartmanBgwInterval?: pulumi.Input<number>; /** * Controls which role to use for pg_partman's scheduled background tasks. Must consist of alpha-numeric characters, dots, underscores, or dashes. May not start with dash or dot. Maximum of 64 characters. */ pgPartmanBgwRole?: pulumi.Input<string>; /** * Controls which statements are counted. Specify 'top' to track top-level statements (those issued directly by clients), 'all' to also track nested statements (such as statements invoked within functions), or 'none' to disable statement statistics collection. The default value is top. Supported values are: `all`, `top`, `none`. */ pgStatStatementsTrack?: pulumi.Input<string>; /** * PGBouncer connection pooling settings */ pgbouncers?: pulumi.Input<pulumi.Input<inputs.DatabasePostgresqlConfigPgbouncer>[]>; /** * Percentage of total RAM that the database server uses for shared memory buffers. Valid range is 20-60 (float), which corresponds to 20% - 60%. This setting adjusts the sharedBuffers configuration value. */ sharedBuffersPercentage?: pulumi.Input<number>; /** * PostgreSQL temporary file limit in KiB. If -1, sets to unlimited. */ tempFileLimit?: pulumi.Input<number>; /** * TimescaleDB extension configuration values */ timescaledbs?: pulumi.Input<pulumi.Input<inputs.DatabasePostgresqlConfigTimescaledb>[]>; /** * PostgreSQL service timezone */ timezone?: pulumi.Input<string>; /** * Specifies the number of bytes reserved to track the currently executing command for each active session. */ trackActivityQuerySize?: pulumi.Input<number>; /** * Record commit time of transactions. The default value is top. Supported values are: `off`, `on`. */ trackCommitTimestamp?: pulumi.Input<string>; /** * Enables tracking of function call counts and time used. The default value is top. Supported values are: `all`, `pl`, `none`. */ trackFunctions?: pulumi.Input<string>; /** * Enables timing of database I/O calls. This parameter is off by default, because it will repeatedly query the operating system for the current time, which may cause significant overhead on some platforms. The default value is top. Supported values are: `off`, `on`. */ trackIoTiming?: pulumi.Input<string>; /** * Terminate replication connections that are inactive for longer than this amount of time, in milliseconds. Setting this value to zero disables the timeout. Must be either 0 or between 5000 and 10800000. */ walSenderTimeout?: pulumi.Input<number>; /** * WAL flush interval in milliseconds. Note that setting this value to lower than the default 200ms may negatively impact performance */ walWriterDelay?: pulumi.Input<number>; /** * The maximum amount of memory, in MB, used by a query operation (such as a sort or hash table) before writing to temporary disk files. Default is 1MB + 0.075% of total RAM (up to 32MB). */ workMem?: pulumi.Input<number>; } /** * The set of arguments for constructing a DatabasePostgresqlConfig resource. */ export interface DatabasePostgresqlConfigArgs { /** * Specifies a fraction, in a decimal value, of the table size to add to autovacuumAnalyzeThreshold when deciding whether to trigger an ANALYZE. The default is 0.2 (20% of table size). */ autovacuumAnalyzeScaleFactor?: pulumi.Input<number>; /** * Specifies the minimum number of inserted, updated, or deleted tuples needed to trigger an ANALYZE in any one table. The default is 50 tuples. */ autovacuumAnalyzeThreshold?: pulumi.Input<number>; /** * Specifies the maximum age (in transactions) that a table's pg_class.relfrozenxid field can attain before a VACUUM operation is forced to prevent transaction ID wraparound within the table. Note that the system will launch autovacuum processes to prevent wraparound even when autovacuum is otherwise disabled. This parameter will cause the server to be restarted. */ autovacuumFreezeMaxAge?: pulumi.Input<number>; /** * Specifies the maximum number of autovacuum processes (other than the autovacuum launcher) that may be running at any one time. The default is three. This parameter can only be set at server start. */ autovacuumMaxWorkers?: pulumi.Input<number>; /** * Specifies the minimum delay, in seconds, between autovacuum runs on any given database. The default is one minute. */ autovacuumNaptime?: pulumi.Input<number>; /** * Specifies the cost delay value, in milliseconds, that will be used in automatic VACUUM operations. If -1, uses the regular vacuumCostDelay value, which is 20 milliseconds. */ autovacuumVacuumCostDelay?: pulumi.Input<number>; /** * Specifies the cost limit value that will be used in automatic VACUUM operations. If -1 is specified (which is the default), the regular vacuumCostLimit value will be used. */ autovacuumVacuumCostLimit?: pulumi.Input<number>; /** * Specifies a fraction, in a decimal value, of the table size to add to autovacuumVacuumThreshold when deciding whether to trigger a VACUUM. The default is 0.2 (20% of table size). */ autovacuumVacuumScaleFactor?: pulumi.Input<number>; /** * Specifies the minimum number of updated or deleted tuples needed to trigger a VACUUM in any one table. The default is 50 tuples. */ autovacuumVacuumThreshold?: pulumi.Input<number>; /** * The hour of day (in UTC) when backup for the service starts. New backup only starts if previous backup has already completed. */ backupHour?: pulumi.Input<number>; /** * The minute of the backup hour when backup for the service starts. New backup is only started if previous backup has already completed. */ backupMinute?: pulumi.Input<number>; /** * Specifies the delay, in milliseconds, between activity rounds for the background writer. Default is 200 ms. */ bgwriterDelay?: pulumi.Input<number>; /** * The amount of kilobytes that need to be written by the background writer before attempting to force the OS to issue these writes to underlying storage. Specified in kilobytes, default is 512. Setting of 0 disables forced writeback. */ bgwriterFlushAfter?: pulumi.Input<number>; /** * The maximum number of buffers that the background writer can write. Setting this to zero disables background writing. Default is 100. */ bgwriterLruMaxpages?: pulumi.Input<number>; /** * The average recent need for new buffers is multiplied by bgwriterLruMultiplier to arrive at an estimate of the number that will be needed during the next round, (up to bgwriter_lru_maxpages). 1.0 represents a “just in time” policy of writing exactly the number of buffers predicted to be needed. Larger values provide some cushion against spikes in demand, while smaller values intentionally leave writes to be done by server processes. The default is 2.0. */ bgwriterLruMultiplier?: pulumi.Input<number>; /** * The ID of the target PostgreSQL cluster. */ clusterId: pulumi.Input<string>; /** * The amount of time, in milliseconds, to wait on a lock before checking to see if there is a deadlock condition. */ deadlockTimeout?: pulumi.Input<number>; /** * Specifies the default TOAST compression method for values of compressible columns (the default is lz4). Supported values are: `lz4`, `pglz`. */ defaultToastCompression?: pulumi.Input<string>; /** * Time out sessions with open transactions after this number of milliseconds */ idleInTransactionSessionTimeout?: pulumi.Input<number>; /** * Activates, in a boolean, the system-wide use of Just-in-Time Compilation (JIT). */ jit?: pulumi.Input<boolean>; /** * Causes each action executed by autovacuum to be logged if it ran for at least the specified number of milliseconds. Setting this to zero logs all autovacuum actions. Minus-one (the default) disables logging autovacuum actions. */ logAutovacuumMinDuration?: pulumi.Input<number>; /** * Controls the amount of detail written in the server log for each message that is logged. Supported values are: `TERSE`, `DEFAULT`, `VERBOSE`. */ logErrorVerbosity?: pulumi.Input<string>; /** * Selects one of the available log-formats. These can support popular log analyzers like pgbadger, pganalyze, etc. Supported values are: `pid=%p,user=%u,db=%d,app=%a,client=%h`, `%m [%p] %q[user=%u,db=%d,app=%a]`, `%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h`. */ logLinePrefix?: pulumi.Input<string>; /** * Log statements that take more than this number of milliseconds to run. If -1, disables. */ logMinDurationStatement?: pulumi.Input<number>; /** * PostgreSQL maximum number of files that can be open per process. */ maxFilesPerProcess?: pulumi.Input<number>; /** * PostgreSQL maximum locks per transaction. Once increased, this parameter cannot be lowered from its set value. */ maxLocksPerTransaction?: pulumi.Input<number>; /** * PostgreSQL maximum logical replication workers (taken from the pool of max_parallel_workers). */ maxLogicalReplicationWorkers?: pulumi.Input<number>; /** * Sets the maximum number of workers that the system can support for parallel queries. */ maxParallelWorkers?: pulumi.Input<number>; /** * Sets the maximum number of workers that can be started by a single Gather or Gather Merge node. */ maxParallelWorkersPerGather?: pulumi.Input<number>; /** * PostgreSQL maximum predicate locks per transaction. */ maxPredLocksPerTransaction?: pulumi.Input<number>; /** * PostgreSQL maximum prepared transactions. Once increased, this parameter cannot be lowered from its set value. */ maxPreparedTransactions?: pulumi.Input<number>; /** * PostgreSQL maximum replication slots. */ maxReplicationSlots?: pulumi.Input<number>; /** * Maximum depth of the stack in bytes. */ maxStackDepth?: pulumi.Input<number>; /** * Max standby archive delay in milliseconds. */ maxStandbyArchiveDelay?: pulumi.Input<number>; /** * Max standby streaming delay in milliseconds. */ maxStandbyStreamingDelay?: pulumi.Input<number>; /** * PostgreSQL maximum WAL senders. Once increased, this parameter cannot be lowered from its set value. */ maxWalSenders?: pulumi.Input<number>; /** * Sets the maximum number of background processes that the system can support. Once increased, this parameter cannot be lowered from its set value. */ maxWorkerProcesses?: pulumi.Input<number>; /** * Sets the time interval to run pg_partman's scheduled tasks. */ pgPartmanBgwInterval?: pulumi.Input<number>; /** * Controls which role to use for pg_partman's scheduled background tasks. Must consist of alpha-numeric characters, dots, underscores, or dashes. May not start with dash or dot. Maximum of 64 characters. */ pgPartmanBgwRole?: pulumi.Input<string>; /** * Controls which statements are counted. Specify 'top' to track top-level statements (those issued directly by clients), 'all' to also track nested statements (such as statements invoked within functions), or 'none' to disable statement statistics collection. The default value is top. Supported values are: `all`, `top`, `none`. */ pgStatStatementsTrack?: pulumi.Input<string>; /** * PGBouncer connection pooling settings */ pgbouncers?: pulumi.Input<pulumi.Input<inputs.DatabasePostgresqlConfigPgbouncer>[]>; /** * Percentage of total RAM that the database server uses for shared memory buffers. Valid range is 20-60 (float), which corresponds to 20% - 60%. This setting adjusts the sharedBuffers configuration value. */ sharedBuffersPercentage?: pulumi.Input<number>; /** * PostgreSQL temporary file limit in KiB. If -1, sets to unlimited. */ tempFileLimit?: pulumi.Input<number>; /** * TimescaleDB extension configuration values */ timescaledbs?: pulumi.Input<pulumi.Input<inputs.DatabasePostgresqlConfigTimescaledb>[]>; /** * PostgreSQL service timezone */ timezone?: pulumi.Input<string>; /** * Specifies the number of bytes reserved to track the currently executing command for each active session. */ trackActivityQuerySize?: pulumi.Input<number>; /** * Record commit time of transactions. The default value is top. Supported values are: `off`, `on`. */ trackCommitTimestamp?: pulumi.Input<string>; /** * Enables tracking of function call counts and time used. The default value is top. Supported values are: `all`, `pl`, `none`. */ trackFunctions?: pulumi.Input<string>; /** * Enables timing of database I/O calls. This parameter is off by default, because it will repeatedly query the operating system for the current time, which may cause significant overhead on some platforms. The default value is top. Supported values are: `off`, `on`. */ trackIoTiming?: pulumi.Input<string>; /** * Terminate replication connections that are inactive for longer than this amount of time, in milliseconds. Setting this value to zero disables the timeout. Must be either 0 or between 5000 and 10800000. */ walSenderTimeout?: pulumi.Input<number>; /** * WAL flush interval in milliseconds. Note that setting this value to lower than the default 200ms may negatively impact performance */ walWriterDelay?: pulumi.Input<number>; /** * The maximum amount of memory, in MB, used by a query operation (such as a sort or hash table) before writing to temporary disk files. Default is 1MB + 0.075% of total RAM (up to 32MB). */ workMem?: pulumi.Input<number>; }