Editing a Load Balancer's Health Check Policies

Update the health check policies for a load balancer and backend set.

    1. Open the navigation menu, click Networking, and then click Load balancers. Click Load balancer. The Load balancers page appears.

    2. Select the Compartment from the list. All load balancers in that compartment are listed in tabular form.

    3. Select a State from the list to limit the load balancers displayed to that state.

    4. Select the load balancer for whose health check policies you want to edit. The load balancer's Details page appears.

    5. Click Backend sets under Resources. The Backend sets list appears. All backend sets are listed in tabular form.

    6. Click the backend set whose details you want to get. The backend set's Details page appears.

    7. Click Update health check.

      The Update health check dialog box appears.

    8. Update any of the following:

      • Protocol: Specify the protocol:

        • HTTP

        • TCP

        Configure your health check protocol to match your application or service. See Health Checks for Load Balancers for more information.

      • Port: Specify the backend server port against which to run the health check.

        You can enter the value '0' to have the health check use the backend server's traffic port.

      • Force plaintext health checks: (HTTP only) Optional. Check to send the health check to the backend server without SSL.

        This option is only available when the backend server has its protocol is set to HTTP. It has no effect when the backend server does not have SSL enabled. When SSL is disabled, health checks are always plaintext.

      • Interval in ms: Specify how frequently to run the health check, in milliseconds. The default is 10000 (10 seconds).

      • Timeout in ms: Specify the maximum time in milliseconds to wait for a reply to a health check. A health check is successful only if a reply returns within this timeout period. The default is 3000 (3 seconds).

      • Number of retries: Specify the number of retries to attempt before a backend server is considered "unhealthy." This number also applies when recovering a server to the "healthy" state. The default is 3.

      • Status code: (HTTP only) Optional. Specify the status code a healthy backend server must return.

      • URL path (URI): (HTTP only) Required. Specify a URL endpoint against which to run the health check.

      • Response body regex: (HTTP only) Optional. Provide a regular expression for parsing the response body from the backend server.

    9. Click Save changes.

  • Use the oci lb health-checker update command and required parameters to edit a load balancer's health check policies.

    oci lb health-checker update --backend-set-name backend_set_name --load-balancer-id load_balancer_id --interval-in-millis interval_in_millis --port port --protocol protocol --response-body-regex response_body_regex --retries retries  --return-code return_code --timeout-in-millis timeout_in_millis [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the UpdateHealthChecker operation to edit a health check policy of a backend set for a load balancer for a load balancer.