mon_command()用于处理Monitor相关命令 void librados::RadosClient::mon_command_async(const vector<string>& cmd, const bufferlist &inbl, bufferlist *outbl, string *outs, Context *on_finish) { lock.Lock(); monclient.start_mon_command(cmd, inbl, outbl, outs, on_finish);//把命令发送给Moni...
mon_command()用于处理Monitor相关命令 void librados::RadosClient::mon_command_async(const vector<string>& cmd, const bufferlist &inbl, bufferlist *outbl, string *outs, Context *on_finish) { lock.Lock(); monclient.start_mon_command(cmd, inbl, outbl, outs, on_finish);//把命令发送给Moni...
client->mon_command()调用;client为librados::RadosClient; 继续start_mon_command(): 之后调用MonClient::_send_command()里面继续_send_mon_message(m),然后调用底层封装的socket发送消息; 接来下来从mon端(即server端)入手,从接收到消息,解包开始:消息的tag为:MSG_MON_COMMAND,消息主体是一个结构体MMonComm...
Send a command to the mon. mon_command[_target](cmd, inbuf, outbuf, outbuflen, outs, outslen) Parameters: cmd (str) -- JSON formatted string. inbuf (bytes) -- optional string. timeout (int) -- This parameter is ignored. target (Union[int, str, None]) -- name or rank of a ...
Monitor 作为Ceph的 Metada Server 维护了集群的信息,它包括了6个 Map, 分别是 MONMap,OSDMap,PGMap,LogM...
调用了src\pybind\rados\rados.pyx的rados类中的mon_command():cluster.mon_command cdef class Rados(object): """This class wraps librados functions""" # NOTE(sileht): attributes declared in .pyd def __init__(self, *args, **kwargs): ...
[ceph-node1][INFO ] Running command: sudo /usr/bin/ceph --connect-timeout=25 --cluster=ceph --admin-daemon=/var/run/ceph/ceph-mon.ceph-node1.asok mon_status [ceph-node1][INFO ] Running command: sudo /usr/bin/ceph --connect-timeout=25 --cluster=ceph --name mon. --keyring=/va...
[root@mon ~]# systemctl status datadog-agent Copy 第5 章 Datadog 的 Ceph 指标 复制链接 Datadog 代理从 Ceph 收集以下指标:这些指标可以包含在自定义仪表板和警报中。 指标名称描述 ceph.commit_latency_ms 将操作提交到日志所需的时间。 ceph.apply_latency_ms ...
cp/tmp/ceph.mon.keyring/var/lib/ceph/mon/ceph-a/keyring Generate a secret key for every MGR, where{$id}is the MGR letter: ceph auth get-or-create mgr.{$id} mon 'allow profile mgr' mds 'allow *' osd 'allow *' -o /var/lib/ceph/mgr/ceph-{$id}/keyring ...
done --- 9.1) 创建mon节点在安装部署节使用ceph-deploy创建,生成MON信息: [root@kevin-221 ceph]# cd /etc/ceph/ [root@kevin-221 ceph]# ceph-deploy new monnode [root@kevin-221 ceph]# ceph-deploy new kevin-225 kevin-227 kevin-229 9.2) 安装部署报错: [root@kevin-221 ceph]# ceph-deploy...