ECS Fargate Tasks By Revision Test
An ECS Fargate task is a dedicated containerized process instance that runs on the Fargate compute platform executing containerized applications and handles specific workloads within the AWS ECS environment. Task functionality failures like unhealthy tasks can significantly degrade the performance of that task.
This test monitors the health status of the task and alerts administrators about problematic health patterns on the task and what is causing them - is it due to task health failures that originates from application crashes causing task terminations? is the pending task count high, indicating insufficient cluster resources to schedule new tasks? is the running task count lower than desired, indicating task failures or launch issues?. This way, the test helps administrators isolate and pre-empt task related issues, thus improve the performance of the task, and ensure consistent task availability and application service delivery.
Target of the test: ECS Fargate Cluster
Agent deploying the test: A remote agent
Output of the test: One set of results for each task definition or task definition:task ID combination configured on the target ECS Fargate Cluster.
| Parameter | Description |
|---|---|
|
Test Period |
How often should the test be executed. |
|
Host |
The host for which the test is to be configured. |
|
Access Type |
eG Enterprise monitors the AWS cloud using AWS API. By default, the eG agent accesses the AWS API using a valid AWS account ID, which is assigned a special role that is specifically created for monitoring purposes. Accordingly, the Access Type parameter is set to Role by default. Furthermore, to enable the eG agent to use this default access approach, you will have to configure the eG tests with a valid AWS Account ID to Monitor and the special AWS Role Name you created for monitoring purposes.
Some AWS cloud environments however, may not support the role-based approach Note that the Secret option may not be ideal when monitoring high-security cloud environments. This is because, such environments may issue a security mandate, which would require administrators to change the Access Key and Secret Key, often. Because of the dynamicity of the key-based approach, Amazon recommends the Role-based approach for accessing the AWS API. |
|
External ID |
In a Role-based monitoring approach, cross-account roles can be used to give access to resources from other AWS accounts. The External ID acts as an additional security mechanism and it should be specified during the IAM role creation process to ensure that only authorized parties can assume the role. The External ID parameter lists the Nickname of the AWS Cloud component configured on the Add components page of eG Manager. This parameter represents the External ID to which this cluster is associated with. For more details on this External ID and how it is configured, refer to |
|
AWS Account ID to Monitor |
This parameter appears only when the Access Type parameter is set to Role. Specify the AWS Account ID that the eG agent should use for connecting and making requests to the AWS API. To determine your AWS Account ID, follow the steps below:
|
|
AWS Role Name |
This parameter appears when the Access Type parameter is set to Role. Specify the name of the role that you have specifically created on the AWS cloud for monitoring purposes. The eG agent uses this role and the configured Account ID to connect to the AWS Cloud and pull the required metrics. To know how to create such a role, refer to Creating a New Role. |
|
AWS Access Key, AWS Secret Key, Confirm AWS Access Key, Confirm AWS Secret Key |
These parameters appear only when the Access Type parameter is set to Secret. To monitor an Amazon instance, the eG agent has to be configured with the access key and secret key of a user with a valid AWS account. For this purpose, we recommend that you create a special user on the AWS cloud, obtain the access and secret keys of this user, and configure this test with these keys. The procedure for this has been detailed in the Obtaining an Access key and Secret key topic. Make sure you reconfirm the access and secret keys you provide here by retyping it in the corresponding Confirm text boxes. |
|
Proxy Host and Proxy Port |
In some environments, all communication with the AWS cloud and its regions could be routed through a proxy server. In such environments, you should make sure that the eG agent connects to the cloud via the proxy server and collects metrics. To enable metrics collection via a proxy, specify the IP address of the proxy server and the port at which the server listens against the Proxy Host and Proxy Port parameters. By default, these parameters are set to none , indicating that the eG agent is not configured to communicate via a proxy, by default. |
|
Proxy User Name, Proxy Password, and Confirm Password |
If the proxy server requires authentication, then, specify a valid proxy user name and password in the proxy user name and proxy password parameters, respectively. Then, confirm the password by retyping it in the CONFIRM PASSWORD text box. By default, these parameters are set to none, indicating that the proxy sever does not require authentication by default. |
|
Proxy Domain and Proxy Workstation |
If a Windows NTLM proxy is to be configured for use, then additionally, you will have to configure the Windows domain name and the Windows workstation name required for the same against the proxy domain and proxy workstation parameters. If the environment does not support a Windows NTLM proxy, set these parameters to none. |
|
Exclude Region |
Here, you can provide a comma-separated list of region names or patterns of region names that you do not want to monitor. For instance, to exclude regions with names that contain 'east' and 'west' from |
|
Default Connection Region |
By default, this test connects to the endpoint URL of the us-east-1 region to collect the required metrics. If the default us-east-1 region is not enabled in the target environment, then, for this test to collect the required metrics, specify the region that is enabled in the target environment. |
|
Show Tasks with ID |
A task definition is a blueprint or template that defines how the task should run, including the container image, CPU, memory, etc., A task ID (known as task) is a unique identifier that is automatically assigned to each running instance of a task. A single task definition can be used to create and run multiple tasks since the task definition acts as a reusable blueprint that defines how each task should be configured and executed. By default, the Show Tasks with ID flag is set to No indicating that eG Enterprise auto-discovers the task definition and shows it's descriptor. If you wish to collect metrics based on each task, set this flag to Yes. |
|
Show Stopped Task |
The Show Stopped Tasks flag will appear only when the Show Tasks with ID flag is set Yes. By default this flag is set to No. Multiple tasks will be running in individual container with the task ID descriptor being displayed and in case if that container is not functioning, then you will not be able to view the tasks running in that container and the task ID descriptor will not be visible at that point. If you wish to collect metrics for the stopped tasks that were running in that container, set this flag to Yes. |
|
DD Frequency |
Refers to the frequency with which detailed diagnosis measures are to be generated for this test. The default is 1:1. This indicates that, by default, detailed measures will be generated every time this test runs, and also every time the test detects a problem. You can modify this frequency, if you so desire. Also, if you intend to disable the detailed diagnosis capability for this test, you can do so by specifying none against DD frequency. |
|
Detailed Diagnosis |
To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option. The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:
|
|
Measurement |
Description |
Measurement Unit |
Interpretation |
||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Total tasks |
Indicates the total number of tasks available for this task definition. |
Number |
Use the detailed diagnosis of this measure to know details of total tasks available for a specific Task definition/Task ID. |
||||||||
|
Running tasks |
Indicates the number of tasks that are currently running for this task definition. |
Number |
Use the detailed diagnosis of this measure to know details of tasks running for a specific Task definition/Task ID. |
||||||||
|
Stopped tasks |
Indicates the number of tasks that were stopped for this task definition. |
Number |
Ideally, the value of this measure should be low. |
||||||||
|
Pending tasks |
Indicates the number of tasks that are pending for this task definition. |
Number |
Ideally, the value of this measure should be low. |
||||||||
|
Total containers |
Indicates the total number of containers on which the tasks of this task definition/task is attached to. |
Number |
|
||||||||
|
Running containers |
Indicates the total number of containers on which the tasks of this task definition/task is attached to. |
Number |
Use the detailed diagnosis of this measure to know details of individual containers running for a specific Task definition/Task ID. |
||||||||
|
Stopped containers |
Indicates the total number of containers on which the tasks of this task definition/task is attached to. |
Number |
Ideally, the value of this measure should be low. |
||||||||
|
Average task launch Duration |
Indicates the average task launch Duration for this task definition. |
Seconds |
Ideally, the value of this measure should be low since the tasks start quickly, ensuring faster scaling and minimal delay in handling load. A high value indicates slow start ups, which can cause delays during scaling events. |
||||||||
|
Average image pull duration |
Indicates the average image pull duration for this task definition. |
Seconds |
Ideally, the value of this measure should be low since images are pulled quickly, reducing task startup time. A high value indicates slow image downloads, often due to large image sizes or network issues, delaying task launches. |
||||||||
|
Average shutdown duration
|
Indicates the average shutdown duration for this task definition. |
Seconds |
Ideally, the value of this measure should be low since tasks shut down quickly and cleanly, allowing faster scaling down and deployments. A high value indicates tasks are taking too long to stop, possibly due to unhandled shutdown signals or long-running cleanup processes. |
||||||||
|
Average task runtime duration
|
Indicates the average task runtime duration for this task definition. |
Minutes |
Ideally, the value of this measure should be high since tasks will be stable and running for longer periods without crashing or being replaced. A low value indicates tasks are frequently stopping or crashing, signaling instability or errors in the application. |
||||||||
|
Task lifecycle status |
Indicates the status of task life cycle for this task. |
|
This measure will appear only when the Show Tasks with ID flag is set to Yes indicating that this measure will be reported only for the task descriptor and not for the task definition descriptor. The values reported by this measure and its numeric equivalents are mentioned in the table below:
Note: By default, this measure reports the Measure Values listed in the table above to indicate the status of task life cycle for the Task definition/Task ID in the target cluster. The graph of this measure however, is represented using the numeric equivalents only. |
||||||||
|
Health status |
Indicates the status of health for this task. |
|
This measure will appear only when the Show Tasks with ID flag is set to Yes indicating that this measure will be reported only for the task descriptor and not for the task definition descriptor. The values reported by this measure and its numeric equivalents are mentioned in the table below:
Note: By default, this measure reports the Measure Values listed in the table above to indicate the status of health for the Task definition/Task ID in the target cluster. The graph of this measure however, is represented using the numeric equivalents only. |
||||||||
|
Startup duration |
Indicates the startup duration for this task. |
Seconds |
|
||||||||
|
Image Pull duration |
Indicates the image pull duration for this task. |
Seconds |
|
||||||||
|
Task running duration |
Indicates the task running duration for this task. |
Minutes |
|
||||||||
|
Shutdown duration |
Indicates the shutdown duration for this task. |
Seconds |
|