Controlling Frequency of Writes to S3 Target With DMS

0

Hey All,

I am trying to use DMS for a CDC task (PostgreSQL RDS -> S3). I want to control how often updates are written to the S3 target. I tested a number of settings by changing the “Task Settings” param.

BatchApplyEnabled: true, BatchApplyTimeoutMin/BatchApplyTimeoutMax: 3
BatchApplyEnabled: true, BatchApplyTimeoutMin/BatchApplyTimeoutMax: 3, MinTransactionSize: 0
BatchApplyEnabled: false, MinTransactionSize: 0

None of these seemed to have any impact on the time for a change record to appear in S3. All were tested via a single insert. Regardless of setting, it took ~1 minute for the new parquet file to appear in S3.

Any ideas on how to control this kind of thing with an S3 target? Thanks.

Edited by: Weves on May 4, 2020 3:37 PM

Weves
質問済み 4年前825ビュー
4回答
0

Hello Weves,

Thanks for reaching out and it seems you are trying to control CDC with S3 target. Please note that batch apply mode is not applicable or supported with S3 target.

You can use below internal parameters ( as target endpoint extra connection attributes) to control the way changes are applied on target during replication.

cdcMaxBatchInterval default value 60 seconds
cdcMinFileSize default value 32 MB

Please change values for above parameters and it will help you change how csv file is generated during CDC.

I hope this information helps... I will try to get this parameter documented on our public docs..

Thanks,
Mahesh Kansara

Edited by: MaheshKansara on May 4, 2020 4:58 PM

回答済み 4年前
0

Thanks. The cdcMaxBatchInterval param worked pretty well for us.

Weves
回答済み 4年前
0

What are the measurement units for these params? And are they documented anywhere in AWS docs yet?? Can't find them.
cdcMaxBatchInterval - Is this in seconds?
cdcMinFileSize - Is this in MB? KB?

回答済み 3年前
0

Hi pcguy166,

You're correct, cdcMaxBatchInterval is in seconds, and cdcMinFileSize is in MB. This is documented in the "Extra connection attributes when using Amazon S3 as a target for AWS DMS" section of the User Guide, which you can access via the link below.

https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring

Best,
Sean

AWS
回答済み 3年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ