ALTER-POLICY
ALTER-POLICY
Name
ALTER STORAGE POLICY
Description
该语句用于修改一个已有的冷热分离迁移策略。仅 root 或 admin 用户可以修改资源。 语法:
ALTER STORAGE POLICY 'policy_name'
PROPERTIES ("key"="value", ...);
Example
- 修改名为 cooldown_datetime冷热分离数据迁移时间点:
ALTER STORAGE POLICY has_test_policy_to_alter PROPERTIES("cooldown_datetime" = "2023-06-08 00:00:00");
- 修改名为 cooldown_ttl的冷热分离数据迁移倒计时
ALTER STORAGE POLICY has_test_policy_to_alter PROPERTIES ("cooldown_ttl" = "10000");
ALTER STORAGE POLICY has_test_policy_to_alter PROPERTIES ("cooldown_ttl" = "1h");
ALTER STORAGE POLICY has_test_policy_to_alter PROPERTIES ("cooldown_ttl" = "3d");
Keywords
ALTER, STORAGE, POLICY