Forum Discussion

huuuqi's avatar
huuuqi
Icon for Nimbostratus rankNimbostratus
Feb 21, 2023

Can APM be configured with two proxy addresses

I need to configure one more proxy address (10.10.10.11:10443) for the existing service. Is this correct? When I did this, the old proxy address (10.10.10.10:100443) became unusable Look forwar...
  • Gajji's avatar
    Feb 22, 2023

    When 2 proxy servers are configured, the APM will attempt to connect to the first proxy server in the list. If the first proxy server is unavailable or fails to connect, then only APM will attempt to connect to the second proxy server in the list.

  • Lucas_Thompson's avatar
    Feb 22, 2023

    I think the two "expr" statements together will cause an error. This right-side of the custom expression expects a TCL statement, or TCL code that has a "return" line in it. If you want two address in there, you should use a single statement, such as:

    return {'10.10.10.10:10443, 10.10.10.11:10443'}

    The problem though, is that I don't think we can use multiple IPs here in the VMWare view proxy address. If you're trying to load balance between two proxy servers maybe you could do something like this so that half of the users get one and half get the other:

    if {[clock seconds] % 2} { return "10.10.10.10:10443" } else { return "10.10.10.11:10443" }