Different Target Server Paths for HealthMonitor

Not applicable

Use Case:

Target Endpoints to health check

prod: https://live.api.org.com/v1/users/ping

test: https://private-cloud.org.com/backends/v1/users/ping

TargetEndpoint

<HTTPTargetConnection>
    <LoadBalancer>
        <Algorithm>RoundRobin</Algorithm>
        <Server name="backend"/>
        <RetryEnabled>true</RetryEnabled>
        <MaxFailures>10</MaxFailures>
    </LoadBalancer>
    <HealthMonitor>
        <IsEnabled>true</IsEnabled>
        <IntervalInSec>60</IntervalInSec>
        <HTTPMonitor>
            <Request>
                <ConnectTimeoutInSec>10</ConnectTimeoutInSec>
                <SocketReadTimeoutInSec>30</SocketReadTimeoutInSec>
                <Port>80</Port>
                <Verb>GET</Verb>
                <Path>/v1/users/ping</Path>
            </Request>
            <SuccessResponse>
                <ResponseCode>200</ResponseCode>
            </SuccessResponse>
        </HTTPMonitor>
    </HealthMonitor>
    <Path>/v1/users</Path>
    <SSLInfo>
        <Enabled>true</Enabled>
        <ClientAuthEnabled>false</ClientAuthEnabled>
        <KeyStore>keystore</KeyStore>
        <KeyAlias>keyalias</KeyAlias>
    </SSLInfo>
</HTTPTargetConnection>
Target Server
- Environment: prod
  name: backend
  host: live.api.org.com
  port: 443

- Environment: test
  name: backend
  host: private-cloud.org.com/backends #this not work!
  port: 443

How I configure Target Server "backend"?

Recalling that the HealthMonitor does not perform the flows.

0 2 733
2 REPLIES 2

Former Community Member
Not applicable

Hi @diego.lourenco if I understand your question right, you are trying to figure out how to configure the target servers? If so, target servers can be configured at the environment level. Once you log in to the Apigee Edge UI. Click on APIs/Environment Configuration. From there you can create one entry each for your "prod" & "test" environments. See attached images below. Let me know if this answers your question or if there is something else you are looking for.

screen-shot-2016-04-20-at-85913-am.png

screen-shot-2016-04-20-at-85810-am.png

I'm trying to add them the same but but I'm getting invalid url error @pbhogill