We have an AWS Batch Job, which runs on EC2 instance:
Instance Type: c6g.medium
vCpu: 1
Memory: 1 GB
This batch job read file from S3, and write those data in our dynamoDb using DynamoDbDocument.batchWrite
method. The chunk size are 20 in length only. Size is way too small.
When we are doing the batch write operation, the CPU utilisation is reaching to 90%. Why is it going so high ? Other than increasing the vCpu, how can we reduce the load ?