Skip to main content
Version: Develop

MongoDB Parameters

You can set the following supported parameters for MongoDB:

Parameter NameDescription
setClusterParameter.changeStreamOptions.preAndPostImages.binlogExpireDaysThis parameter field controls how long MongoDB retains pre- and post-images. Pre-and post-images are the versions of a document before and after it has been modified. The accepted values are either off or an integer value greater or equal to 0. (default value: off). When the value is set to off MongoDB uses the default retention policy (i.e, until the corresponding change stream events are removed from the oplog). The integer represents the retention time given in seconds. See the MongoDB documentation.
Caution: Be careful when configuring the expireAfterSeconds parameter field. If the value is set to low, it could affect the replication of the cluster.