更新Amazon ECS上的运行计数

发布于 2025-02-06 14:06:17 字数 456 浏览 1 评论 0原文

我想更新我的Amazon ECS服务上的运行计数。我更新了所需的计数,但运行计数将其保留在一个。

update_service = client.update_service(
    service=service,
    cluster=response['clusterArns'][0],
    desiredCount=5,
    deploymentConfiguration={
        'maximumPercent': 101,
        'minimumHealthyPercent': 100
    },
)

我目前正在使用boto3和python来更新所需的计数。我已经尝试了我可能想到的一切。

如果有任何帮助,这是设置:我使用ECS使用ECR回购,该回购使用EC2来服务容器。我正在尝试让另一个EC2实例更新ECS服务的运行次数,以服务于更多用户,这就是我遇到麻烦的地方。

I want to update the running count on my Amazon ECS Service. I updated the Desired Count but the running count sticks to one.

update_service = client.update_service(
    service=service,
    cluster=response['clusterArns'][0],
    desiredCount=5,
    deploymentConfiguration={
        'maximumPercent': 101,
        'minimumHealthyPercent': 100
    },
)

I am currently using boto3 and python to update the desired count. I've tried everything that I can possibly think of.

This is the setup if it's of any help: I have an ECR repo being used by ECS which uses EC2 to server the container. I'm trying to have another EC2 instance update the running count of the ECS Service to serve more users and that's where I am having trouble.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文