# Create a read-only account for all instancesuse admindb.createUser({user: "username",pwd: "password",roles:[{role: "readAnyDatabase",db: "admin"}]})# Create a read-only account for a specified databaseuse admindb.createUser({user: "username",pwd: "password",roles:[{role: "read",db: "name of the specified database"}]})
Parameter Name | Configuration Methods |
Billing Mode | Yearly/Monthly subscription and pay-as-you-go are supported. For billing details, see DTS Billing Mode. |
Region | The region of the DTS subscription service must be consistent with the region of the source database instance. |
Database | Select MongoDB. |
Edition | Default: Kafka. |
Tag | Specify tags for the data subscription service. This is optional. |
Subscribed Instance Name | Naming after creation: After a data subscription service is created, the system randomly assigns an instance name, and users can modify the name later. Name it now: Enter the data subscription service name directly in the input box below. |
Auto-renewal | Select this option. If not selected, pay attention to service expiration warnings. For details, see Overdue Payment. |
Purchase Duration | The longer the purchase duration, the more discounts you enjoy. |
Purchase Quantity | A single purchase supports up to 10 tasks. |




Parameter | Description |
Subscription type | Defaults to Change Stream and cannot be modified. |
Subscription data format | Currently, only the JSON format is supported. |
Subscription level | Subscription level, including instance, database, and collection. All instances: Subscribe to data from all instances. Database: Subscribe to database-level data. After selection, you can select only one database in the task settings below. Collection: Subscribe to collection-level data. After selection, you can select only one collection in the task settings below. |
Task Configuration | After Subscription Level is set to Database or Collection, configuration is required. Select the databases or collections to subscribe to. Only one database or one collection can be selected. |
Output aggregation settings | After selected, the execution order of aggregation pipelines is determined by the configuration order on the page. For more information about aggregation pipelines and usage examples, see the MongoDB official documentation. |
Number of Topic partitions | Set the number of Topic partitions. Increasing the number of partitions can improve data write and consumption speed. A single partition can guarantee message order, while multiple partitions cannot. If you have strict requirements on message consumption order, set the number of partitions to 1. |
Topic partition policy | When the number of Topic partitions is not 1, you can set a partitioning policy. Partition by collection name: Partition the subscription data from the source database by collection name. After this setting, data with the same collection name will be written to the same Kafka partition. Custom partition policy: First, match the database names and collection names in the subscription data using regular expressions. Then, partition the matched data by collection name or by collection name + ObjectId. |

Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan