7.5.5. 在区中配置放置池
zone group 具有新的 吞吐量优化的
放置目标后,映射放置池 ,以便在区域配置中优化吞吐量
。此步骤将通过 优化吞吐量
的放置池替换默认替换
到其相关池的映射。
执行 Get a Zone 步骤来查看池名称。
# radosgw-admin zone get [--rgw-zone=<zone>] > zone.json
假设名为 us-west
的区域,文件内容将类似如下:
{ "domain_root": ".rgw.root", "control_pool": ".us-west.rgw.control", "gc_pool": ".us-west.rgw.gc", "log_pool": ".us-west.log", "intent_log_pool": ".us-west.intent-log", "usage_log_pool": ".us-west.usage", "user_keys_pool": ".us-west.users.keys", "user_email_pool": ".us-west.users.email", "user_swift_pool": ".us-west.users.swift", "user_uid_pool": ".us-west.users.uid", "system_key": { "access_key": "", "secret_key": ""}, "placement_pools": [ { "key": "default-placement", "val": { "index_pool": ".us-west.rgw.buckets.index", "data_pool": ".us-west.rgw.buckets", "data_extra_pool": ".us-west.rgw.buckets.non-ec" "index_type": 0 } } ] }
区域配置的 placement_pools
部分定义放置池的集合。每组放置池定义存储策略。修改 文件,以删除 default-placement
条目,并将它替换为前面步骤中创建的池的 吞吐量优化
条目。例如:
{ ... "placement_pools": [ { "key": "throughput-optimized", "val": { "index_pool": ".us-west.rgw.buckets.index", "data_pool": ".us-west.rgw.buckets.throughput"} "data_extra_pool": ".us-west.rgw.buckets.non-ec", "index_type": 0 } ] }
最后,使用修改后的 zone.json
文件中的设置设置区域配置;然后更新 period。例如:
# radosgw-admin zone set --rgw-zone={zone-name} --infile zone.json # radosgw-admin period update --commit
注意
index_pool
使用 SSD 或其他高性能存储指向索引池和 CRUSH 层次结构,data _pool
会指向完全补充 PG 的池,以及高吞吐量的主机总线适配器、SAS 驱动器和 SSD(日志)的 CRUSH 层次结构。