Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create Custom data pool in RWG

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how to create custom data pool in RWG. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.

1. Create a new pool

To create a data pool, pay attention to the pg configuration plan of each pool. You can refer to http://ceph.com/pgcalc/ for design.

Ceph osd pool create .rgw.root 16 16ceph osd pool create demo.rgw.data.root 16 16ceph osd pool create demo.rgw.control 16 16ceph osd pool create demo.rgw.gc 16 16ceph osd pool create demo.rgw.log 16 16ceph osd pool create demo.rgw.intent-log 16 16ceph osd pool create demo.rgw.usage 16 16ceph osd pool create demo.rgw.users.keys 16 16ceph osd pool create demo.rgw.users.email 16 16ceph osd pool create demo.rgw.users.swift 16 16ceph osd pool create demo.rgw.users.uid 16 16ceph osd pool create demo.rgw.buckets.index 16 16ceph osd pool create demo.rgw.buckets.data 64 64ceph osd pool create demo.rgw.buckets.non-ec 16 162. Profile preparation

Ceph.conf configuration

[client.radosgw.us-zone1] rgw dns name = s3.ceph.work rgw frontends = "civetweb port=80" host = radosgw-1 keyring = / etc/ceph/ceph.client.radosgw.keyring rgw socket path = / home/ceph/var/run/ceph-client.radosgw.us-zone1.sock log file = / home/ceph/log/radosgw.us-zone1.log rgw print continue = false rgw content length compat = true

Zone configuration

# zone.json {"id": "2f58efaa-3fa2-48b2-b996-7f924ae1215c", "name": "demo", "domain_root": "demo.rgw.data.root", "control_pool": "demo.rgw.control", "gc_pool": "demo.rgw.gc", "log_pool": "demo.rgw.log", "intent_log_pool": "demo.rgw.intent-log" Usage_log_pool: "demo.rgw.usage", "user_keys_pool": "demo.rgw.users.keys", "user_email_pool": "demo.rgw.users.email", "user_swift_pool": "demo.rgw.users.swift", "user_uid_pool": "demo.rgw.users.uid", "system_key": {"access_key": "" "secret_key": "}," placement_pools ": [{" key ":" default-placement "," val ": {" index_pool ":" demo.rgw.buckets.index ", # index pool" data_pool ":" demo.rgw.buckets.data " # data pool "data_extra_pool": "demo.rgw.buckets.non-ec", "index_type": 0}}], "metadata_heap": "," realm_id ":"}

Zonegroup configuration

# zonegroup.json {"id": "9d07fb3c-45d7-4d63-a475-fd6ebd41b722", # Zonegroup ID "name": "zg", # zonegroup name "api_name": "", # bucket localtion definition here "is_master": "true", "endpoints": [], "hostnames": [], "hostnames_s3website": [] "master_zone": "2f58efaa-3fa2-48b2-b996-7f924ae1215c", # zone ID "zones": [{"id": "2f58efaa-3fa2-48b2-b996-7f924ae1215c", # zone ID "name": "demo", # zone name "endpoints": [], "log_meta": "false" "log_data": "false", "bucket_index_max_shards": 0, "read_only": "false"}], "placement_targets": [{"name": "default-placement", "tags": []}], "default_placement": "default-placement" "realm_id": "} 3. Import the configuration file radosgw-admin realm create-- rgw-realm=nt-- default # create a new realm named ntradosgw-admin zonegroup set

< zonegroup.json --rgw-realm=nt --rgw-zonegroup=zg --default #导入之前的zonegroup配置,zonegroup名称为zgradosgw-admin zone set < zone.json --rgw-zonegroup=zg --rgw-zone=demo --master --default #导入zone配置,zone名称为demo/etc/init.d/radosgw start #启动服务4. 验证 新建用户 radosgw-admin user create --uid=s3user --display-name=s3userceph dfGLOBAL: SIZE AVAIL RAW USED %RAW USED 92114M 88985M 3128M 3.40POOLS: NAME ID USED %USED MAX AVAIL OBJECTS .rgw.root 73 2072 0 88558M 12 demo.rgw.data.root 74 609 0 88558M 2 demo.rgw.control 75 0 0 88558M 8 demo.rgw.gc 76 0 0 88558M 32 demo.rgw.log 77 50 0 88558M 128 demo.rgw.intent-log 78 0 0 88558M 0 demo.rgw.usage 79 0 0 88558M 0 demo.rgw.users.keys 80 13 0 88558M 1 demo.rgw.users.email 81 0 0 88558M 0 demo.rgw.users.swift 82 0 0 88558M 0 demo.rgw.users.uid 83 329 0 88558M 2 demo.rgw.buckets.index 84 0 0 88558M 1 demo.rgw.buckets.data 85 0 0 88558M 0 demo.rgw.buckets.non-ec 86 0 0 88558M 0 demo.rgw.users.keys和demo.rgw.users.uid 的OBJECTS>

0, which means it has been successful.

This is how to create a custom data pool in the RWG shared by the editor. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report