管理 Auto Tiering 存储引擎

在启用自动分层的情况下管理用于数据库的存储引擎。

Redis 企业软件

管理存储引擎

Redis Enterprise Auto Tiering 支持两种存储引擎:

警告:
在存储引擎之间切换需要 Redis 支持或您的客户经理的指导。

更改存储引擎

  1. 更改 default storage engine 的集群级别配置。
  • 应用程序接口:

    curl -k -u <username>:<password> -X PUT -H "Content-Type: application/json" -d '{"bigstore_driver":"speedb"}' https://localhost:9443/v1/cluster
    
  • CLI:

    rladmin cluster config bigstore_driver {speedb | rocksdb}
    
  1. Restart the each database on the cluster one by one.

    rladmin restart db { db:<id> | <name> }
    
Note:
We recommend restarting your database at times with low usage and avoiding peak hours. For databases without persistence enabled, we also recommend using export to backup your database first.

Monitor the storage engine

To get the current cluster level default storage engine run:

  • Use the rladmin info cluster command look for ‘bigstore_driver’.

  • Use the REST API:

    curl -k -u <username>:<password> -X GET -H "Content-Type: application/json" https://localhost:9443/v1/cluster
    

Versions of Redis Enterprise 7.2 and later provide a metric called bdb_bigstore_shard_count to help track the shard count per database, filtered by bdb_id and by storage engine as shown below:

bdb_bigstore_shard_count{bdb="1",cluster="mycluster.local",driver="rocksdb"} 1.0
bdb_bigstore_shard_count{bdb="1",cluster="mycluster.local",driver="speedb"} 2.0

For more about metrics for Redis Enterprise’s integration with Prometheus, see Prometheus integration.

RATE THIS PAGE
Back to top ↑