struct tapi_haproxy_cfg_opt

Overview

HAProxy config file options. More…

#include <tapi_haproxy_cfg.h>

struct tapi_haproxy_cfg_opt {
    // fields

    tapi_job_opt_uint_t nbthread;
    bool tune_listener_multi_queue;
    bool tune_idle_pool_shared;
    tapi_job_opt_uint_t timeout_client_ms;
    tapi_job_opt_uint_t timeout_server_ms;
    tapi_job_opt_uint_t timeout_connect_ms;
    const char* name;
    tapi_haproxy_cfg_address frontend_addr;
    tapi_haproxy_cfg_shards shards;
    tapi_job_opt_uint_t shards_n;
    struct tapi_haproxy_cfg_opt::@83 frontend;
    size_t n;
    tapi_haproxy_cfg_backend* backends;
    struct tapi_haproxy_cfg_opt::@84 backend;
};

Detailed Documentation

HAProxy config file options.

Fields

tapi_job_opt_uint_t nbthread

Number of threads to run HAProxy on.

bool tune_listener_multi_queue

If true, HAProxy listener spreads the incoming traffic to all threads a frontend “bind” line is allowed to run on instead of taking them for itself.

bool tune_idle_pool_shared

If true, idle connection pools are shared between threads for a same server.

tapi_job_opt_uint_t timeout_client_ms

The maximum inactivity time on the client side (in milliseconds).

tapi_job_opt_uint_t timeout_server_ms

The maximum time for pending data staying into output buffer (in milliseconds).

tapi_job_opt_uint_t timeout_connect_ms

The maximum time to wait for a connection attempt to a server to succeed (in milliseconds).

const char* name

Frontend group name in configuration file.

Backend group name in configuration file.

tapi_haproxy_cfg_address frontend_addr

Listener address representation.

tapi_haproxy_cfg_shards shards

In multi-threaded mode, source of number of listeners on the same address. If the value is not TAPI_HAPROXY_CFG_SHARDS_NUMBER, shards_n field should be set to TAPI_JOB_OPT_UINT_UNDEF.

tapi_job_opt_uint_t shards_n

In multi-threaded mode, number of listeners on the same address. The field is ommited if it’s value is TAPI_JOB_OPT_UINT_UNDEF.

unnamed-struct frontend

Frontend listener bind configuration.

size_t n

Size of backend servers representations array.

tapi_haproxy_cfg_backend* backends

Pointer to backend servers representations array.

unnamed-struct backend

Array of backend servers representations.