In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail for you and then use bucket localtion to achieve rgw cluster expansion, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Idea of capacity expansion: when the capacity of the ceph cluster is insufficient, the newly added OSD forms a new pool, formulates new rule rules, and the newly built bucket is stored in these newly added pool. Note that the expansion is limited to the newly added bucket, and the existing bucket expansion is not applicable.
# 1. Create a new pool
Ceph osd pool create .rgw.buckets.custom 4096 4096ceph osd pool create .rgw.buckets.custom.index 512 512ceph osd pool create .rgw.buckets.custom.extra 64 64
# 2. Adjust region and zone configuration export region configuration
Radosgw-admin region get-- name client.radosgw.us-zone1 > region.conf.json
Edit the region.conf.json and modify the placement_targets section
# before modification, "placement_targets": [{"name": "default-placement", "tags": []}], "default_placement": "default-placement" # modified "placement_targets": [{"name": "default-placement", "tags": []} {"name": "new", "tags": []}], "default_placement": "default-placement"
Export zone configuration
Radosgw-admin zone get-- name client.radosgw.us-zone1 > zone.conf.json
Edit the zone.conf.json and modify the placement_targets section
# "placement_pools" before modification: [{"key": "default-placement", "val": {"index_pool": ".us-zone1.rgw.buckets.index", "data_pool": ".us-zone1.rgw.buckets" "data_extra_pool": ".us-zone1.rgw.buckets.extra"}] # modified "placement_pools": [{"key": "default-placement", "val": {"index_pool": ".us-zone1.rgw.buckets.index" "data_pool": ".us-zone1.rgw.buckets", "data_extra_pool": ".us-zone1.rgw.buckets.extra"}}, {"key": "new", "val": {"index_pool": ".rgw.buckets.custom.index" "data_pool": ".rgw.buckets.custom", "data_extra_pool": ".rgw.buckets.custom.custom"}}
Import configuration
Radosgw-admin region set-- name client.radosgw.us-zone1 < region.conf.jsonradosgw-admin zone set-- name client.radosgw.us-zone1 < zone.conf.json
Refresh configuration information
Radosgw-admin regionmap update-- name client.radosgw.us-zone13. Restart the service
Note: all radosgw service nodes need to do this step
/ etc/init.d/radosgw restart
# 4. Verification test
Test method 1: the new bucket needs to specify the following localtion,boto code
From boto.s3.connection import S3Connectionimport botoaccess_key = 'xxx'secret_key =' xxxx'host = 's3.ceph.work'bucket =' localtest2'conn = S3Connection (access_key, secret_key, host=host, is_secure=False) conn = boto.connect_s3 (aws_access_key_id = access_key, aws_secret_access_key = secret_key, host=host, is_secure=False, calling_format = boto.s3.connection.SubdomainCallingFormat () Validate_certs = True,) bucket = conn.create_bucket (bucket,location=':new') bucket = conn.get_bucket (bucket) print bucket
Test method 2:
S3cmd mb s3://localtest2-bucket-location=:new
Verification
Root@ceph.work/# radosgw-admin bucket stats-- bucket=localtest2-- name client.radosgw.us-zone1 {"bucket": "localtest2", "pool": ".rgw.buckets.custom", "index_pool": ".rgw.buckets.custom.index", "id": "us-zone1.477528.2", "marker": "us-zone1.477528.2", "owner": "gf" "ver": "master_ver": "0,0,0,0,1magicles, 2pyrrons, 3magicles,"master_ver": "0primes, 1memorials, 5magicles, 5magicles,"master_ver": "0perpendiculum, 1meme, 3pence, 5pyrrons, 5pommies, 5pommies", "mtime": "2016-07-07 15 usage 50, 53.000000", "max_marker": "0,000,000,000," "bucket_quota": {"enabled": false, "max_size_kb":-1, "max_objects":-1}} about then using bucket localtion to achieve rgw cluster expansion, that's all. I hope the above content can be of some help to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.