containers-roadmap icon indicating copy to clipboard operation
containers-roadmap copied to clipboard

Clone ECS Service into another Cluster

Open pilgrim2go opened this issue 8 years ago • 10 comments

Hi,

In my production service, we use 2 cluster permanent cluster autoscale cluster There are some services we need them in both clusters. That leads to my question Can ECS support clone service in multiple clusters in the future? That helps us a lot and better to have an API to clone ECS service.

Thoughts?

pilgrim2go avatar Jun 22 '17 02:06 pilgrim2go

Hi @pilgrim2go. Thanks for the suggestion. I wonder how much of this belongs in the ECS service itself and how much may be more appropriate for the ECS CLI or other developer tooling. What would you envision as a preferred workflow for cloning services between clusters?

nmeyerhans avatar Jun 23 '17 00:06 nmeyerhans

@nmeyerhans : I'm not pretty sure. Task Definition is a standalone object. I can be run into any cluster. Service could be a standalone object and then we can run it into any cluster also. Why not? I'm asking this since creating service in UI is not simple as was before. Now we have to configure ALB/Target Group and Auto Scaling. So a simple clone in service and simply selecting new cluster is much more easier for me and less error prone.

pilgrim2go avatar Jun 23 '17 07:06 pilgrim2go

+1

lodotek avatar Mar 16 '18 13:03 lodotek

+1

axemaster avatar Mar 26 '18 21:03 axemaster

+1

sauravy avatar Jun 26 '18 12:06 sauravy

+1

mtruebe avatar Aug 16 '18 09:08 mtruebe

This would be great!

hslavchev avatar Aug 13 '19 19:08 hslavchev

Please show some manners and support the idea by thumbs-up on the original post, rather than wasting people’s time and inboxes with +1 posts.

@pilgrim2go if your services are compatible with EKS then it supports multiple node groups per cluster, so you can have both a fixed and autoscale node groups in a cluster, then run services on the cluster and utilize both node pools.

whereisaaron avatar Aug 14 '19 05:08 whereisaaron

Hello, I have the same use case (two cluster on demand/spot with autoscaling). We simply declare a service on each with specific autoscaling configuration (all this stuff is scripted). AMHO, I think if you just 'clone' ie: change cluster target of your service, it's not enough. You have to deal with specific deployment constraint also.

geronimo-iia avatar Jan 27 '20 10:01 geronimo-iia

Any update on this?

Genebson avatar Jun 28 '24 10:06 Genebson