Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Scaling Storage Space

Updated on 2024-10-24 GMT+08:00

Scenarios

If the original storage space is insufficient as your services grow, you can scale up storage space of your DB instance.

When the storage usage is greater than or equal to 97%, the DB instance status changes to Storage full. Your connection to the instance is intermittently interrupted and the instance becomes read-only. When this happens, data cannot be written to the instance.

A DB instance needs to preserve at least 15% of its capacity to work properly. The new minimum storage space required to make this instance available has been automatically calculated for you. You are advised to set alarm rules for the Storage Space Usage metric to learn about the storage usage in a timely manner. For details, see Setting Alarm Rules.

During the scale-up period, services are not interrupted.

Constraints on Scale-up

  • You can scale up storage space only when your account balance is greater than or equal to $0 USD.
  • The maximum allowed storage is 4,000 GB. There is no limit on the number of scale-ups.
  • For primary/standby DB instances, scaling up the primary DB instance will cause the standby DB instance to also be scaled up.
  • A DB instance cannot be deleted during scale-up.
  • The storage space of a DB instance can be scaled up or down.
  • If you scale up a DB instance with the disk encrypted, the expanded storage space will be encrypted using the original encryption key.

Constraints on Scale-down

  • The storage space of a DB instance can be scaled only when the instance is Available.
  • Only instances whose storage type is cloud SSD or ultra-high I/O can be scaled down.
  • If the specifications of a read replica are less than those of the primary instance, scaling down the storage space of the primary instance may fail. It is recommended that the specifications of read replicas be no less than those of the primary instance.
  • Scaling down storage space of a DB instance during peak hours may fail due to insufficient storage space. Scale down storage space during off-peak hours.
  • To restore from a backup created before scale-down to an existing instance, select an instance whose storage is at least equal to that of the original instance before the scale-down.
  • DB instances with snapshot backup enabled cannot be scaled down.
  • During scale-down, 40 GB space is reserved to prevent the disk from becoming read-only, so your DB instance can be scaled down only when its available storage space is at least 40 GB.
  • For primary/standby instances, scaling down the primary instance will cause the standby instance to also be scaled down.
  • A DB instance cannot be deleted during scale-down.
  • If you scale down a DB instance with the disk encrypted, the new storage space will be encrypted using the original encryption key.
  • The time required for storage scale-down (during off-peak hours) is as follows:
    • The time required depends on how much data there is in your instance. More data means more time.
    • If the scale-down takes an extended period of time, contact customer service.

Billing

Table 1 Billing

Billing Mode

Operation

Impact on Fees

Yearly/Monthly

Storage scale-up

You need to pay for the difference in price based on the remaining period.

The following prices are for reference only. The actual prices are subject to the price displayed on the console.

Suppose you purchased a one-month RDS for PostgreSQL 14 single DB instance (instance class: general-purpose, 2 vCPUs | 8 GB; storage: cloud SSD, 40 GB) in CN-Hong Kong on June 1, 2023. The unit price of storage space is $0.214 USD/GB per month.

On June 15, 2023, you scaled up the storage by 60 GB. The total storage after scale-up is 100 GB.

Price difference = Scale-up volume x Unit price x Remaining period

The remaining period is the remaining days of each calendar month divided by the maximum number of days in each calendar month.

In this example, the remaining period and price difference are calculated as follows:

Remaining period = 15 (Remaining days in June)/30 (Maximum number of days in June) = 0.5

Price difference = 60 GB x $0.214 USD x 0.5 = $6.42 USD

Yearly/Monthly

Storage scale-down

After the scale-down is successful, RDS refunds the difference in price based on the new storage space and the remaining period.

The calculation method is the same as that for scaling up storage space.

Pay-per-use

Storage scaling

The new storage space is billed by hour. For details, see Product Pricing Details.

Scaling the Storage Space of a DB Instance

  1. Log in to the management console.
  2. Click in the upper left corner and select a region.
  3. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  4. On the Instances page, locate the target DB instance and choose More > Scale Storage Space in the Operation column.

    Or use either of the following methods:

    • Click the instance name to go to the Overview page. In the Storage & Backup area, click Scale Storage Space.
    • If the instance storage is full, locate the instance on the Instances page and click Scale in the Status column.

  5. On the displayed page, specify the new storage space and click Next.

    You can increase or decrease the storage by at least 10 GB. Enter a value that is a multiple of 10. The instance supports a storage space range from 40 GB to 4,000 GB.

    The final storage space range on the console may differ slightly. It varies with the storage usage of the instance.

  6. Confirm the information.

    • If you need to modify your settings, click Previous.
    • If you do not need to modify your settings, click Submit for a pay-per-use instance or click Pay Now for a yearly/monthly instance.

  7. Check the result.

    Scaling storage space takes 3-5 minutes. During this period, the status of the DB instance on the Instances page will be Scaling up or Scaling down. After a while, click the instance name and check that the new value for storage space appears on the Overview page.

Scaling the Storage Space of a Read Replica

Scaling the storage space of a read replica does not affect that of the primary DB instance. You can separately scale read replicas to meet service requirements. New storage space of read replicas after scaling must be greater than or equal to that of the primary DB instance.

  1. Log in to the management console.
  2. Click in the upper left corner and select a region.
  3. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  4. On the Instances page, locate the target DB instance and click in front of it. Locate the read replica to be scaled and choose More > Scale Storage Space in the Operation column.

    Or use either of the following methods:

    • Click the read replica name to go to the Overview page. In the Storage & Backup area, click Scale Storage Space.
    • If the storage of the read replica is full, locate the read replica on the Instances page and click Scale in the Status column.

  5. On the displayed page, specify the new storage space and click Next.

    The minimum start value of each scaling is 10 GB. A read replica can be scaled up or down only by a multiple of 10 GB. The allowed minimum and maximum storage spaces are 40 GB and 4,000 GB, respectively.

    The storage space range varies with the storage usage of the read replica. For details, see the information displayed on the console.

  6. Confirm the information.

    • If you need to modify your settings, click Previous.
    • If you do not need to modify your settings, click Submit for a pay-per-use read replica or click Pay Now for a yearly/monthly read replica.

  7. Check the result.

    Scaling storage space takes 3-5 minutes. During this period, the status of the read replica on the Instances page will be Scaling up or Scaling down. After a while, click the read replica name and check the new storage space on the displayed Overview page to verify that the scaling is successful.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback