Tiered Storage
Tacnode supports configurable tiered storage across different media, meeting business requirements for cost and performance. Built-in storage types include Hot and Cold storage. With the Tablespace feature, tables or indexes can be assigned to specific storage locations. Use Hot storage for workloads requiring high read/write performance and low latency. Cold storage suits scenarios needing lower storage costs and where performance is less critical.
Tablespace: a logical storage zone that defines the physical storage location of data. In Tacnode, tables, indexes, or entire databases can be bound to a designated Tablespace. After creating a Tablespace, you can assign it during Database, Table, or Index creation/modification. Each Tablespace can set a Location—currently, Tacnode supports /hot and /cold. /hot (default) assigns data to High-Performance SSD storage for frequently accessed data. /cold uses HDD storage for infrequently accessed data.
Note: Cold storage & cache binding recommendation
When using Cold storage in Nodegroup, it's recommended to bind a cache to improve access performance. Steps:
-
Create cache
- In Console, go to “Data” → “Cache”:
- Create a new cache as needed
- Or reuse existing cache resources (ensure capacity meets demand)
- In Console, go to “Data” → “Cache”:
-
Bind cache to Nodegroup
- Bind created cache to the relevant Nodegroup
Manage Tablespace
Create Tablespace and Assign to Tiered Storage
- location: /hot for hot tier; /cold for cold tier.
Example:
Note: Creating a Tablespace requires Tacnode superuser privileges.
Drop Tablespace
Tablespace Usage
Associate Tables or Indexes with Tablespace
On table creation, assign data or indexes to a specific Tablespace. Partitioned tables inherit their parent’s tablespace by default; override with explicit specification if needed:
Migrate Existing Data to Another Tablespace
Use ALTER TABLE ... SET TABLESPACE
to move data—especially useful for gradual online tiering:
After migration, data files are automatically relocated to the new tablespace’s storage path. Changing the tablespace of a table or index rewrites all data; during compaction, storage usage temporarily doubles until completion.
Set Default Tablespace for Database
Use default_tablespace and temp_tablespaces to set the default tablespace for tables and temp tables:
When creating a Database, set default_tablespace; otherwise, defaults to /hot. To change an existing database’s default tablespace, reset default_tablespace.
ALTER DATABASE
for tablespaces is not supported; modify using 'ALTER TABLE' or 'ALTER INDEX' for existing data.
Tiering Strategy for Partitioned Tables
Dynamically adjust storage strategies per business needs:
-
Combine the
PARTITION BY
mechanism with tiering: new (hot) partitions reside in Hot storage while older partitions migrate to Cold storage at lower cost—for example: