|
| 1 | +{ |
| 2 | + "title": "SQS - Amazon ECS Fargate - Target Tracking Scaling Policy", |
| 3 | + "description": "This pattern creates an ECS Fargate application that consumes an SQS queue and it scales on the basis of queue size", |
| 4 | + "language": "Python", |
| 5 | + "level": "400", |
| 6 | + "framework": "AWS SAM", |
| 7 | + "introBox": { |
| 8 | + "headline": "How it works", |
| 9 | + "text": [ |
| 10 | + "This sample project demonstrates how target tracking scaling policy works with an ECS Fargate application", |
| 11 | + "We have a python application under consumer/app.py that consumes messages from an SQS queue. The application is containerised and the image is pushed to an ECR registry.", |
| 12 | + "On the basis of a target value of the SQS metric - ApproximateNumberOfMessagesVisible, the count of tasks of the cluster will increase.", |
| 13 | + "Again, when the actual value drops below the target value, the count of tasks comes down to the initial value." |
| 14 | + ] |
| 15 | + }, |
| 16 | + "gitHub": { |
| 17 | + "template": { |
| 18 | + "repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/sqs-ecs-autoscaling", |
| 19 | + "templateURL": "serverless-patterns/sqs-ecs-autoscaling", |
| 20 | + "projectFolder": "sqs-ecs-autoscaling", |
| 21 | + "templateFile": "template.yaml" |
| 22 | + } |
| 23 | + }, |
| 24 | + "resources": { |
| 25 | + "bullets": [ |
| 26 | + { |
| 27 | + "text": "Target tracking scaling policies for Amazon EC2 Auto Scaling", |
| 28 | + "link": "https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html" |
| 29 | + }, |
| 30 | + { |
| 31 | + "text": "Target tracking scaling policies for Application Auto Scaling", |
| 32 | + "link": "https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html" |
| 33 | + }, |
| 34 | + { |
| 35 | + "text": "Container Insights with enhanced observability now available in Amazon ECS", |
| 36 | + "link": "https://aws.amazon.com/blogs/aws/container-insights-with-enhanced-observability-now-available-in-amazon-ecs/" |
| 37 | + } |
| 38 | + ] |
| 39 | + }, |
| 40 | + "deploy": { |
| 41 | + "text": [ |
| 42 | + "sam deploy" |
| 43 | + ] |
| 44 | + }, |
| 45 | + "testing": { |
| 46 | + "text": [ |
| 47 | + "See the GitHub repo for detailed testing instructions." |
| 48 | + ] |
| 49 | + }, |
| 50 | + "cleanup": { |
| 51 | + "text": [ |
| 52 | + "Delete the stack: <code>sam delete</code>." |
| 53 | + ] |
| 54 | + }, |
| 55 | + "authors": [ |
| 56 | + { |
| 57 | + "name": "Saborni Bhattacharya", |
| 58 | + "image": "https://drive.google.com/file/d/1AZFquOkafEQRUlrT4hKOtIbt4Cq66SHd/view?usp=sharing", |
| 59 | + "bio": "Specialist SA at AWS EMEA", |
| 60 | + "linkedin": "saborni-bhattacharya-5b523812a/" |
| 61 | + } |
| 62 | + ], |
| 63 | + "patternArch": { |
| 64 | + "icon1": { |
| 65 | + "x": 20, |
| 66 | + "y": 50, |
| 67 | + "service": "sqs", |
| 68 | + "label": "Amazon SQS" |
| 69 | + }, |
| 70 | + "icon2": { |
| 71 | + "x": 80, |
| 72 | + "y": 50, |
| 73 | + "service": "fargate", |
| 74 | + "label": "AWS Fargate" |
| 75 | + }, |
| 76 | + "line1": { |
| 77 | + "from": "icon1", |
| 78 | + "to": "icon2", |
| 79 | + "label": "Target tracking scaling" |
| 80 | + } |
| 81 | + } |
| 82 | +} |
0 commit comments