This topic describes how to adjust the bandwidth of an ApsaraDB for Redis instance. If the bandwidth of an instance is insufficient to handle unexpected or scheduled traffic spikes, such as traffic spikes in a flash sale, you can increase the bandwidth of the instance without changing the instance specifications. This allows you to focus on business growth.
Prerequisites
- The instance uses local disks.
- The instance is a Community Edition instance or a DRAM-based instance of the ApsaraDB for Redis Enhanced Edition (Tair). For more information about DRAM-based instances, see DRAM-based instances.
Scenarios
The bandwidth of an instance varies based on the instance type. If the traffic of an instance reaches the allocated bandwidth, network congestion may occur and instance performance may deteriorate. In the following scenarios, you can adjust the bandwidth of an instance to prevent network congestion and performance deterioration on the instance. A bandwidth adjustment helps you increase bandwidth at a lower cost than an instance specification change and can prevent transient connections.
- We recommend that you use the bandwidth auto scaling feature. When the bandwidth usage of an instance reaches a specified threshold, the bandwidth is automatically increased or decreased. This feature reduces costs and facilitates O&M. For more information, see Enable bandwidth auto scaling.
- If the instance is a Community Edition instance that requires a sharp bandwidth increase, we recommend that you change the instance into an Enhanced Edition (Tair) instance. This is because a Tair instance can support a bandwidth of 96 Mbit/s or more.
Scenario | Description |
---|---|
Handle traffic spikes | You can adjust the bandwidth of the instance to handle traffic spikes during promotional events such as a flash sale. After these events end, you can decrease the bandwidth of the instance to reduce costs. |
Mitigate impacts on your business | If a large number of read and write operations are performed on large keys within a short period of time, you must temporarily increase the bandwidth of the instance to mitigate impacts on your business and to reserve time to process these operations. |
Deal with skewed requests at low costs | If the instance is a cluster or read/write splitting instance, some data shards or read replicas of the instance are frequently accessed. As a result, the bandwidth usages of these data shards or read replicas frequently reach the allocated bandwidths. However, the bandwidth usages of other data shards or read replicas are low. In this case, you can increase the bandwidths of specific data shards or read replicas instead of increasing the bandwidth or changing the specifications of the instance. For more information about cluster and read/write splitting instances, see Cluster master-replica instances and Read/write splitting instances. |
Increase the bandwidth of a standard instance | If the instance is a standard instance of the highest specifications and the bandwidth of the instance does not meet your business requirements, you can increase the bandwidth of the instance without the need to upgrade the instance to a cluster instance. This allows you to focus on business improvements. For more information about standard instances, see Standard master-replica instances. |
Limits
- The bandwidth of an instance can be increased to up to three times the bandwidth that is provided for the instance type. If you require higher bandwidth for an instance, you can change the specifications of the instance or upgrade the instance from a standard instance to a cluster instance, and then adjust the instance bandwidth.
- If you perform the following operations on an instance, the extra bandwidth that you
purchased becomes invalid and you receive a refund. You must re-adjust the instance
bandwidth based on your business requirements. By default, the adjusted bandwidth
inherits the expiration time of the previously purchased extra bandwidth.
Operation Exception Upgrade the major version None Change the configurations of an instance If the instance is a standard instance, the bandwidth settings remain valid after you upgrade the specifications of the instance. Migrate an instance across zones If the instance is a standard instance, the bandwidth settings remain valid.
Billing
You are charged per day based on the amount and usage duration of the extra bandwidth that you purchase. The fees vary based on the region that you select. For more information, see Billable items.
Procedure
FAQ
- Q: Can I adjust the bandwidth of a specific data shard or data node within a cluster
instance or a read/write splitting instance?
A: Yes, you can adjust the bandwidth of a specific data shard or data node within a cluster instance or a read/write splitting instance based on your business requirements. This way, you can handle skewed requests with more flexibility.
- Q: Does a bandwidth adjustment cause transient connections?
A: No, a bandwidth adjustment immediately takes effect and does not cause transient connections.
- Q: If I purchase a specific amount of extra bandwidth at 15:00 on March 1, 2021 and
select a one-day subscription duration, when does the extra bandwidth that I purchase
expire?
A: The extra bandwidth that you purchase expires at 00:00 on March 3, 2021. You are not charged for the usage of the extra bandwidth on March 1, 2021.
- Q: How do I unsubscribe from the extra bandwidth that I purchase for my instance?
A: Move the bandwidth adjustment slider to the leftmost position to decrease the bandwidth of your instance to the value provided for the instance type. Then, check the refund to your Alibaba Cloud account and complete the payment.Note You can go to the Orders page to view the progress of the order.
- Q: My subscription instance has expired, and I do not plan to renew the instance.
If the extra bandwidth that I purchased does not expire until next month, can I receive
a refund?
A: Yes, after your instance is stopped, you will receive a refund based on the remaining subscription duration of the extra bandwidth that you purchased. If the extra bandwidth that you purchased expires before the instance, Alibaba Cloud sends you a notification. This helps prevent the impacts of bandwidth changes on your business.
- Q: How do I check whether auto-renewal is enabled for the extra bandwidth that I purchased
for my instance?
A: Go to the Renewal page. Then, enter the ID of your instance and the -bw suffix in the Instance ID field and click Search. Example: r-bp1zxszhcgatnx****-bw.
- Q: If I change the specifications of my instance after I purchase a specific amount
of extra bandwidth, am I still charged for the extra bandwidth?
A: Yes, if you change the specifications of your instance after you purchase a specific amount of extra bandwidth, the extra bandwidth remains valid and you are charged for the extra bandwidth. The bandwidth of your instance is the sum of the bandwidth that is provided for the new instance type and the extra bandwidth that you purchase. These rules apply only to standard instances. For other instance architectures, the extra bandwidth that you purchase becomes invalid and you receive a refund after you change the specifications of your instance. In this case, you must adjust the bandwidth of the instance again if needs arise.
Note For more information about the bandwidths that are supported by different instance types, see Overview.
Related API operations
Operation | Description |
---|---|
EnableAdditionalBandwidth | Adjusts the bandwidth of an ApsaraDB for Redis instance. |