You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "s0nskar (via GitHub)" <gi...@apache.org> on 2024/11/21 11:24:02 UTC

[PR] [CELEBORN-1621][CIP-11] Predefined worker tags expr via dynamic configs [celeborn]

s0nskar opened a new pull request, #2936:
URL: https://github.com/apache/celeborn/pull/2936

   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     - Make sure the PR title start w/ a JIRA ticket, e.g. '[CELEBORN-XXXX] Your PR title ...'.
     - Be sure to keep the PR description updated to reflect all changes.
     - Please write your PR title to summarize what this PR proposes.
     - If possible, provide a concise example to reproduce the issue for a faster review.
   -->
   
   ### What changes were proposed in this pull request?
   
   Support predefined tags expression for tenant and users via dynamic config. Using this admin can configure tags for users/tenants and give permission to special users to provide custom tags expression.
   
   ### Why are the changes needed?
   
   https://cwiki.apache.org/confluence/display/CELEBORN/CIP-11+Supporting+Tags+in+Celeborn
   
   ### Does this PR introduce _any_ user-facing change?
   
   NA
   
   ### How was this patch tested?
   UTs
   


-- 
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: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1621][CIP-11] Predefined worker tags expr via dynamic configs [celeborn]

Posted by "FMX (via GitHub)" <gi...@apache.org>.
FMX commented on code in PR #2936:
URL: https://github.com/apache/celeborn/pull/2936#discussion_r1858421661


##########
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala:
##########
@@ -5970,16 +5971,27 @@ object CelebornConf extends Logging {
       .booleanConf
       .createWithDefault(false)
 
-  val CLIENT_TAGS_EXPR: ConfigEntry[String] =
-    buildConf("celeborn.client.tagsExpr")
-      .categories("client")
+  val TAGS_EXPR: ConfigEntry[String] =
+    buildConf("celeborn.tags.tagsExpr")
+      .categories("tags", "master", "client")

Review Comment:
   There is no such thing as called "tag" in celeborn config items. The category is a component, for example, there is "client".



-- 
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: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1621][CIP-11] Predefined worker tags expr via dynamic configs [celeborn]

Posted by "s0nskar (via GitHub)" <gi...@apache.org>.
s0nskar commented on PR #2936:
URL: https://github.com/apache/celeborn/pull/2936#issuecomment-2496933872

   Test failures seems unrelated.


-- 
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: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1621][CIP-11] Predefined worker tags expr via dynamic configs [celeborn]

Posted by "FMX (via GitHub)" <gi...@apache.org>.
FMX commented on code in PR #2936:
URL: https://github.com/apache/celeborn/pull/2936#discussion_r1858422447


##########
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala:
##########
@@ -5970,16 +5971,27 @@ object CelebornConf extends Logging {
       .booleanConf
       .createWithDefault(false)
 
-  val CLIENT_TAGS_EXPR: ConfigEntry[String] =
-    buildConf("celeborn.client.tagsExpr")
-      .categories("client")
+  val TAGS_EXPR: ConfigEntry[String] =
+    buildConf("celeborn.tags.tagsExpr")
+      .categories("tags", "master", "client")
       .version("0.6.0")
       .doc("Expression to filter workers by tags. The expression is a comma-separated list of " +
         "tags. The expression is evaluated as a logical AND of all tags. For example, " +
         "`prod,high-io` filters workers that have both the `prod` and `high-io` tags.")
+      .dynamic
       .stringConf
       .createWithDefault("")
 
+  val PREFER_CLIENT_TAGS_EXPR: ConfigEntry[Boolean] =
+    buildConf("celeborn.tags.preferClientTagsExpr")
+      .categories("tags", "master")

Review Comment:
   ditto



-- 
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: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1621][CIP-11] Predefined worker tags expr via dynamic configs [celeborn]

Posted by "FMX (via GitHub)" <gi...@apache.org>.
FMX commented on PR #2936:
URL: https://github.com/apache/celeborn/pull/2936#issuecomment-2497044356

   I'll review this PR within this week.


-- 
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: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1621][CIP-11] Predefined worker tags expr via dynamic configs [celeborn]

Posted by "FMX (via GitHub)" <gi...@apache.org>.
FMX closed pull request #2936: [CELEBORN-1621][CIP-11] Predefined worker tags expr via dynamic configs
URL: https://github.com/apache/celeborn/pull/2936


-- 
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: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org