ecs-cli组成服务任务继续停止

时间:2018-02-04 20:48:43

标签: node.js mongodb express docker amazon-ecs

我们正在通过ECS部署我们的Docker镜像,并使用以下命令创建群集正常工作。

ecs-cli up --force --keypair <redacted> --capability-iam --size 1 --instance-type t2.large

之后我们已经有了一个存储库,其中包含了我们最新的代码。所以这是我们的docker文件。

version: '2'
services:
  web:
    image: web:latest
    ports:
      - "8000:8000"
    mem_limit: 7984000
    links:
      - start_dependencies
    depends_on:
      - start_dependencies
  seed-web:
    image: web:seed-latest
    links:
      - start_dependencies
    depends_on:
      - start_dependencies
  db-web:
    # below example references the latest mongo image on docker hub
    image: mongo:3.4.2
  start_dependencies:
    image: web/wait-for-dependencies
    links:
      - db-web
    depends_on:
      - db-web
    command: db-web:27017

使用此命令启动服务:

ecs-cli compose service up --deployment-min-healthy-percent 0 && success=1

但是在启动多个任务后,将显示以下输出:

WARN[0000] Skipping unsupported YAML option...           option name=networks
WARN[0000] Skipping unsupported YAML option for service...  option name=networks service name=db-web
WARN[0000] Skipping unsupported YAML option for service...  option name="depends_on" service name=seed-web
WARN[0000] Skipping unsupported YAML option for service...  option name=networks service name=seed-web
WARN[0000] Skipping unsupported YAML option for service...  option name="depends_on" service name="start_dependencies"
WARN[0000] Skipping unsupported YAML option for service...  option name=networks service name="start_dependencies"
WARN[0000] Skipping unsupported YAML option for service...  option name="depends_on" service name=web
WARN[0000] Skipping unsupported YAML option for service...  option name=networks service name=web
INFO[0001] Using ECS task definition                     TaskDefinition="web:23"
INFO[0001] Created an ECS service                        deployment-min-healthy-percent=0 service=web taskDefinition="web:23"
INFO[0001] Updated ECS service successfully              deployment-min-healthy-percent=0 desiredCount=1 serviceName=web
INFO[0016] (service web) has started 1 tasks: (task 89ceda24-dd92-42ab-b290-ec5aa1837206).  timestamp=2018-02-04 09:49:06 +0000 UTC
INFO[0062] (service web) has started 1 tasks: (task 508924a3-1718-4564-8fb8-b95b846597cf).  timestamp=2018-02-04 09:49:49 +0000 UTC
INFO[0137] (service web) has started 1 tasks: (task 56c2f95b-d461-4e1f-ac66-8d36feae39b2).  timestamp=2018-02-04 09:51:07 +0000 UTC
INFO[0182] (service web) has started 1 tasks: (task 581d9318-212a-4e2d-b439-66378918e715).  timestamp=2018-02-04 09:51:51 +0000 UTC
INFO[0228] (service web) has started 1 tasks: (task 8db1f7a0-8217-4f85-ad41-08c4d430cd35).  timestamp=2018-02-04 09:52:34 +0000 UTC
INFO[0273] (service web) has started 1 tasks: (task 824f4aba-10b1-4197-95d0-afe59e3ced41).  timestamp=2018-02-04 09:53:19 +0000 UTC
INFO[0303] (service web) has started 1 tasks: (task cf532423-9618-4a85-aeb4-18de19962bcc).  timestamp=2018-02-04 09:54:04 +0000 UTC
FATA[0303] Deployment has not completed: Running count has not changed for 5.00 minutes

我尝试设置云监视日志,但我没有报告。如何完成部署?我们正在部署Node + Express,MongoDB应用程序。

0 个答案:

没有答案