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
@@ -135,6 +135,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
@@ -416,11 +416,13 @@ The RPC server to receive connections from the clients.
416
416
The Router forwards the client requests to the NameNodes.
417
417
It uses a pool of connections to reduce the latency of creating them.
418
418
419
-
| Property | Default | Description|
419
+
| Property | Default | Description|
420
420
|:---- |:---- |:---- |
421
421
| dfs.federation.router.connection.pool-size | 1 | Size of the pool of connections from the router to namenodes. |
422
422
| dfs.federation.router.connection.clean.ms | 10000 | Time interval, in milliseconds, to check if the connection pool should remove unused connections. |
423
423
| dfs.federation.router.connection.pool.clean.ms | 60000 | Time interval, in milliseconds, to check if the connection manager should remove unused connection pools. |
424
+
| 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. |
425
+
| dfs.federation.router.max.concurrency.per.connection | 1 | The maximum number of requests that a connection can handle concurrently. |
0 commit comments