Skip to content

Commit

Permalink
Optimize and update some code
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliguov5 committed Feb 8, 2021
1 parent 732f6a5 commit d3bf39c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ public static synchronized ServerOptions instance() {
"auth.remote_url",
"If the address is empty, it provide auth service, " +
"otherwise it is auth client and also provide auth service " +
"through rpc forwarding.",
"through rpc forwarding. The remote url can set multiple " +
"addresses, which are linked by ','.",
null,
""
);
Expand All @@ -243,8 +244,8 @@ public static synchronized ServerOptions instance() {
public static final ConfigOption<String> RPC_SERVER_HOST =
new ConfigOption<>(
"rpc.server_host",
"The multiple hosts/ips bound by rpc server to provide " +
"services. Multiple hosts/ips link them with ',' together.",
"The hosts/ips bound by rpc server to provide " +
"services.",
disallowEmpty(),
"0.0.0.0"
);
Expand Down Expand Up @@ -280,7 +281,8 @@ public static synchronized ServerOptions instance() {
"rpc.client_load_balancer",
"The rpc client uses a load-balancing algorithm to " +
"configure the addresses of multiple rpc servers. Default " +
"value is 'consistentHash', means forwording by parameters.",
"value is 'consistentHash', means forwording by request " +
"parameters.",
allowValues("random", "localPref", "roundRobin",
"consistentHash", "weightRoundRobin"),
"consistentHash"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ server.role=master

#auth.remote_url=10.103.168.25:8899,10.103.168.25:8898,10.103.168.25:8897
rpc.server_port=8899
rpc.server_host=172.24.174.28
rpc.server_host=127.0.0.1
rpc.client_connection_timeout=8000
rpc.client_read_timeout=8000
rpc.client_retries=3
Expand Down

0 comments on commit d3bf39c

Please sign in to comment.