digitalocean.DatabaseMongodbConfig
Explore with Pulumi AI
Provides a virtual resource that can be used to change advanced configuration options for a DigitalOcean managed MongoDB database cluster.
Note MongoDB configurations are only removed from state when destroyed. The remote configuration is not unset.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const exampleDatabaseCluster = new digitalocean.DatabaseCluster("example", {
name: "example-mongodb-cluster",
engine: "mongodb",
version: "7",
size: digitalocean.DatabaseSlug.DB_1VPCU1GB,
region: digitalocean.Region.NYC3,
nodeCount: 1,
});
const example = new digitalocean.DatabaseMongodbConfig("example", {
clusterId: exampleDatabaseCluster.id,
defaultReadConcern: "majority",
defaultWriteConcern: "majority",
transactionLifetimeLimitSeconds: 100,
slowOpThresholdMs: 100,
verbosity: 3,
});
import pulumi
import pulumi_digitalocean as digitalocean
example_database_cluster = digitalocean.DatabaseCluster("example",
name="example-mongodb-cluster",
engine="mongodb",
version="7",
size=digitalocean.DatabaseSlug.D_B_1_VPCU1_GB,
region=digitalocean.Region.NYC3,
node_count=1)
example = digitalocean.DatabaseMongodbConfig("example",
cluster_id=example_database_cluster.id,
default_read_concern="majority",
default_write_concern="majority",
transaction_lifetime_limit_seconds=100,
slow_op_threshold_ms=100,
verbosity=3)
package main
import (
"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleDatabaseCluster, err := digitalocean.NewDatabaseCluster(ctx, "example", &digitalocean.DatabaseClusterArgs{
Name: pulumi.String("example-mongodb-cluster"),
Engine: pulumi.String("mongodb"),
Version: pulumi.String("7"),
Size: pulumi.String(digitalocean.DatabaseSlug_DB_1VPCU1GB),
Region: pulumi.String(digitalocean.RegionNYC3),
NodeCount: pulumi.Int(1),
})
if err != nil {
return err
}
_, err = digitalocean.NewDatabaseMongodbConfig(ctx, "example", &digitalocean.DatabaseMongodbConfigArgs{
ClusterId: exampleDatabaseCluster.ID(),
DefaultReadConcern: pulumi.String("majority"),
DefaultWriteConcern: pulumi.String("majority"),
TransactionLifetimeLimitSeconds: pulumi.Int(100),
SlowOpThresholdMs: pulumi.Int(100),
Verbosity: pulumi.Int(3),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
return await Deployment.RunAsync(() =>
{
var exampleDatabaseCluster = new DigitalOcean.DatabaseCluster("example", new()
{
Name = "example-mongodb-cluster",
Engine = "mongodb",
Version = "7",
Size = DigitalOcean.DatabaseSlug.DB_1VPCU1GB,
Region = DigitalOcean.Region.NYC3,
NodeCount = 1,
});
var example = new DigitalOcean.DatabaseMongodbConfig("example", new()
{
ClusterId = exampleDatabaseCluster.Id,
DefaultReadConcern = "majority",
DefaultWriteConcern = "majority",
TransactionLifetimeLimitSeconds = 100,
SlowOpThresholdMs = 100,
Verbosity = 3,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.DatabaseCluster;
import com.pulumi.digitalocean.DatabaseClusterArgs;
import com.pulumi.digitalocean.DatabaseMongodbConfig;
import com.pulumi.digitalocean.DatabaseMongodbConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleDatabaseCluster = new DatabaseCluster("exampleDatabaseCluster", DatabaseClusterArgs.builder()
.name("example-mongodb-cluster")
.engine("mongodb")
.version("7")
.size("db-s-1vcpu-1gb")
.region("nyc3")
.nodeCount(1)
.build());
var example = new DatabaseMongodbConfig("example", DatabaseMongodbConfigArgs.builder()
.clusterId(exampleDatabaseCluster.id())
.defaultReadConcern("majority")
.defaultWriteConcern("majority")
.transactionLifetimeLimitSeconds(100)
.slowOpThresholdMs(100)
.verbosity(3)
.build());
}
}
resources:
example:
type: digitalocean:DatabaseMongodbConfig
properties:
clusterId: ${exampleDatabaseCluster.id}
defaultReadConcern: majority
defaultWriteConcern: majority
transactionLifetimeLimitSeconds: 100
slowOpThresholdMs: 100
verbosity: 3
exampleDatabaseCluster:
type: digitalocean:DatabaseCluster
name: example
properties:
name: example-mongodb-cluster
engine: mongodb
version: '7'
size: db-s-1vcpu-1gb
region: nyc3
nodeCount: 1
Create DatabaseMongodbConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DatabaseMongodbConfig(name: string, args: DatabaseMongodbConfigArgs, opts?: CustomResourceOptions);
@overload
def DatabaseMongodbConfig(resource_name: str,
args: DatabaseMongodbConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DatabaseMongodbConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
default_read_concern: Optional[str] = None,
default_write_concern: Optional[str] = None,
slow_op_threshold_ms: Optional[int] = None,
transaction_lifetime_limit_seconds: Optional[int] = None,
verbosity: Optional[int] = None)
func NewDatabaseMongodbConfig(ctx *Context, name string, args DatabaseMongodbConfigArgs, opts ...ResourceOption) (*DatabaseMongodbConfig, error)
public DatabaseMongodbConfig(string name, DatabaseMongodbConfigArgs args, CustomResourceOptions? opts = null)
public DatabaseMongodbConfig(String name, DatabaseMongodbConfigArgs args)
public DatabaseMongodbConfig(String name, DatabaseMongodbConfigArgs args, CustomResourceOptions options)
type: digitalocean:DatabaseMongodbConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DatabaseMongodbConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DatabaseMongodbConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DatabaseMongodbConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabaseMongodbConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabaseMongodbConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var databaseMongodbConfigResource = new DigitalOcean.DatabaseMongodbConfig("databaseMongodbConfigResource", new()
{
ClusterId = "string",
DefaultReadConcern = "string",
DefaultWriteConcern = "string",
SlowOpThresholdMs = 0,
TransactionLifetimeLimitSeconds = 0,
Verbosity = 0,
});
example, err := digitalocean.NewDatabaseMongodbConfig(ctx, "databaseMongodbConfigResource", &digitalocean.DatabaseMongodbConfigArgs{
ClusterId: pulumi.String("string"),
DefaultReadConcern: pulumi.String("string"),
DefaultWriteConcern: pulumi.String("string"),
SlowOpThresholdMs: pulumi.Int(0),
TransactionLifetimeLimitSeconds: pulumi.Int(0),
Verbosity: pulumi.Int(0),
})
var databaseMongodbConfigResource = new DatabaseMongodbConfig("databaseMongodbConfigResource", DatabaseMongodbConfigArgs.builder()
.clusterId("string")
.defaultReadConcern("string")
.defaultWriteConcern("string")
.slowOpThresholdMs(0)
.transactionLifetimeLimitSeconds(0)
.verbosity(0)
.build());
database_mongodb_config_resource = digitalocean.DatabaseMongodbConfig("databaseMongodbConfigResource",
cluster_id="string",
default_read_concern="string",
default_write_concern="string",
slow_op_threshold_ms=0,
transaction_lifetime_limit_seconds=0,
verbosity=0)
const databaseMongodbConfigResource = new digitalocean.DatabaseMongodbConfig("databaseMongodbConfigResource", {
clusterId: "string",
defaultReadConcern: "string",
defaultWriteConcern: "string",
slowOpThresholdMs: 0,
transactionLifetimeLimitSeconds: 0,
verbosity: 0,
});
type: digitalocean:DatabaseMongodbConfig
properties:
clusterId: string
defaultReadConcern: string
defaultWriteConcern: string
slowOpThresholdMs: 0
transactionLifetimeLimitSeconds: 0
verbosity: 0
DatabaseMongodbConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DatabaseMongodbConfig resource accepts the following input properties:
- Cluster
Id string - The ID of the target MongoDB cluster.
- Default
Read stringConcern - Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more here.
- Default
Write stringConcern - Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either
majority
or a number0...n
which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to0
will request no acknowledgement of the write operation. Learn more here. - Slow
Op intThreshold Ms - Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- Transaction
Lifetime intLimit Seconds - Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every
transactionLifetimeLimitSeconds/2 seconds
or at least once every 60 seconds. Changing this parameter will lead to a restart of the MongoDB service. Learn more here. - Verbosity int
- The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- Cluster
Id string - The ID of the target MongoDB cluster.
- Default
Read stringConcern - Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more here.
- Default
Write stringConcern - Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either
majority
or a number0...n
which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to0
will request no acknowledgement of the write operation. Learn more here. - Slow
Op intThreshold Ms - Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- Transaction
Lifetime intLimit Seconds - Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every
transactionLifetimeLimitSeconds/2 seconds
or at least once every 60 seconds. Changing this parameter will lead to a restart of the MongoDB service. Learn more here. - Verbosity int
- The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- cluster
Id String - The ID of the target MongoDB cluster.
- default
Read StringConcern - Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more here.
- default
Write StringConcern - Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either
majority
or a number0...n
which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to0
will request no acknowledgement of the write operation. Learn more here. - slow
Op IntegerThreshold Ms - Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- transaction
Lifetime IntegerLimit Seconds - Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every
transactionLifetimeLimitSeconds/2 seconds
or at least once every 60 seconds. Changing this parameter will lead to a restart of the MongoDB service. Learn more here. - verbosity Integer
- The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- cluster
Id string - The ID of the target MongoDB cluster.
- default
Read stringConcern - Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more here.
- default
Write stringConcern - Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either
majority
or a number0...n
which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to0
will request no acknowledgement of the write operation. Learn more here. - slow
Op numberThreshold Ms - Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- transaction
Lifetime numberLimit Seconds - Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every
transactionLifetimeLimitSeconds/2 seconds
or at least once every 60 seconds. Changing this parameter will lead to a restart of the MongoDB service. Learn more here. - verbosity number
- The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- cluster_
id str - The ID of the target MongoDB cluster.
- default_
read_ strconcern - Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more here.
- default_
write_ strconcern - Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either
majority
or a number0...n
which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to0
will request no acknowledgement of the write operation. Learn more here. - slow_
op_ intthreshold_ ms - Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- transaction_
lifetime_ intlimit_ seconds - Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every
transactionLifetimeLimitSeconds/2 seconds
or at least once every 60 seconds. Changing this parameter will lead to a restart of the MongoDB service. Learn more here. - verbosity int
- The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- cluster
Id String - The ID of the target MongoDB cluster.
- default
Read StringConcern - Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more here.
- default
Write StringConcern - Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either
majority
or a number0...n
which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to0
will request no acknowledgement of the write operation. Learn more here. - slow
Op NumberThreshold Ms - Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- transaction
Lifetime NumberLimit Seconds - Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every
transactionLifetimeLimitSeconds/2 seconds
or at least once every 60 seconds. Changing this parameter will lead to a restart of the MongoDB service. Learn more here. - verbosity Number
- The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
Outputs
All input properties are implicitly available as output properties. Additionally, the DatabaseMongodbConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DatabaseMongodbConfig Resource
Get an existing DatabaseMongodbConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DatabaseMongodbConfigState, opts?: CustomResourceOptions): DatabaseMongodbConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
default_read_concern: Optional[str] = None,
default_write_concern: Optional[str] = None,
slow_op_threshold_ms: Optional[int] = None,
transaction_lifetime_limit_seconds: Optional[int] = None,
verbosity: Optional[int] = None) -> DatabaseMongodbConfig
func GetDatabaseMongodbConfig(ctx *Context, name string, id IDInput, state *DatabaseMongodbConfigState, opts ...ResourceOption) (*DatabaseMongodbConfig, error)
public static DatabaseMongodbConfig Get(string name, Input<string> id, DatabaseMongodbConfigState? state, CustomResourceOptions? opts = null)
public static DatabaseMongodbConfig get(String name, Output<String> id, DatabaseMongodbConfigState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Id string - The ID of the target MongoDB cluster.
- Default
Read stringConcern - Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more here.
- Default
Write stringConcern - Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either
majority
or a number0...n
which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to0
will request no acknowledgement of the write operation. Learn more here. - Slow
Op intThreshold Ms - Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- Transaction
Lifetime intLimit Seconds - Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every
transactionLifetimeLimitSeconds/2 seconds
or at least once every 60 seconds. Changing this parameter will lead to a restart of the MongoDB service. Learn more here. - Verbosity int
- The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- Cluster
Id string - The ID of the target MongoDB cluster.
- Default
Read stringConcern - Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more here.
- Default
Write stringConcern - Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either
majority
or a number0...n
which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to0
will request no acknowledgement of the write operation. Learn more here. - Slow
Op intThreshold Ms - Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- Transaction
Lifetime intLimit Seconds - Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every
transactionLifetimeLimitSeconds/2 seconds
or at least once every 60 seconds. Changing this parameter will lead to a restart of the MongoDB service. Learn more here. - Verbosity int
- The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- cluster
Id String - The ID of the target MongoDB cluster.
- default
Read StringConcern - Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more here.
- default
Write StringConcern - Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either
majority
or a number0...n
which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to0
will request no acknowledgement of the write operation. Learn more here. - slow
Op IntegerThreshold Ms - Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- transaction
Lifetime IntegerLimit Seconds - Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every
transactionLifetimeLimitSeconds/2 seconds
or at least once every 60 seconds. Changing this parameter will lead to a restart of the MongoDB service. Learn more here. - verbosity Integer
- The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- cluster
Id string - The ID of the target MongoDB cluster.
- default
Read stringConcern - Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more here.
- default
Write stringConcern - Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either
majority
or a number0...n
which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to0
will request no acknowledgement of the write operation. Learn more here. - slow
Op numberThreshold Ms - Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- transaction
Lifetime numberLimit Seconds - Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every
transactionLifetimeLimitSeconds/2 seconds
or at least once every 60 seconds. Changing this parameter will lead to a restart of the MongoDB service. Learn more here. - verbosity number
- The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- cluster_
id str - The ID of the target MongoDB cluster.
- default_
read_ strconcern - Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more here.
- default_
write_ strconcern - Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either
majority
or a number0...n
which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to0
will request no acknowledgement of the write operation. Learn more here. - slow_
op_ intthreshold_ ms - Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- transaction_
lifetime_ intlimit_ seconds - Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every
transactionLifetimeLimitSeconds/2 seconds
or at least once every 60 seconds. Changing this parameter will lead to a restart of the MongoDB service. Learn more here. - verbosity int
- The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- cluster
Id String - The ID of the target MongoDB cluster.
- default
Read StringConcern - Specifies the default consistency behavior of reads from the database. Data that is returned from the query with may or may not have been acknowledged by all nodes in the replicaset depending on this value. Learn more here.
- default
Write StringConcern - Describes the level of acknowledgment requested from MongoDB for write operations clusters. This field can set to either
majority
or a number0...n
which will describe the number of nodes that must acknowledge the write operation before it is fully accepted. Setting to0
will request no acknowledgement of the write operation. Learn more here. - slow
Op NumberThreshold Ms - Operations that run for longer than this threshold are considered slow which are then recorded to the diagnostic logs. Higher log levels (verbosity) will record all operations regardless of this threshold on the primary node. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
- transaction
Lifetime NumberLimit Seconds - Specifies the lifetime of multi-document transactions. Transactions that exceed this limit are considered expired and will be aborted by a periodic cleanup process. The cleanup process runs every
transactionLifetimeLimitSeconds/2 seconds
or at least once every 60 seconds. Changing this parameter will lead to a restart of the MongoDB service. Learn more here. - verbosity Number
- The log message verbosity level. The verbosity level determines the amount of Informational and Debug messages MongoDB outputs. 0 includes informational messages while 1...5 increases the level to include debug messages. Changing this parameter will lead to a restart of the MongoDB service. Learn more here.
Import
A MongoDB database cluster’s configuration can be imported using the id
the parent cluster, e.g.
$ pulumi import digitalocean:index/databaseMongodbConfig:DatabaseMongodbConfig example 4b62829a-9c42-465b-aaa3-84051048e712
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- DigitalOcean pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitalocean
Terraform Provider.