You need to enable JavaScript to run this app.
Database Workshop

Database Workshop

Copy page
Download PDF
Observation and diagnosis
Spatial analysis management
Copy page
Download PDF
Spatial analysis management
The Database Workshop (DBW) provides spatial analysis functionality, allowing you to visually view the space usage of an instance, such as table space usage.​
Prerequisites​
  • An instance for RDS for MySQL has been created, and the instance status is running. For detailed steps, see Creating an instance.​
Precautions​
  • The tablespace data is calculated based on the system database information_schema.tables and may be slightly inaccurate. Please refer to the actual values for confirmation.​
  • Instance-level analysis limit: Space usage is analyzed for up to the first 20,000 tables per database instance.​
  • Database-level analysis limit: For a single database (DB), tablespace usage is analyzed for up to 2,000 tables within it.​
  • While using the spatial analysis feature, avoid modifying instance configurations, as this may prevent normal display of space usage.​
Advantages​
Space analysis can transform complex storage issues into intuitive data views, helping to shift from reactive emergency handling to proactive management.​
  • Global visualization: Charts display key metrics such as used space, space distribution (e.g., data, binlog, undo log), and estimated days of remaining available storage, enabling a comprehensive, at-a-glance view of storage status.​
  • Strong alerting capability: Automatically estimates the number of days until storage is exhausted, proactively identifying potential risks—such as an impending disk full condition—to prevent service disruption.​
  • Deep table-level space insights: Enables viewing key metrics for each table—including tablespace size, fragmentation ratio, and row count—to accurately identify large tables or those with high fragmentation.​
  • Historical trend tracking: Provides space usage trend charts to help analyze growth patterns and forecast future capacity requirements.​
  • Multi-dimensional breakdown: Categorizes and analyzes storage usage across user data, system space, log files (e.g., binlog, undo log), and temporary files to help identify the sources of resource consumption.​
Applicable scenarios​
  • Storage scaling assessment: Review current space usage and estimated days of remaining capacity to determine whether immediate scaling is required; combine this with trend charts to forecast future growth.​
  • Performance optimization diagnostics: Analyze tables with high fragmentation and execute ALTER TABLE ... ENGINE=InnoDB or perform a table rebuild to reduce fragmentation and enhance query performance.​
  • Log management optimization: Review the storage占比 of Binlog and Redo Log; if their proportion is excessively high, consider adjusting retention policies—for example, by setting expire_logs_days.​
  • Large table identification and archiving: Sort tables by tablespace size to identify those consuming the most storage, and evaluate whether sharding, partitioning, or archiving historical data is necessary.​
  • Capacity planning and budget control: Leverage space usage trends and consumption statistics to provide data-driven support for resource procurement and budget allocation.​
  • Troubleshooting assistance: When encountering disk read-only or write failures, quickly determine whether the issue is caused by data bloat or log accumulation.​
Procedure​
  1. Log on to the DBW console.​
  1. On the top menu bar, select the project and region.​
  1. On the left navigation bar, select Operation and maintenance management > Observation and diagnosis.​
  1. On the Observation and diagnosis page, click Space usage.​
  1. In the upper left corner of the Space usage tab, switch the instance.​
tip​
  • You can also switch to the target instance by searching for the instance ID.​
  • When you access the Space usage tab through Observation and diagnosis on the left navigation bar, information about the first instance in the Instance list is displayed by default.​
  1. On the Space usage tab, you can view the following information:​
  • ​
    View spatial profile
    View trends in space
    Create space analysis task
    ​
    In the Spatial profile section, you can view the Used space, Space usage, and Remaining available days for the current instance.​
    tip​
    Space usage includes the occupied space and Remaining space of User data, System, Bin Log, Redo Log, Undo Log, Relay logs, Audit log, Slow log, Error log, Temporary file, and Other documents.​
    ​
  • ​
Last updated: 2026.08.04 11:16:29