All Products
Search
Document Center

Scenarios

Last Updated: Jun 16, 2021

Elastic container instances are applicable in most scenarios where business applications run in containers. The elasticity and cost-effectiveness of elastic container instances make them suitable for the following scenarios: O&M-free online business, big data computing tasks such as Spark and Presto, event-driven and job-based business, DevOps, machine learning, and online testing.

Overview

You can connect Elastic Container Instance to your business systems by using the following methods:

  • Seamlessly connect to Serverless Kubernetes (ASK) clusters.

  • Use virtual nodes to connect to Kubernetes clusters such as Container Service for Kubernetes (ACK) clusters, Kubernetes clusters deployed on Elastic Compute Service (ECS), or self-managed Kubernetes clusters in data centers.

  • Connect to your business systems by calling API operations.

Elastic Container Instance provides the benefits of serverless services, elasticity, cost-effectiveness, efficiency, and compatibility. These benefits make elastic container instances best suited for businesses that have high elasticity and concurrency requirements. The following figure shows the application scenarios.Scenarios

Automatic scaling for online business

Elastic Container Instance uses Horizontal Pod Autoscaler (HPA) of Kubernetes to automatically scale the capacity based on business traffic. This helps avoid system failures during traffic spikes and reduce the costs caused by idle resources. When you use ACK, you can proportionally deploy a business application on ECS instances or elastic container instances for more efficient resource usage, faster scale-out, higher system reliability, and lower costs.

  • High scalability

    Elastic Container Instance supports scale-out within seconds for handling hundreds of times the normal traffic volume during traffic spikes. Elastic Container Instance also supports HPA and CronHPA.

  • Cost-effectiveness

    Elastic Container Instance dynamically adjusts resource usage based on business traffic and uses the pay-as-you-go billing method.

  • High availability

    Elastic Container Instance supports fine-grained application scaling. You can specify N replicas to be scheduled to ECS. During a scale-out event, the system schedules N replicas to ECS before the system schedules N+1 replicas to Elastic Container Instance. During a scale-in event, the replicas that run on Elastic Container Instance are preferentially reclaimed.

Hosting for online business

Elastic Container Instance allows you to use Kubernetes clusters and O&M-free infrastructure fully managed by ASK so that you can focus on developing business applications without the need to invest human resources in O&M. In addition, you can enable auto scaling based on business traffic to reduce operating costs.

  • Zero O&M

    Elastic Container Instance allows you to focus on developing applications, services, and tasks without the need to manage clusters or worker nodes.

  • Cost-effectiveness

    Elastic Container Instance dynamically adjusts resource usage based on business traffic and uses the pay-as-you-go billing method.

  • High compatibility

    Elastic Container Instance supports StatefulSet, Deployment, Job, and CronJob.

Data processing

Elastic Container Instance breaks free of the limits of underlying resources due to costs when you process a large number of concurrent online tasks. You can create a large number of processing nodes in a short period of time to meet the requirements of big data and online AI processing. When you use ACK or ASK, you can seamlessly deploy Spark or Presto on Kubernetes.

  • High compatibility

    Elastic Container Instance is fully compatible with Kubernetes deployed with Spark without the need to make changes to your business systems.

  • Cost-effectiveness

    Elastic Container Instance eliminates the need to reserve resources for jobs. When you submit a job, Elastic Container Instance automatically applies for resources required to run the job and releases the resources after the job is completed.

  • High concurrency

    Elastic Container Instance can start a large number of concurrent jobs in a quick manner. This eliminates the need to scale clusters and allocate resources.

Event-driven business

Elastic Container Instance provides a serverless infrastructure for containers. When events are triggered, Elastic Container Instance allows you to schedule containers or process a large number of events at high concurrency and low costs. For example, you can use Elastic Container Instance to execute recording and transcoding tasks for online education.

  • High concurrency

    Elastic Container Instance can schedule a large number of resources for you to execute concurrent tasks.

  • High elasticity

    Elastic Container Instance can scale out and start containers within seconds to handle a large number of concurrent events or tasks.

  • Cost-effectiveness

    You are billed based on the resource types and the resource usage duration of Elastic Container Instance. The billing stops when events or tasks are processed.

CI/CD testing

Elastic Container Instance is integrated with a continuous integration (CI) and continuous delivery (CD) process to automatically deploy containers, package applications, and run test cases. You can create or release elastic container instances at any time. Elastic Container Instance can provide cost-effective large-scale resources for batch testing tasks during a CI/CD process, such as the full-scale autonomous driving simulation in the development and testing phase of autonomous driving.

  • High elasticity

    Elastic Container Instance support high concurrency, CPUs, and GPUs. This makes elastic container instances suitable for application packaging, stress testing, or simulation testing during a CI process.

  • Cost-effectiveness

    You are billed by second. Elastic Container Instance automatically releases resources when the testing ends. This reduces the CI/CD costs.

  • Deep integration

    Elastic Container Instance is deeply integrated with CI processes. After a version of code is submitted, Elastic Container Instance can directly trigger stress testing or simulation testing. Elastic Container Instance supports standard Kubernetes API operations.