If the current billing method for the network usage of your Elastic Compute Service (ECS) instance with a static public IP address does not align with your business needs, you can switch from pay-by-bandwidth to pay-by-traffic or vice versa.
If you are using an Elastic IP Address (EIP) and need to change the billing method, see Switch between billing methods.
Billing methods for static public IP addresses
-
Pay-by-bandwidth: This method charges you based on the bandwidth value you set. The actual outbound bandwidth will not exceed this value, making it suitable for scenarios requiring stable bandwidth.
-
Pay-by-traffic: This postpaid method charges based on actual traffic usage. The specified bandwidth value serves as the maximum outbound bandwidth to prevent excessive costs due to traffic spikes. It is ideal for scenarios with fluctuating bandwidth needs.
Important-
With the Pay-by-traffic method, the inbound and outbound bandwidth peaks are limits and not guaranteed service levels. Bandwidth may be restricted during resource contention. For guaranteed bandwidth, opt for the Pay-by-bandwidth method.
-
The China (Hong Kong) region's BGP (Multi-ISP) Pro lines do not support the pay-by-traffic method.
-
Change from pay-by-bandwidth to pay-by-traffic
The steps below will show you how to switch the billing method for public bandwidth on pay-as-you-go instances from pay-by-bandwidth to pay-by-traffic.
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.
-
Select the appropriate operation to change the public bandwidth based on the following scenarios.
Important-
For subscription-based ECS instances, if you have temporarily increased the bandwidth and decide to switch the billing method for public bandwidth from Pay-by-bandwidth to Pay-by-traffic, any active or pending temporary bandwidth increase orders will be canceled and refunded.
In scenarios with high traffic, opting for the Pay-by-traffic billing method for public bandwidth can lead to increased network traffic expenses. It is advisable to conduct a budget assessment beforehand to ensure compatibility with your financial plan. For guidance on selecting a public bandwidth billing method, see public bandwidth billing.
NoteSubscription instances with fixed bandwidth billing do not support switching from pay-by-bandwidth to pay-by-traffic.
Single conversion
-
Locate the instance you want to convert, and in the Operation column, select
. -
In the Change Bandwidth For Subscription Instance dialog box, select Change Traffic Bandwidth Peak, and click Continue.
-
In the Bandwidth Change dialog box, select Public Bandwidth billing method as Pay-by-traffic, and set the traffic bandwidth peak.
-
Read and select ECS Service Terms, and click Confirm Change.
The new configuration will take effect immediately after the conversion is complete.
Batch conversion
-
Select multiple instances for conversion, and at the bottom of the instance list, click
. -
In the Bandwidth Change dialog box, select Public Bandwidth billing method as Pay-by-traffic, and set the traffic bandwidth peak.
-
Read and select ECS Service Terms, and click Confirm Change.
After completing the conversion according to the page prompts, the new configuration takes effect immediately.
-
Change from pay-by-traffic to pay-by-bandwidth
The following instructions guide you on how to change the public bandwidth of a subscription instance or a pay-as-you-go instance from pay-by-traffic to pay-by-bandwidth.
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.
-
Choose the appropriate operation to change the public bandwidth based on the following scenarios.
Single conversion (pay-as-you-go instance)
-
Locate the instance you want to convert, and in the Actions column, select
. -
In the Bandwidth Change dialog box, select Pay-by-bandwidth as the Public Bandwidth Billing Method, and set the fixed bandwidth value.
-
Read and select ECS Terms Of Service, and click Confirm Change.
The new configuration will take effect immediately after the conversion is complete.
Single conversion (subscription instance)
-
Locate the instance you want to convert, and in the Actions column, select
. -
In the Subscription Instance Change Bandwidth dialog box, select Change Traffic Bandwidth Peak, and click Continue.
-
In the Bandwidth Change dialog box, select Pay-by-bandwidth as the Public Bandwidth Billing Method, and set the fixed bandwidth value.
-
Read and select ECS Terms Of Service, and click Confirm Change.
The new configuration will take effect immediately after the conversion is complete.
Batch conversion (pay-as-you-go instance)
-
Select multiple instances to be converted, and at the bottom of the instance list, select
. -
In the Bandwidth Change dialog box, select Pay-by-bandwidth as the Public Bandwidth Billing Method, and set the fixed bandwidth value.
-
Read and select ECS Terms Of Service, and click Confirm Change.
The new configuration will take effect immediately after the conversion is complete.
Batch conversion (subscription instance)
-
Select multiple instances to be converted, and at the bottom of the instance list, select
. -
In the Subscription Instance Change Bandwidth dialog box, select Change Traffic Bandwidth Peak, and click Continue.
-
In the Bandwidth Change dialog box, select Pay-by-bandwidth as the Public Bandwidth Billing Method, and set the fixed bandwidth value.
-
Read and select ECS Terms Of Service, and click Confirm Change.
The new configuration will take effect immediately after the conversion is complete.
-
References
-
After changing the billing method for network usage of an instance, the system recalculates the public bandwidth fee based on the new billing method. For more information, see public bandwidth billing.
-
You may need to adjust the bandwidth limit or configurations to accommodate the new billing method for an instance.
-
For more flexible management of public IP addresses, such as elastic attachment and detachment on ECS instances, consider converting a static public IP address to an Elastic IP Address (EIP).
ImportantConverting a static public IP address to an EIP and then changing the EIP's billing method from pay-as-you-go to subscription may result in a price difference. Please proceed with caution. For more details, see billing FAQ.