You can change the billing method for network usage of an Elastic Compute Service (ECS) instance that uses a static public IP address from pay-by-bandwidth to pay-by-traffic or from pay-by-traffic to pay-by-bandwidth. The static public IP address of the ECS instance is the public IP address assigned by the system.
For information about how to change the billing method for an ECS instance that uses an elastic IP address (EIP), see Switch metering methods.
Pay-by-bandwidth: charges fees based on the bandwidth that you specified. The actual outbound bandwidth of the instance does not exceed the specified bandwidth. This billing method is suitable for scenarios in which bandwidth usage is predictable.
Pay-by-traffic: charges fees based on the actual traffic volume. If you use this billing method, the specified bandwidth is the maximum bandwidth for outbound traffic. The bandwidth limit prevents out-of-control fees caused by traffic bursts. This billing method is suitable for scenarios in which bandwidth usage may significantly fluctuate.
ImportantIf the pay-by-traffic billing method is used, the ECS instance has the maximum inbound and outbound bandwidths. However, the bandwidths are not guaranteed. In scenarios where demands outstrip resource supplies, the maximum bandwidths may not be reached. If you want guaranteed bandwidths for your instances, use the pay-by-bandwidth billing method for network usage.
Change from pay-by-bandwidth to pay-by-traffic
The following section describes how to change the billing method for network usage from pay-by-bandwidth to pay-by-traffic for a subscription or pay-as-you-go instance.
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region and resource group to which the resource belongs.
Navigate to the configuration page based on your requirements.
ImportantIf you temporarily upgraded the bandwidth of a subscription ECS instance, the system cancels all pending and effective temporary bandwidth upgrade orders for the instance and processes a refund after you change the billing method for network usage of the instance from pay-by-bandwidth to pay-by-traffic.
In high-traffic scenarios, your network traffic fees may increase if you select the pay-by-traffic billing method for network usage. To ensure that the billing method for network usage meets your budget plan, we recommend that you perform a budget assessment in advance. For information about how to select a billing method for network usage, see the Billing methods for network usage section of the "Public bandwidth" topic.
Configure a single ECS instance: Find the instance that you want to manage and click the icon in the Actions column. In the dialog box that appears, click Change Subscription/Pay-as-you-go Instance Bandwidth in the Upgrade/Downgrade section.
Configure multiple ECS instances: Select the instances that you want to manage and click More in the lower part of the page. In the dialog box that appears, click Change Subscription/Pay-as-you-go Instance Bandwidth in the Upgrade/Downgrade section.
On the Change Bandwidth page, select Pay-By-Traffic in the Bandwidth section and specify a maximum bandwidth value.
Read the notes and terms of service. Select ECS Service Terms.
Confirm the configuration costs, click Confirm in the lower-right corner of the page, and then follow the on-screen instructions to perform the subsequent operations.
The new configurations take effect immediately after you change the billing method.
Change from pay-by-traffic to pay-by-bandwidth
The following section describes how to change the billing method for network usage from pay-by-traffic to pay-by-bandwidth for a subscription or pay-as-you-go instance.
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region and resource group to which the resource belongs.
Navigate to the configuration page based on your requirements.
Configure a single ECS instance: Find the instance that you want to manage and click the icon in the Actions column. In the dialog box that appears, click Change Subscription/Pay-as-you-go Instance Bandwidth in the Upgrade/Downgrade section.
Configure multiple ECS instances: Select the instances that you want to manage and click More in the lower part of the page. In the dialog box that appears, click Change Subscription/Pay-as-you-go Instance Bandwidth in the Upgrade/Downgrade section.
On the Change Bandwidth page, select Pay-By-Bandwidth in the Bandwidth section and specify a bandwidth value.
Read the notes and terms of service. Select ECS Service Terms.
Confirm the configuration costs, click Confirm in the lower-right corner of the page, and then follow the on-screen instructions to perform the subsequent operations.
The new configurations take effect immediately after you change the billing method.
References
After you change the billing method for network usage of an instance, the system calculates the public bandwidth fee of the instance based on the new billing method. For more information, see Public bandwidth.
You may need to modify the bandwidth limit or configurations for an instance based on the new billing method. For more information, see the following topics:
The static public IP address of an ECS instance in a virtual private cloud (VPC) cannot be unassigned from the instance. If you want to manage your IP address in a more flexible manner, you can convert the static public IP address of the instance into an EIP. For more information, see Convert the public IP address of an ECS instance in a VPC to an EIP.