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
preguntada hace 4 años825 visualizaciones
4 Respuestas
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

respondido hace 4 años
0

Thanks. The cdcMaxBatchInterval param worked pretty well for us.

Weves
respondido hace 4 años
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?

respondido hace 3 años
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
respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas