3.3. 检查高可用性集群中的捆绑包状态

您可以从 undercloud 节点检查捆绑包的状态,或者直接登录到其中一个 Controller 节点,以检查捆绑包状态。

先决条件

  • 高可用性部署并运行。

流程

使用以下选项之一:

  • 登录到 undercloud 节点并检查捆绑包状态,本例中为 haproxy-bundle

    $ sudo podman exec -it haproxy-bundle-podman-0 ps -efww | grep haproxy*

    输出示例:

    root           7       1  0 06:08 ?        00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -Ws
    haproxy       11       7  0 06:08 ?        00:00:17 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -Ws

    输出显示 haproxy 进程在容器内运行。

  • 登录到 Controller 节点并检查捆绑包状态,在这个示例中的 haproxy

    $ ps -ef | grep haproxy*

    输出示例:

    root       17774   17729  0 06:08 ?        00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -Ws
    42454      17819   17774  0 06:08 ?        00:00:21 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -Ws
    root      288508  237714  0 07:04 pts/0    00:00:00 grep --color=auto haproxy*
    [root@controller-0 ~]# ps -ef | grep -e 17774 -e 17819
    root       17774   17729  0 06:08 ?        00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -Ws
    42454      17819   17774  0 06:08 ?        00:00:22 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -Ws
    root      301950  237714  0 07:07 pts/0    00:00:00 grep --color=auto -e 17774 -e 17819