Container groups can be billed by using the following methods:
Pay-as-you-go: A post-payment method in which you can use the container group before paying for it. The container group is billed in RMB/second. The minimum charge for the lifecycle of a container group (from creation to release) is 0.01 RMB. Pay-as-you-go is applicable to applications or services with elastic business traffic, such as auto scaling, testing, and scientific computing. Pay-as-you-go allows you to activate and release resources at any time, and you can purchase resources on demand without purchasing too many devices. This reduces costs by up to 30%-80% as compared with the investment amount for traditional hosting.
Reserved instances (RIs): A pre-payment method in which you need to pay before using the container group. This mode is applicable to 24/7 services including web services, and applications with stable loads, such as scheduled long-period job-type tasks. ECS reserved instances are used to offset the resource usage of container groups that are created by specifying the specifications of the container groups. For more information, see Use reserved instances.
(Coming soon) Preemptible instances: A post-payment method. For more information, see Preemptible instances of ECS. This mode is applicable to scenarios where the service duration is shorter than one hour.
You can flexibly purchase container groups based on your business peak and trough to reduce overall costs. We recommend that you purchase container groups for business with peak and trough traffic as shown in the following figure:
Note: The business traffic has obvious peaks and troughs. The traffic peak occurs at 9:00, 12:00, and 21:00. The daily scheduled statistical tasks are performed every hour from 0:00 to 3:00.
- Reserved instances: You can minimize costs by purchasing reserved instances to support 24/7 loads.
- Pay-as-you-go: You can choose the pay-as-you-go mode for elastic resources based on the business load.
- Preemptible instances: Applying for preemptible instances for tasks and jobs that take less than one hour can further reduce costs.