4.7. Configuring the load balancer resource agent


After creating the health probe, you must configure the load balancer resource agent. This resource agent runs a service that responds health probe requests from the Azure load balancer and removes cluster nodes that do not respond requests.

Prerequisites

Procedure

  1. Install the nmap-ncat resource agents on all nodes:

    # dnf install nmap-ncat resource-agents-cloud
  2. Perform the following steps on a single node:

    1. Create the pcs resources and group by using the FrontendIP load balancer for the IPaddr2 address:

      # pcs resource create resource-name IPaddr2 ip="10.0.0.7" --group <cluster_resources_group>
    2. Configure the load balancer resource agent:

      # pcs resource create resource-loadbalancer-name azure-lb port=port-number --group <cluster_resources_group>

Verification

  • Run pcs status to see the results.

    [root@node01 clouduser]# pcs status
    
    Cluster name: clusterfence01
    Stack: corosync
    Current DC: node02 (version 1.1.16-12.el7_4.7-94ff4df) - partition with quorum
    Last updated: Tue Jan 30 12:42:35 2018
    Last change: Tue Jan 30 12:26:42 2018 by root via cibadmin on node01
    
    3 nodes configured
    3 resources configured
    
    Online: [ node01 node02 node03 ]
    
    Full list of resources:
    
    clusterfence (stonith:fence_azure_arm):      Started node01
    Resource Group: g_azure
        vip_azure  (ocf::heartbeat:IPaddr2):       Started node02
        lb_azure   (ocf::heartbeat:azure-lb):      Started node02
    
    Daemon Status:
      corosync: active/disabled
      pacemaker: active/disabled
      pcsd: active/enabled
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部