Skip to content

balancerHealthMonitor doesn't work with 7.2.1 when balancer is defined with chain component #2951

@paulhyo

Description

@paulhyo

balancerHealthMonitor is NOT working when balancer is defined als chain:

components:
  bhm:
    balancerHealthMonitor:
      interval: 30000
      httpClientConfig:
        connection:
          timeout: 2000
          soTimeout: 2000
  cluster1:
    chain:
      - balancer:
          priorityStrategy: {}
          clusters:
            - name: cluster1
              nodes:
                - host: localhost
                  port: 8001
                  healthUrl: http://localhost:8001/healthh
                  priority: 1
                - host: localhost
                  port: 8002
                  healthUrl: http://localhost:8002/health
                  priority: 2

balancerHealthMonitor is working when balancer is defined directly in an api:

components:
  bhm:
    balancerHealthMonitor:
      interval: 30000
      httpClientConfig:
        connection:
          timeout: 2000
          soTimeout: 2000

---

api:
. ..
  flow:
   ...
    - balancer:
        priorityStrategy: { }
        clusters:
          - name: cluster1
            nodes:
              - host: localhost
                port: 8001
                healthUrl: http://localhost:8001/healthh
                priority: 1
              - host: localhost
                port: 8002
                healthUrl: http://localhost:8002/health
                priority: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions