HDFS-15350. Set dfs.client.failover.random.order to true as default. (#2008)
This commit is contained in:
parent
8dad38c0be
commit
928b81a533
@ -343,7 +343,7 @@ interface Failover {
|
|||||||
PREFIX + "connection.retries.on.timeouts";
|
PREFIX + "connection.retries.on.timeouts";
|
||||||
int CONNECTION_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT = 0;
|
int CONNECTION_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT = 0;
|
||||||
String RANDOM_ORDER = PREFIX + "random.order";
|
String RANDOM_ORDER = PREFIX + "random.order";
|
||||||
boolean RANDOM_ORDER_DEFAULT = false;
|
boolean RANDOM_ORDER_DEFAULT = true;
|
||||||
String RESOLVE_ADDRESS_NEEDED_KEY = PREFIX + "resolve-needed";
|
String RESOLVE_ADDRESS_NEEDED_KEY = PREFIX + "resolve-needed";
|
||||||
boolean RESOLVE_ADDRESS_NEEDED_DEFAULT = false;
|
boolean RESOLVE_ADDRESS_NEEDED_DEFAULT = false;
|
||||||
String RESOLVE_SERVICE_KEY = PREFIX + "resolver.impl";
|
String RESOLVE_SERVICE_KEY = PREFIX + "resolver.impl";
|
||||||
|
@ -4070,7 +4070,7 @@
|
|||||||
|
|
||||||
<property>
|
<property>
|
||||||
<name>dfs.client.failover.random.order</name>
|
<name>dfs.client.failover.random.order</name>
|
||||||
<value>false</value>
|
<value>true</value>
|
||||||
<description>
|
<description>
|
||||||
Determines if the failover proxies are picked in random order instead of the
|
Determines if the failover proxies are picked in random order instead of the
|
||||||
configured order. Random order may be enabled for better load balancing
|
configured order. Random order may be enabled for better load balancing
|
||||||
|
@ -78,6 +78,7 @@ public void setup() throws Exception {
|
|||||||
// transition observer back and forth
|
// transition observer back and forth
|
||||||
conf.setTimeDuration(
|
conf.setTimeDuration(
|
||||||
OBSERVER_PROBE_RETRY_PERIOD_KEY, 0, TimeUnit.MILLISECONDS);
|
OBSERVER_PROBE_RETRY_PERIOD_KEY, 0, TimeUnit.MILLISECONDS);
|
||||||
|
conf.setBoolean(HdfsClientConfigKeys.Failover.RANDOM_ORDER, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupProxyProvider(int namenodeCount) throws Exception {
|
private void setupProxyProvider(int namenodeCount) throws Exception {
|
||||||
|
Loading…
Reference in New Issue
Block a user