mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
MINOR: server: Macro definition for server-state
Introduces a few new macros used by server state save and application accros reloads: - currently used state server file format version - currently used state server file header fields - MIN and MAX value for version number - maximum number of fields that could be found in a server-state file - an arbitrary state-file max line length
This commit is contained in:
parent
54a4730c65
commit
41472f4d98
1 changed files with 10 additions and 0 deletions
|
|
@ -82,6 +82,16 @@ enum srv_admin {
|
|||
SRV_ADMF_DRAIN = 0x18, /* mask to check if any drain flag is present */
|
||||
};
|
||||
|
||||
/* server-state-file version */
|
||||
#define SRV_STATE_FILE_VERSION 1
|
||||
#define SRV_STATE_FILE_VERSION_MIN 1
|
||||
#define SRV_STATE_FILE_VERSION_MAX 1
|
||||
#define SRV_STATE_FILE_FIELD_NAMES "be_id be_name srv_id srv_name srv_addr srv_op_state srv_admin_state srv_uweight srv_iweight srv_time_since_last_change srv_check_status srv_check_result srv_check_health srv_check_state srv_agent_state bk_f_forced_id srv_f_forced_id"
|
||||
#define SRV_STATE_FILE_MAX_FIELDS 18
|
||||
#define SRV_STATE_FILE_NB_FIELDS_VERSION_1 18
|
||||
#define SRV_STATE_LINE_MAXLEN 512
|
||||
|
||||
|
||||
/* server flags */
|
||||
#define SRV_F_BACKUP 0x0001 /* this server is a backup server */
|
||||
#define SRV_F_MAPPORTS 0x0002 /* this server uses mapped ports */
|
||||
|
|
|
|||
Loading…
Reference in a new issue