From 0ca63526a0bae9e00f3ca8b8fe28c26527f1c79a Mon Sep 17 00:00:00 2001 From: SimFG Date: Fri, 30 Aug 2024 11:45:04 +0800 Subject: [PATCH] Update the cdc doc --- .../tools/milvus-cdc/deploy-cdc-server.md | 3 +++ .../tools/milvus-cdc/manage-cdc-tasks.md | 21 +++++-------------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/site/en/userGuide/tools/milvus-cdc/deploy-cdc-server.md b/site/en/userGuide/tools/milvus-cdc/deploy-cdc-server.md index cd74a42af..9cdb4daf1 100644 --- a/site/en/userGuide/tools/milvus-cdc/deploy-cdc-server.md +++ b/site/en/userGuide/tools/milvus-cdc/deploy-cdc-server.md @@ -76,6 +76,8 @@ In the `milvus-cdc/server/configs` directory, modify the `cdc.yaml` file to cust - __Helm__ or __Docker Compose__: Defaults to `by-dev`. - __Operator__: Defaults to ``. + + - `replicateChan`: milvus replicate channel name, which is `{msgChannel.chanNamePrefix.cluster}/{msgChannel.chanNamePrefix.replicateMsg}` in the milvus.yaml file - `sourceConfig.pulsar`: Pulsar configurations for the source Milvus. If the source Milvus uses Kafka for message storage, remove all Pulsar-related configurations. For more information, refer to [Pulsar-related Configurations](https://milvus.io/docs/configure_pulsar.md). @@ -95,6 +97,7 @@ sourceConfig: defaultPartitionName: _default # read buffer length, mainly used for buffering if writing data to milvus-target is slow. readChanLen: 10 + replicateChan: by-dev-replicate-msg # milvus-source mq config, which is pulsar or kafka pulsar: address: pulsar://localhost:6650 diff --git a/site/en/userGuide/tools/milvus-cdc/manage-cdc-tasks.md b/site/en/userGuide/tools/milvus-cdc/manage-cdc-tasks.md index bdec15b94..4be9ba0a2 100644 --- a/site/en/userGuide/tools/milvus-cdc/manage-cdc-tasks.md +++ b/site/en/userGuide/tools/milvus-cdc/manage-cdc-tasks.md @@ -24,21 +24,15 @@ curl -X POST http:_//localhost:8444/cdc \ "request_type": "create", "request_data": { "milvus_connect_param": { - "host": "localhost", - "port": 19530, - "username": "root", - "password": "Milvus", - "enable_tls": false, + "uri": "http://localhost:19530", + "token":"root:Milvus", "connect_timeout": 10 }, "collection_infos": [ { "name": "*" } - ], - "rpc_channel_info": { - "name": "by-dev-replicate-msg" - } + ] } }' ``` @@ -63,8 +57,6 @@ __Parameters__: - __collection_infos__: Collections to synchronize. Currently, only an asterisk (__*__) is supported, as Milvus-CDC synchronizes at the cluster level, not individual collections. -- __rpc_channel_info__: RPC channel name for synchronization, constructed by concatenating the values of __common.chanNamePrefix.cluster__ and __common.chanNamePrefix.replicateMsg__ from the source Milvus configuration, separated by a hyphen (__-__). - Expected response: ```json @@ -98,8 +90,7 @@ Expected response: { "task_id": "xxxxx", "milvus_connect_param": { - "host": "localhost", - "port": 19530, + "uri":"http://localhost:19530", "connect_timeout": 10 }, "collection_infos": [ @@ -203,9 +194,7 @@ Expected response: ], "milvus_connect_param": { "connect_timeout": 10, - "enable_tls": true, - "host": "localhost", - "port": 19530 + "uri":"http://localhost:19530" }, "state": "Running", "task_id": "xxxx"