Support proxy process class
This commit is contained in:
parent
cd520dcf93
commit
c34385ef7b
|
@ -83,7 +83,8 @@ std::map<std::string, std::string> configForToken( std::string const& mode ) {
|
|||
|
||||
if (key == "proxies" && isInteger(value)) {
|
||||
printf("\nWarning: Proxy role is being split into GRV Proxy and Commit Proxy, now prefer configuring "
|
||||
"\"grv_proxies\" and \"commit_proxies\" separately.\n");
|
||||
"\"grv_proxies\" and \"commit_proxies\" separately. Generally we should follow that Commit proxies"
|
||||
"/GRV proxies >= 3 && 1 <= GRV proxies <= 4\n");
|
||||
int proxiesCount = atoi(value.c_str());
|
||||
if (proxiesCount < 2) {
|
||||
printf("Error: At least 2 proxies (1 GRV proxy and Commit proxy) are required.\n");
|
||||
|
|
|
@ -78,6 +78,11 @@ public:
|
|||
else if (s=="transaction") _class = TransactionClass;
|
||||
else if (s=="resolution") _class = ResolutionClass;
|
||||
else if (s=="commit_proxy") _class = CommitProxyClass;
|
||||
else if (s=="proxy") {
|
||||
_class = CommitProxyClass;
|
||||
printf("WARNING: 'proxy' machine class is deprecated and will be automatically converted "
|
||||
"'commit_proxy' machine class. Please use 'grv_proxy' or 'commit_proxy' specifically\n");
|
||||
}
|
||||
else if (s=="grv_proxy") _class = GrvProxyClass;
|
||||
else if (s=="master") _class = MasterClass;
|
||||
else if (s=="test") _class = TesterClass;
|
||||
|
@ -100,6 +105,11 @@ public:
|
|||
else if (classStr=="transaction") _class = TransactionClass;
|
||||
else if (classStr=="resolution") _class = ResolutionClass;
|
||||
else if (classStr=="commit_proxy") _class = CommitProxyClass;
|
||||
else if (classStr=="proxy") {
|
||||
_class = CommitProxyClass;
|
||||
printf("WARNING: 'proxy' machine class is deprecated and will be automatically converted "
|
||||
"'commit_proxy' machine class. Please use 'grv_proxy' or 'commit_proxy' specifically\n");
|
||||
}
|
||||
else if (classStr=="grv_proxy") _class = GrvProxyClass;
|
||||
else if (classStr=="master") _class = MasterClass;
|
||||
else if (classStr=="test") _class = TesterClass;
|
||||
|
|
Loading…
Reference in New Issue