@@ -177,7 +177,7 @@ timeout,因此不会使用配置数组顺序作为隐式优先级。
177177``` TEXT
178178{
179179 "storage_config": {
180- "type": "file", # 后端类型,可选值file,pace,mooncake,hf3fs,vcns_hf3fs
180+ "type": "file", # 后端类型,可选值file,pace,pace_ssd, mooncake,hf3fs,vcns_hf3fs
181181 "global_unique_name": "nfs_01", # storage backend的名字,需要全局唯一
182182 "storage_spec": { # storage spec 需根据不同backend类型相应配置,TODO:具体每个type的spec配置文档
183183 "root_path": "/tmp/nfs/",
@@ -205,6 +205,10 @@ timeout,因此不会使用配置数组顺序作为隐式优先级。
205205 {
206206 "storage_type": "pace",
207207 "capacity": 10000000000
208+ },
209+ {
210+ "storage_type": "pace_ssd",
211+ "capacity": 10000000000
208212 }
209213 ]
210214 },
@@ -227,6 +231,8 @@ timeout,因此不会使用配置数组顺序作为隐式优先级。
227231 # CPS_PREFER_TAIR_MEMPOOL = 6,
228232 # CPS_ALWAYS_VCNS_3FS = 7,
229233 # CPS_PREFER_VCNS_3FS = 8,
234+ # CPS_ALWAYS_TAIR_MEMPOOL_SSD = 9,
235+ # CPS_PREFER_TAIR_MEMPOOL_SSD = 10,
230236 # };
231237 "cache_prefer_strategy": 2,
232238 "meta_indexer_config": {
@@ -254,6 +260,28 @@ timeout,因此不会使用配置数组顺序作为隐式优先级。
254260}
255261```
256262
263+ TairMempool DRAM 使用 ` pace ` (proto ` ST_TAIRMEMPOOL ` ),LocalSSD 使用
264+ ` pace_ssd ` (proto ` ST_TAIRMEMPOOL_SSD ` ,同时要求 ` media_type=5 ` )。两类 storage
265+ 仍使用 ` pace:// ` 数据面 URI,但 quota、类型水位和迁移触发用量分别统计。旧的
266+ ` ST_TAIRMEMPOOL + media_type=5 ` 配置仍可读取,迁移到新类型后才能获得独立 SSD 水位。
267+
268+ 启用独立 SSD 类型时还需遵守以下配置约束:
269+
270+ - 使用 ` kvcm_ops add_storage ... pace_ssd ` 创建一个新的、全局唯一的 Storage;不要把已有
271+ ` pace ` Storage 原地更新为 ` pace_ssd ` 。Storage 类型会写入 CacheLocation 和用量账本,
272+ 服务端会拒绝同名 Storage 的类型变更。
273+ - Instance Group 的 ` quota.quota_config ` 必须同时为 ` pace ` 和 ` pace_ssd ` 配置正容量。
274+ 类型水位只遍历这里显式出现的类型;缺少 ` pace_ssd ` 时不会形成 SSD 类型水位和容量上限,
275+ 缺少迁移源 ` pace ` 时迁移规则不会触发。
276+ - SSD 仅作为迁移目标时,不要求放入 ` storage_candidates ` ;迁移规则按
277+ ` target_storage_name ` 精确选择它。若需要把普通新写入直接落到 SSD,则必须把 SSD Storage
278+ 放入 ` storage_candidates ` ,并使用 ` CPS_ALWAYS_TAIR_MEMPOOL_SSD ` 或
279+ ` CPS_PREFER_TAIR_MEMPOOL_SSD ` 。
280+ - ` pace ` 和 ` pace_ssd ` 的数据面 URI scheme 都是 ` pace:// ` 。` pace_ssd ` 只用于配置、计量
281+ 和选择,不能生成 ` pace_ssd:// ` URI。
282+
283+ 详细升级顺序和回滚限制见 [ Breaking Changes] ( BREAK_CHANGE.md#tairmempool-ssd-独立-storage-type ) 。
284+
257285## Logger Config
258286
259287``` TEXT
0 commit comments