刚刚接触到一个生产中的OB集群,如何查看集群中部署哪些Obproxy?如何查看Obproxy的版本?

【产品名称】

obproxy

【产品版本】

OceanBase 2.2.x

【问题描述】

刚刚接触到一个生产中的OB集群,登陆root@sys租户后,如何查看集群中部署哪些Obproxy?如何查看Obproxy的版本?

在 集群里面不是很好看出有哪些 OBProxy,在 OCP 里可以很方便的看到。

1 个赞

方法2 是在 root@sys 里查看 当前连接的会话 

select id, user, host,tenant,db, command, svr_ip, proxy_sessid,user_client_ip

from __all_virtual_processlist 

where proxy_sessid is not null 

;


看结果里的   host 列 的 ip 就是 obproxy的 ip。obproxy在生产环境至少2个。


请问user_client_ip是什么哪?我看他和host里的ip不一样。

就是 对obproxy发起连接的那个服务器的ip。