Ceph神坑系列

Posted 陈小跑

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ceph神坑系列相关的知识,希望对你有一定的参考价值。

1. 在使用librbd的过程中,发现一个如果ceph集群异常librbd函数不返回的问题,对librbd的源码进行跟踪,发现了rados接口中的rados_mon_op_timeout(how many seconds to wait for a response from the monitor before returning an error from a rados operation. 0 means no limit.)和rados_osd_op_timeout(how many seconds to wait for a response from osds before returning an error from a rados operation. 0 means no limit.)两个参数,两个参数默认为0。于是乎,在使用rados接口的时候,设置参数rados.Rados.conf_set("rados_osd_op_timeout", 10),接口后续就可以抛Timeout异常,就可以正常处理了。如果希望整个集群生效就把参数写在ceph.conf里。

2. 想起来再说

以上是关于Ceph神坑系列的主要内容,如果未能解决你的问题,请参考以下文章

java神坑系列——Arrays.asList

Ceph使用系列之——Ceph RGW使用

Ceph系列01Ceph的工作原理及流程

openstack运维实战系列(十七)之glance与ceph结合

openstack运维实战系列(十八)nova与ceph结合

Kuberntes云原生实战六 使用Rook搭建Ceph集群