compose-cli icon indicating copy to clipboard operation
compose-cli copied to clipboard

Need guidance to provide target groups parameters

Open bcouetil opened this issue 4 years ago • 2 comments
trafficstars

Thank you for this great tool !

I'm deploying successfully to ECS.

But my deployments are painfully slow, and I want to set some target groups parameters like mentioned here : https://nathanpeck.com/speeding-up-amazon-ecs-container-deployments/

How can I do that ? Thanks !

bcouetil avatar Nov 16 '21 17:11 bcouetil

All of what's in that blog post is supported for tuning and implemented in ECS Compose-X. In x-elbv2 you'd find TargetGroupAttributes that allow to tune all of that. It will also detect whether a setting is valid for your type of load-balancer. For other settings, it will try to auto-change values if they are not correct, for example with an NLB, the intervals, or if you have a listener set to TCP (or HTTP with ALB) and have defined certificate(s), auto update to TLS (HTTPS for ALB). Equally when defining Services (which really are the TargetGroups), if the port defined was not declared in the service definition, it would automatically fail and report that error, instead of allowing to continue with a non-functional deployment.

It is a fairly complex module in code but implementing all these auto-correct and early error is here to try to ensure everything will work on deploy.

Hope this helps,

JohnPreston avatar May 06 '22 14:05 JohnPreston

Thank you for your detailed response 🙏

I managed to do the changes I wanted, but only some of them, because I had a DB TCP port (among HTTP ports) that prevent me to have a HTTP-only load balancer. This was a mistake, next time I'll use managed database, and more optimisations will be available to me.

I'll post here some more example code when I can 😊

bcouetil avatar May 06 '22 14:05 bcouetil

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 12 '22 12:11 stale[bot]

This issue has been automatically closed because it had not recent activity during the stale period.

stale[bot] avatar Jan 08 '23 04:01 stale[bot]