To do this you should use the setting. The following is an example configuration:
You can then inject a client with @Client("foo")
and it will use the above configuration to load balance between the two configured servers.
Enabling Health Checking
http:
foo:
health-check-interval: 15s (2)
health-check-uri: /health (3)
1 | Whether to health check the service |
2 | The interval to wait between checks |
3 | The URI to send the health check request to |