You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "dlmarion (via GitHub)" <gi...@apache.org> on 2023/07/05 18:49:50 UTC
[GitHub] [accumulo] dlmarion commented on a diff in pull request #3496: Add TSERV_GROUP_NAME, ability to balance within tserver group
dlmarion commented on code in PR #3496:
URL: https://github.com/apache/accumulo/pull/3496#discussion_r1253500778
##########
core/src/main/java/org/apache/accumulo/core/spi/balancer/TabletBalancer.java:
##########
@@ -67,6 +67,15 @@ interface AssignmentParameters {
* Assigns {@code tabletId} to {@code tabletServerId}.
*/
void addAssignment(TabletId tabletId, TabletServerId tabletServerId);
+
+ /**
+ * Balancers can use this mapping in conjunction with {@link Property#TABLE_ASSIGNMENT_GROUP} to
+ * assign tablets to tablet servers within the corresponding resource group
+ *
+ * @return map of resource group name to set of TServerInstance objects
+ * @since 4.0.0
+ */
+ Map<String,Set<TabletServerId>> currentResourceGroups();
Review Comment:
The suggestion looks the same to me, but I think I understand what you are saying.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org