You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/ConnectionContext.java
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/ConnectionPool.java
+48-35Lines changed: 48 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,6 @@ public class ConnectionPool {
77
77
privatestaticfinalLoggerLOG =
78
78
LoggerFactory.getLogger(ConnectionPool.class);
79
79
80
-
81
80
/** Configuration settings for the connection pool. */
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RBFConfigKeys.java
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,12 @@ public class RBFConfigKeys extends CommonConfigurationKeysPublic {
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs-rbf/src/site/markdown/HDFSRouterFederation.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -403,11 +403,13 @@ The RPC server to receive connections from the clients.
403
403
The Router forwards the client requests to the NameNodes.
404
404
It uses a pool of connections to reduce the latency of creating them.
405
405
406
-
| Property | Default | Description|
406
+
| Property | Default | Description|
407
407
|:---- |:---- |:---- |
408
408
| dfs.federation.router.connection.pool-size | 1 | Size of the pool of connections from the router to namenodes. |
409
409
| dfs.federation.router.connection.clean.ms | 10000 | Time interval, in milliseconds, to check if the connection pool should remove unused connections. |
410
410
| dfs.federation.router.connection.pool.clean.ms | 60000 | Time interval, in milliseconds, to check if the connection manager should remove unused connection pools. |
411
+
| dfs.federation.router.enable.multiple.socket | false | If true, ConnectionPool will use a new socket when creating a new connection for the same user. And it's best used with dfs.federation.router.max.concurrency.per.connection together. |
412
+
| dfs.federation.router.max.concurrency.per.connection | 1 | The maximum number of requests that a connection can handle concurrently. |
0 commit comments