[ 
https://issues.apache.org/jira/browse/GOBBLIN-1650?focusedWorklogId=774287&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-774287
 ]

ASF GitHub Bot logged work on GOBBLIN-1650:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/May/22 23:17
            Start Date: 24/May/22 23:17
    Worklog Time Spent: 10m 
      Work Description: Will-Lo commented on code in PR #3511:
URL: https://github.com/apache/gobblin/pull/3511#discussion_r881052576


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/UserQuotaManager.java:
##########
@@ -194,4 +217,12 @@ private int getQuotaForUser(String user) {
     return this.perUserQuota.getOrDefault(user, defaultQuota);
   }
 
+  private int getQuotaForFlowGroup(String flowGroup) {
+    return this.perFlowGroupQuota.getOrDefault(flowGroup, defaultQuota);
+  }
+
+  public boolean isDagCurrentlyRunning(Dag.DagNode<JobExecutionPlan> dagNode) {

Review Comment:
   Oh good catch, I forgot to use this function in a retry scenario. I can add 
a test covering that case too.





Issue Time Tracking
-------------------

    Worklog Id:     (was: 774287)
    Time Spent: 1h 20m  (was: 1h 10m)

> Allow GaaS to enforce quotas by flowgroup
> -----------------------------------------
>
>                 Key: GOBBLIN-1650
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1650
>             Project: Apache Gobblin
>          Issue Type: New Feature
>            Reporter: William Lo
>            Priority: Major
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Certain GaaS flows can have a large number of flows that can cause 
> instability on dependent services. We want to be able to control the 
> throughput of flows from a flowgroup granularity on top of a user 
> granularity. We keep the quota configuration separate as there can be many 
> users submitting flows to the same flowgroup.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to