HDFS-14750. RBF: Support dynamic handler allocation in routers#4199
HDFS-14750. RBF: Support dynamic handler allocation in routers#4199ferhui merged 7 commits intoapache:trunkfrom kokonguyen191:HDFS-14750
Conversation
|
@kokonguyen191 Thanks. It's a good feature. |
ferhui
left a comment
There was a problem hiding this comment.
Some comments, please take a look, thanks!
.../apache/hadoop/hdfs/server/federation/fairness/DynamicRouterRpcFairnessPolicyController.java
Outdated
Show resolved
Hide resolved
...che/hadoop/hdfs/server/federation/fairness/TestDynamicRouterRpcFairnessPolicyController.java
Show resolved
Hide resolved
.../apache/hadoop/hdfs/server/federation/fairness/DynamicRouterRpcFairnessPolicyController.java
Outdated
Show resolved
Hide resolved
...che/hadoop/hdfs/server/federation/fairness/TestDynamicRouterRpcFairnessPolicyController.java
Outdated
Show resolved
Hide resolved
|
It seems that we can not know how many handlers are assigned to every nameservice after resizing. It's better to update the configuration or add metrics, right? |
...op-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RBFConfigKeys.java
Outdated
Show resolved
Hide resolved
Nvm it's only for available handlers. Adding one for handler capacity per ns. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
Failed test is not related. For the issue with total number of permits not staying constant, it will be initial total handler count <= total number of permits <= initial total handler count + number of namespaces, which seems to me to be an acceptable range of error for performance purposes. |
|
@kokonguyen191 Thanks for updates, please take a look at the checkstyle and can raise a new ticket to add document referring to static controller. |
|
🎊 +1 overall
This message was automatically generated. |
Description of PR
Add a
DynamicRouterRpcFairnessPolicyControllerclass that resizes permit capacity periodically based on traffic to namespaces.How was this patch tested?
Unit tests and local deployment.
For code changes: