mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
ELB support. Client servers can remove themselves from an ELB pool if loaded
or otherwise broken. Clients won't join an ELB pool until they're stable.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#define SECTION_CLUSTER_NODES "cluster_nodes"
|
||||
#define SECTION_DATABASE_PATH "database_path"
|
||||
#define SECTION_DEBUG_LOGFILE "debug_logfile"
|
||||
#define SECTION_ELB_SUPPORT "elb_support"
|
||||
#define SECTION_FEE_DEFAULT "fee_default"
|
||||
#define SECTION_FEE_NICKNAME_CREATE "fee_nickname_create"
|
||||
#define SECTION_FEE_OFFER "fee_offer"
|
||||
@@ -253,6 +254,7 @@ Config::Config()
|
||||
NODE_DB = "sqlite";
|
||||
|
||||
LDB_IMPORT = false;
|
||||
ELB_SUPPORT = false;
|
||||
RUN_STANDALONE = false;
|
||||
START_UP = NORMAL;
|
||||
}
|
||||
@@ -389,6 +391,9 @@ void Config::load()
|
||||
}
|
||||
}
|
||||
|
||||
if (sectionSingleB(secConfig, SECTION_ELB_SUPPORT, strTemp))
|
||||
ELB_SUPPORT = boost::lexical_cast<bool>(strTemp);
|
||||
|
||||
(void) sectionSingleB(secConfig, SECTION_WEBSOCKET_IP, WEBSOCKET_IP);
|
||||
|
||||
if (sectionSingleB(secConfig, SECTION_WEBSOCKET_PORT, strTemp))
|
||||
|
||||
Reference in New Issue
Block a user