Search…
⌃K
Links

AWS Fargate / Elastic Container Service

Manual to setting decisionrules in AWS Fargate

How to setup Decision Rules on AWS Fargate/Elastic Container Service

Server container requirements

  • RAM: 512Mb for 1 Worker/Thread

Container Settings

Port Mapping

Set port mappings to 8080 and protocol TCP.

Health check

Command
CMD-SHELL, curl -s --fail http://localhost:8080/health-check || exit 1
Variable
Recommended value
Interval
30
Timeout
5
Start period
30
Retries
3

Cluster Service settings

For successful deployment, it is necessary to change the Cluster Service Health check grace period.

Settings

  1. 1.
    Go to Elastic Container Service in AWS Management Console
  2. 2.
    Select cluster
  3. 3.
    Select service
  4. 4.
    Click on Update
  5. 5.
    Go to Step 2: Configure Network
  6. 6.
    Set Health check grade period to 30

Load Balancer

For successful deployment i,t is necessary to change the Load Balancer Target Group health check.

Settings

  1. 1.
    Go to EC2 in AWS Management Console
  2. 2.
    In Load Balancing choose Target Groups
  3. 3.
    Select specific Target Group
  4. 4.
    Select Health Checks tab
  5. 5.
    Click on Edit
  6. 6.
    Enter Health check path: /health-check

DecisionRules Client container settings

Minimal requirements

  • RAM: 100Mb

Container Settings

Port Mapping

Set port mappings to 80 and protocol TCP.

Health Check

Command
CMD-SHELL, curl -s --fail http://localhost/ || exit 1
Variable
Recommended value
Interval
30
Timeout
5
Start period
30
Retries
3