Enable Access Gateway load balancing in an app
Load balancing enables you to distribute the request load for an app across multiple servers.
Configure load balancing
- In the Access Gateway Admin UI console, select the Applications tab.
- Click the pencil icon in the row that contains the app to edit it.
- Select the Settings tab.
- Expand the Protected Web Resources tab.
- Select the Load Balancing option to enable it. A table appears that displays each hostname and its load-balancing weight.
- Click the pencil icon for a hostname to edit it.
- Select either HTTP or HTTPS as the URL scheme. Each protected web resource that you add inherits this scheme.
- Optional. Enable the Host Header value option and specify a value for it.
- Click Add protected web resource.
- Enter a fully qualified hostname and port combination, such as https://backendserver1.atko.com:7001.
- Enter a weight from 1 to 100. Enter 0 to specify that a host is disabled. Weights represent the percentage of requests to route to this host. If you configure one host with a weight of 2 and a second host with a weight of 1, the first host receives double the requests of the second host.
- Click Okay.
- Optional. Enable the Load Balancer Health Checks option. Health checks use GET operations to indicate that resources are functional. Resources that Okta classifies as unhealthy aren't routed new requests to them.
- Click Edit to modify the health check settings. See Health checks for load balancing.
- Click Save.
- Click Done.