ceph的rgw现在提供了两种前端, civetweb和beast
修改配置文件
rgw_frontends = civetweb port=7481
为
rgw frontends = beast port=7481
然后重启rgw进程,查看日志
2020-09-11 10:23:52.117738 7f90b45f8000 0 ceph version 12.2.13 (584a20eb0237c657dc0567da126be145106aa47e) luminous (stable), process radosgw, pid 235781
2020-09-11 10:23:52.204891 7f90b45f8000 -1 *** experimental feature ‘rgw-beast-frontend‘ is not enabled ***
This feature is marked as experimental, which means it
- is untested
- is unsupported
- may corrupt your data
- may break your cluster is an unrecoverable fashion
To enable this feature, add this to your ceph.conf:
enable experimental unrecoverable data corrupting features = rgw-beast-frontend
这个在 ceph version 12.2.13还是这个提示,后面的版本里面就没这个了
增加配置文件
enable experimental unrecoverable data corrupting features = rgw-beast-frontend
到global里面
重启rgw进程
再次查看日志
2020-09-11 10:35:18.189630 7fe5891bf000 0 starting handler: beast
2020-09-11 10:35:18.192804 7fe5891bf000 0 set uid:gid to 167:167 (ceph:ceph)
2020-09-11 10:35:18.205123 7fe5891bf000 1 mgrc service_daemon_register rgw.radosgw1 metadata {arch=x86_64,ceph_version=ceph version 12.2.13 (584a20eb0237c657dc0567da126be145106aa47e) luminous (stable),cpu=Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz,distro=centos,distro_description=CentOS Linux 7 (Core),distro_version=7,frontend_config#0=beast port=7481,frontend_type#0=beast,hostname=lab201,kernel_description=#1 SMP Thu Nov 8 23:39:32 UTC 2018,kernel_version=3.10.0-957.el7.x86_64,mem_swap_kb=0,mem_total_kb=3861512,num_handles=1,os=Linux,pid=236518,zone_id=80576aa5-448e-470d-aee4-ac8662d35e62,zone_name=default,zonegroup_id=5eced993-d226-4e15-9a4f-5362a3da3c19,zonegroup_name=default}
没有问题了,然后直接访问即可
Why | Who | When |
---|---|---|
创建 | 武汉-运维-磨渣 | 2020-09-11 |
原文:https://www.cnblogs.com/zphj1987/p/13650324.html