Configuring RGW Nodes
- Add the following configurations:
- Install the RGW component on all server nodes. Download ceph-radosgw based on the Ceph version in use.
# Ceph 14.2.8 yum -y install ceph-radosgw-14.2.8 # Ceph 16.2.7 yum -y install ceph-radosgw
- Modify the ceph.conf configuration file. Add the port configuration of the RGW instance to ceph.conf of ceph1. In this example, one RGW instance is created on each node, totaling three instances. The corresponding gateway ports are 10001 to 10003, and the gateway names are bucket1 to bucket3.
vi /root/ceph-mycluster/ceph.conf
Modify the file as follows:
[global] fsid = 0207ddea-2150-4509-860d-365e87420b3e mon_initial_members = ceph1, ceph2, ceph3 mon_host = 192.168.3.160,192.168.3.167,192.168.3.166 auth_cluster_required = cephx auth_service_required = cephx auth_client_required = cephx public_network = 192.168.3.0/24 cluster_network = 192.168.4.0/24 [mon] mon_allow_pool_delete = true [client.rgw.bucket1] rgw_frontends = civetweb port=10001 log file = /var/log/ceph/client.rgw.bucket1.log [client.rgw.bucket2] rgw_frontends = civetweb port=10002 log file = /var/log/ceph/client.rgw.bucket2.log [client.rgw.bucket3] rgw_frontends = civetweb port=10003 log file = /var/log/ceph/client.rgw.bucket3.log
Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Run the following command on ceph1 to synchronize the configuration file for all server nodes:
ceph-deploy --overwrite-conf config push ceph1 ceph2 ceph3

- Install the RGW component on all server nodes. Download ceph-radosgw based on the Ceph version in use.
- Run the following commands on all RGW nodes to cancel the proxy configurations:
unset http_proxy unset https_proxy
Parent topic: Configuring the Environment