Running TEA on AWS ECS - nareshkumarthota/rootrepo GitHub Wiki

Create ECS Cluster using below steps:

Pre-requisites

  • Container image for TEA Server, Agent and TIBCO Business Events. For registry setup
  • AWS Fargate requires IAM role for your task definition.
  • Create IAM role and policy

Cluster creation

  • Go to AWS Management Console → VPC. Create VPC. Select "VPC,subnets,etc." under VPC settings for AWS to create the required resources.Make sure to change the Nat gateways from 'None' to '1 per AZ' or 'In 1 AZ'.Set VPC Endpoints to 'None'.

  • Go to AWS Management Console → Elastic Container Service

  • Click Create Cluster and select cluster template with EC2.

  • Select the previously created vpc and mention the required number of instances.Create cluster.

TEA

The above diagram shows the sample structure used. The Load balancer runs in the public subnet and the TEA Server runs in Private subnet. The TEA Agent and BE instances run in the same private subnet.

TEA Server

Create TEA server task and service using the below table:

Task Name Container name Environment Service Name Number of Service Instances
teaservertask teaserver-node PU=default* teaserverservice >=1

Note:

  • Add 8777 port in Port Mappings for Tea Server task.
  • While creating the TEA Server Service, select the application load balancer.Create Load Balancer and target groups from here

TEA Agent

Create TEA agent task and service using the below table:

Task Name Container name Environment Service Name Number of Service Instances Container Path ReadOnly
teaagenttask teaagent-node BE_TEA_AGENT_AUTO_REGISTER_ENABLE=true, TEA_SERVER_PASSWORD=admin, TEA_SERVER_URL=<TEA_SERVER_URL>, TEA_SERVER_USERNAME=admin teaagentservice 1 /var/run/docker.sock,/var/run/weave/weave.sock true

Note:

  • While creating Tea agent task make sure to add mount points for weave and docker using the mentioned container paths with ReadOnly as true.
  • Set Soft limit as 700 and port mapping for 9777 and JMX Port(Ex:5566) in the container.

BE Application

Create BE application task and service using the below table:

Task Name Container name Environment Service Name Number of Service Instances
beinferencenodetask inference-node PU=default* beinferencenodeservice >=1

Note: Deploy any BE application referring to Running BE application.

Access the TEA server url and configure the security groups, the agent and BE instance details will be available.