Skip to main content
Manage accessibility checks
Last update:

Manage accessibility checks

У target group there can only be one availability check.

In an accessibility check, you can modify all parameters except the test type. If you want to change the test type, you can remove an existing availability check и create a new with the required type through the Openstack CLI.

Create an availability check

  1. Open the OpenStack CLI.

  2. Create an accessibility check:

    openstack loadbalancer healthmonitor create \
    --name <name> \
    --delay <delay> \
    --timeout <timeout> \
    --max-retries <max_retries> \
    --max-retries-down <max_retries_down> \
    --type <type> \
    --http-method <http_method> \
    --url-path <url_path> \
    --expected-codes <codes> \
    <pool>

    Specify:

    • <delay> — the interval between checks in seconds;

    • <timeout> — the time to wait for a response in seconds;

    • <max_retries> — number of consecutive successful accesses, after which the server is brought back online;

    • <max_retries_down> — number of unsuccessful requests in a row, after which the server is suspended;

    • <type> — type of target group protocol dependency check:

      • TCP group TCP, PING;
      • the PROXY group — TLS_HELLO, HTTP, TCP, PING;
      • UDP group — UDP_CONNECT, PING;
      • HTTP group — HTTP, TCP, PING;
    • HTTP request parameters, if you have selected the validation type HTTP:

      • --http-method <http_method> — method of verification: GET, POST, DELETE, PUT, HEAD, OPTIONS, PATCH, CONNECT, TRACE;
      • --url-path <url_path> — query path without a domain name;
      • --expected-codes <codes> — expected response codes, separated by commas;
    • <pool> — ID or name of the target group, can be viewed with openstack loadbalancer pool list

Change the availability check

  1. В control panels go to Cloud platformBalancers.

  2. Open the tab Target groups → landing page.

  3. Make sure the toggle switch Accessibility checks included.

  4. If the validation type is HTTP, you can change the URL invocation and expected response codes by clicking Modify and enter the new settings.

  5. Optional: expand unit Advanced rule settings and specify connection settings:

    • for incoming requests to the balancer — specify the connection timeout and maximum connections;
    • for requests from the balancer to servers — specify the connection timeout, inactivity timeout and TCP packet waiting timeout.
  6. Click Save.

Remove the availability check

carefully

If you remove the availability check, the balancer will direct traffic to all servers in the target group, including unavailable servers.

  1. Open the OpenStack CLI.

  2. Remove the check:

    openstack loadbalancer healthmonitor delete <health_monitor>

    Specify <health_monitor> — ID or name of the availability check, can be viewed with openstack loadbalancer healthmonitor list