Para agentes de IA: hay un índice de documentación disponible en https://www.mongodb.com/es/docs/llms.txt — versiones en markdown de todas las páginas están disponibles agregando .md a cualquier ruta URL.
Docs Menu

Propiedades de empresa emergente

Utiliza los siguientes ajustes de configuración para configurar el inicio del conector fuente de MongoDB Kafka y convertir las colecciones de MongoDB en eventos de Change Stream.

Tip

Para un ejemplo usando la funcionalidad de copiar existente, consulta el Ejemplo de uso Copiar datos existentes.

Para obtener una lista de la configuración del origen del conector organizadas por categoría, consulta la guía Propiedades de configuración del conector de origen.

Nombre
Descripción

empresa emergente.moda

Type: string

Description:
Specifies how the connector should start up when there is no source offset available. Resuming a change stream requires a resume token, which the connector gets from the source offset. If no source offset is available, the connector may either ignore all or some of the existing source data, or may at first copy all existing source data and then continue with processing new data.

If startup.mode=latest, the connector ignores all existing source data.

If startup.mode=timestamp, the connector actuates startup.mode.timestamp.* properties. If no properties are configured, timestamp is equivalent to latest.

If startup.mode=copy_existing, the connector copies all existing source data to Change Stream events. This setting is equivalent to the deprecated setting copy.existing=true.

Si algún sistema cambia los datos en la base de datos mientras el conector de origen convierte los datos existentes de ella, MongoDB puede producir eventos de flujo de cambios duplicados para reflejar los últimos cambios. Dado que los eventos de flujo de cambios de los cuales depende la copia de datos son idempotentes, los datos copiados son eventualmente coherentes.

Default:latest
Accepted Values: latest, timestamp, copy_existing

startup.mode.timestamp.start.at.operación.time

Type: string

Description:
Actuated only if startup.mode=timestamp. Specifies the starting point for the change stream.

To learn more about Change Stream parameters, see $changeStream (aggregation) in the MongoDB manual.

Default: ""
Accepted Values:

  • Un número entero de segundos transcurridos desde la Unix epoch en formato decimal (por ejemplo, 30)

  • Un instante en el formato ISO-8601 con una precisión de un segundo (por ejemplo, 1970-01-01T00:00:30Z)

  • Una marca de tiempo BSON en el formato JSON extendido canónico (v2) (por ejemplo, {"$timestamp": {"t": 30, "i": 0}})

Regex de Modo de startup.copy.existing.namespace.regex

Type: string

Description:
Regular expression the connector uses to match namespaces from which to copy data. A namespace describes the MongoDB database name and collection separated by a period (for example, databaseName.collectionName).

For example, the following regular-expression setting matches collections that start with "page" in the stats database:

startup.mode.copy.existing.namespace.regex=stats\.page.*

The \ character in the example above escapes the . character that follows it in the regular expression. For more information on how to build regular expressions, see Patterns in the Java API documentation.

Default: ""
Accepted Values: A valid regular expression

startup.mode.copy.existing.pipeline

Type: string

Description:
An inline array of pipeline operations the connector runs when copying existing data. You can use this setting to filter the source collection and improve the use of indexes in the copying process.

For example, the following setting uses the $match aggregation operator to instruct the connector to copy only documents that contain a closed field with a value of false.

startup.mode.copy.existing.pipeline=[ { "$match": { "closed": "false" } } ]

Por defecto: ""
Valores aceptados: etapas válidas del pipeline de agregación

startup.mode.copy.existing.max.threads

Tipo: int

Descripción:
El número máximo de subprocesos que el conector puede usar para copiar datos.

Predeterminado: número de procesadores disponibles en el entorno
Valores aceptados: Un número entero

startup.mode.copy.existing.queue.size

Type: int

Description:
The size of the queue the connector can use when copying data.

Default: 16000
Accepted Values: An integer

Permitir el uso de disco para copiar datos existentes

Tipo: booleano

Descripción:
Cuando se establece en true, el conector utiliza almacenamiento temporal en disco para copiar la agregación existente.

Por defecto: true
Valores aceptados: true o false

Califique esta página