gpt4 book ai didi

linux - Ceph-rgw 服务安装后自动停止

转载 作者:太空宇宙 更新时间:2023-11-04 05:07:15 24 4
gpt4 key购买 nike

在我的本地集群(4 个 Raspberry PI)中,我尝试配置 rgw 网关。不幸的是,该服务在 2 分钟后自动消失。

[ceph_deploy.rgw][INFO  ] The Ceph Object Gateway (RGW) is now running on host OSD1 and default port 7480


cephuser@admin:~/mycluster $ ceph -s
cluster:
id: 745d44c2-86dd-4b2f-9c9c-ab50160ea353
health: HEALTH_WARN
too few PGs per OSD (24 < min 30)

services:
mon: 1 daemons, quorum admin
mgr: admin(active)
osd: 4 osds: 4 up, 4 in
rgw: 1 daemon active

data:
pools: 4 pools, 32 pgs
objects: 80 objects, 1.09KiB
usage: 4.01GiB used, 93.6GiB / 97.6GiB avail
pgs: 32 active+clean

io:
client: 5.83KiB/s rd, 0B/s wr, 7op/s rd, 1op/s wr

一分钟后,服务(rgw:1守护进程处于事件状态)不再可见:

cephuser@admin:~/mycluster $ ceph -s
cluster:
id: 745d44c2-86dd-4b2f-9c9c-ab50160ea353
health: HEALTH_WARN
too few PGs per OSD (24 < min 30)

services:
mon: 1 daemons, quorum admin
mgr: admin(active)
osd: 4 osds: 4 up, 4 in

data:
pools: 4 pools, 32 pgs
objects: 80 objects, 1.09KiB
usage: 4.01GiB used, 93.6GiB / 97.6GiB avail
pgs: 32 active+clean

非常感谢您的帮助

最佳答案

解决方案:在网关节点上,打开/etc/ceph/目录下的Ceph配置文件。

查找与示例类似的 RGW 客户端部分:

[client.rgw.gateway-node1]
host = gateway-node1
keyring = /var/lib/ceph/radosgw/ceph-rgw.gateway-node1/keyring
log file = /var/log/ceph/ceph-rgw-gateway-node1.log
rgw frontends = civetweb port=192.168.178.50:8080 num_threads=100

https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/3/html-single/object_gateway_guide_for_red_hat_enterprise_linux/index

关于linux - Ceph-rgw 服务安装后自动停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59751876/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com