Skip to content

aws-ecs-patterns (QueueProcessingFargateService): Make Target CPU Utilization configurable #23624

@VarshaVid

Description

@VarshaVid

Describe the feature

The current scaling policy defined in QueueProcessingServiceBase sets the targetUtilizationPercent at 50%, and is not configurable.

protected configureAutoscalingForService(service: BaseService) {

This value should be configurable by users.

Use Case

We have an application that works on a high throughput queue, but the processing is not latency-sensitive and we can afford to run hotter on the CPU, allowing us to run fewer ECS tasks and save on cost.

Proposed Solution

This value should be configurable through an optional parameter added to QueueProcessingServiceBaseProps (and , by extension, QueueProcessingFargateServiceProps). If not specified by the user, this will default to 50% utilization, for backward compatibility.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

1.141

Environment details (OS name and version, etc.)

NodeJS-14

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ecs-patternsRelated to ecs-patterns libraryeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions