CpuUtilization target for AWS CDK QueueProcessingFargateService

0

Dear colleagues, I've created SQS processing service using QueueProcessingFargateService.

I can adjust scaling using scalingSteps? based on information from SQS ApproximateNumberOfMessagesVisible However, according to what I can see CpuUtilization target is set to 50% by default. My processing is very CPU consuming and it is totally OK to run it on 100% load.

Unfortunately I can't find the way for changing CpuUtilization target from 50% to 100%.

This cause permanent scale up to maxScalingCapacity. Would appreciate any ideas.

1 Answer
0

For some reason, QueueProcessingFargateService sets CPU scaling targets as well as queue processing targets.

I had the same situation and the solution was to delete the corresponding alarms in CloudWatch manually. Go to CloudWatch -> All Alarms and find the one for your service.

There is a bug report for this in GitHub: https://github.com/aws/aws-cdk/issues/20706 so this will hopefully be fixed soon.

Knut
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions