You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "praveenc7 (via GitHub)" <gi...@apache.org> on 2025/06/05 18:18:10 UTC
[PR] [Query Resource Isolation] Workload Scheduler [pinot]
praveenc7 opened a new pull request, #16018:
URL: https://github.com/apache/pinot/pull/16018
## Summary
This Scheduler is an improvement over Binary Workload Scheduler, that does resource check on query admission and also have support to borrow resources
## Testing done
TODO
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] [Query Resource Isolation] Workload Scheduler [pinot]
Posted by "vvivekiyer (via GitHub)" <gi...@apache.org>.
vvivekiyer commented on code in PR #16018:
URL: https://github.com/apache/pinot/pull/16018#discussion_r2240553850
##########
pinot-spi/src/main/java/org/apache/pinot/core/accounting/WorkloadBudgetManager.java:
##########
@@ -47,10 +47,36 @@ public WorkloadBudgetManager(PinotConfiguration config) {
}
_enforcementWindowMs = config.getProperty(CommonConstants.Accounting.CONFIG_OF_WORKLOAD_ENFORCEMENT_WINDOW_MS,
CommonConstants.Accounting.DEFAULT_WORKLOAD_ENFORCEMENT_WINDOW_MS);
+ initSecondaryWorkloadBudget(config);
Review Comment:
As discussed in earlier comments, we should keep this optional. Not all users will be migrating from BinaryWorkloadScheduler. If DEFAULT_SECONDARY_WORKLOAD_NAME is not populated, maybe we can skip initializing?
##########
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java:
##########
@@ -125,6 +129,7 @@ public BaseBrokerRequestHandler(PinotConfiguration config, String brokerId, Brok
_queriesById = null;
_clientQueryIds = null;
}
+ _resourceUsageAccountant = resourceUsageAccountant;
Review Comment:
Why do we need this change?
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] [Query Resource Isolation] Workload Scheduler [pinot]
Posted by "vvivekiyer (via GitHub)" <gi...@apache.org>.
vvivekiyer commented on code in PR #16018:
URL: https://github.com/apache/pinot/pull/16018#discussion_r2219885294
##########
pinot-common/src/main/java/org/apache/pinot/common/metrics/ServerMeter.java:
##########
@@ -212,7 +212,9 @@ public enum ServerMeter implements AbstractMetrics.Meter {
/**
* Approximate heap bytes used by the mutable JSON index at the time of index close.
*/
- MUTABLE_JSON_INDEX_MEMORY_USAGE("bytes", false);
+ MUTABLE_JSON_INDEX_MEMORY_USAGE("bytes", false),
+ // Workload Budget exceeded counter
+ WORKLOAD_BUDGET_EXCEEDED("workloadBudgetExceeded", false, "Number of times workload budget exceeded");
Review Comment:
I think it makes sense to have this metric on the broker too. That way we can get a count of the number of queries that failed because of exceeding workload budget. Would be good to see both broker-host level and <broker, workload> level metrics.
##########
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java:
##########
@@ -199,6 +203,18 @@ public BrokerResponse handleRequest(JsonNode request, @Nullable SqlNodeAndOption
return new BrokerResponseNative(QueryErrorCode.TOO_MANY_REQUESTS, errorMessage);
}
+ String workloadName = sqlNodeAndOptions.getOptions().get(Broker.Request.QueryOptionKey.WORKLOAD_NAME);
+ boolean isSecondary = Boolean.parseBoolean(sqlNodeAndOptions.getOptions()
+ .getOrDefault(Broker.Request.QueryOptionKey.IS_SECONDARY_WORKLOAD, "false"));
+ if (workloadName != null && _workloadBudgetManager != null
+ && !_workloadBudgetManager.canAdmitQuery(workloadName, isSecondary)) {
+ String errorMessage = "Request " + requestId + ": " + query + " exceeds query quota for workload: "
+ + workloadName;
+ LOGGER.info(errorMessage);
+ requestContext.setErrorCode(QueryErrorCode.WORKLOAD_QUOTA_EXCEEDED);
+ return new BrokerResponseNative(QueryErrorCode.WORKLOAD_QUOTA_EXCEEDED, errorMessage);
Review Comment:
Is this admission control on the broker even needed? Can't we just rely on the Accountant to catch these kill them?
##########
pinot-spi/src/main/java/org/apache/pinot/spi/exception/QueryErrorCode.java:
##########
@@ -52,6 +52,7 @@ public enum QueryErrorCode {
BROKER_REQUEST_SEND(425, "BrokerRequestSend"),
SERVER_NOT_RESPONDING(427, "ServerNotResponding"),
TOO_MANY_REQUESTS(429, "TooManyRequests"),
+ WORKLOAD_QUOTA_EXCEEDED(429, "WorkloadQuotaExceeded"),
Review Comment:
Can we also change all other places to propagate this error code when terminating queries because of Workload exhaustion - in the accountant, etc.
##########
pinot-spi/src/main/java/org/apache/pinot/core/accounting/WorkloadBudgetManager.java:
##########
@@ -47,10 +48,32 @@ public WorkloadBudgetManager(PinotConfiguration config) {
}
_enforcementWindowMs = config.getProperty(CommonConstants.Accounting.CONFIG_OF_WORKLOAD_ENFORCEMENT_WINDOW_MS,
CommonConstants.Accounting.DEFAULT_WORKLOAD_ENFORCEMENT_WINDOW_MS);
+ initSecondaryWorkloadBudget(config);
startBudgetResetTask();
LOGGER.info("WorkloadBudgetManager initialized with enforcement window: {}ms", _enforcementWindowMs);
}
+ /**
+ * This budget is primarily meant to be used for queries that need to be issued in a low priority manner.
+ * This is fixed budget allocated during host startup and used across all secondary queries.
+ */
+ private void initSecondaryWorkloadBudget(PinotConfiguration config) {
+ _secondaryWorkloadName = config.getProperty(
Review Comment:
Let us make this optional as not all users would be migrating from BinaryWorkloadScheduler?
##########
pinot-spi/src/main/java/org/apache/pinot/core/accounting/WorkloadBudgetManager.java:
##########
@@ -47,10 +48,32 @@ public WorkloadBudgetManager(PinotConfiguration config) {
}
_enforcementWindowMs = config.getProperty(CommonConstants.Accounting.CONFIG_OF_WORKLOAD_ENFORCEMENT_WINDOW_MS,
CommonConstants.Accounting.DEFAULT_WORKLOAD_ENFORCEMENT_WINDOW_MS);
+ initSecondaryWorkloadBudget(config);
startBudgetResetTask();
LOGGER.info("WorkloadBudgetManager initialized with enforcement window: {}ms", _enforcementWindowMs);
}
+ /**
+ * This budget is primarily meant to be used for queries that need to be issued in a low priority manner.
+ * This is fixed budget allocated during host startup and used across all secondary queries.
+ */
+ private void initSecondaryWorkloadBudget(PinotConfiguration config) {
+ _secondaryWorkloadName = config.getProperty(
+ CommonConstants.Accounting.CONFIG_OF_SECONDARY_WORKLOAD_NAME,
+ CommonConstants.Accounting.DEFAULT_SECONDARY_WORKLOAD_NAME);
+
+ double secondaryCpuPercentage = config.getProperty(
+ CommonConstants.Accounting.CONFIG_OF_SECONDARY_WORKLOAD_CPU_PERCENTAGE,
+ CommonConstants.Accounting.DEFAULT_SECONDARY_WORKLOAD_CPU_PERCENTAGE);
+
+ // The Secondary CPU budget is based on the CPU percentage allocated for secondary workload.
+ // The memory budget is set to Long.MAX_VALUE for now, since we do not have a specific memory budget for
+ // secondary queries.
+ long secondaryCpuBudget = (long) (secondaryCpuPercentage * _enforcementWindowMs * 100_000L);
Review Comment:
This computation seems off.
Considering that there are 50 threads. If secondaryCpuPercentage=10, you'll be allocating 20% of CPU to secondary queries?
##########
pinot-spi/src/main/java/org/apache/pinot/core/accounting/WorkloadBudgetManager.java:
##########
@@ -145,6 +168,43 @@ private void startBudgetResetTask() {
}, _enforcementWindowMs, _enforcementWindowMs, TimeUnit.MILLISECONDS);
}
+ /**
+ * Determines whether a query for the given workload can be admitted under CPU-only budgets.
+ *
+ * <p>Admission rules:
+ * <ol>
+ * <li>If the manager is disabled or no budget exists for the workload, always admit.</li>
+ * <li>If CPU budget remains above zero, admit immediately.</li>
+ * <li>Otherwise, reject (return false).</li>
+ * </ol>
+ *
+ * <p>Note: This method currently uses a strict check, where CPU and memory budgets must be above zero.
+ * This may be relaxed in the future to allow for a percentage of other remaining budget to be used. At that point,
+ * we can have different admission policies like: Strict, Stealing, etc.
+ *
+ * @param workload the workload identifier to check budget for
+ * @return true if the query may be accepted; false if budget is insufficient
+ */
+ public boolean canAdmitQuery(String workload, boolean isSecondary) {
Review Comment:
canAdmitQuery should only take workload as the parameter. The workload name will be equal to "defaultSecondary" if the query belongs to secondary workload. And as a part of the init function, we would have already allocated budget for it. This will also eliminate the need for a member variable _secondaryWorkloadName.
##########
pinot-core/src/main/java/org/apache/pinot/core/query/scheduler/resources/WorkloadResourceManager.java:
##########
@@ -0,0 +1,56 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.pinot.core.query.scheduler.resources;
+
+import org.apache.pinot.core.query.request.ServerQueryRequest;
+import org.apache.pinot.core.query.scheduler.SchedulerGroupAccountant;
+import org.apache.pinot.spi.accounting.ThreadResourceUsageAccountant;
+import org.apache.pinot.spi.env.PinotConfiguration;
+
+public class WorkloadResourceManager extends ResourceManager {
Review Comment:
I don't think this class is necessary. We can just use the UnboundedResourceManager for now. The only thing this is doing differently is setting thread limits based on the policy. But why is that needed here?
##########
pinot-core/src/main/java/org/apache/pinot/core/query/scheduler/WorkloadScheduler.java:
##########
@@ -0,0 +1,106 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.pinot.core.query.scheduler;
+
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListenableFutureTask;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.atomic.LongAccumulator;
+import org.apache.pinot.common.metrics.ServerMeter;
+import org.apache.pinot.common.metrics.ServerMetrics;
+import org.apache.pinot.common.metrics.ServerQueryPhase;
+import org.apache.pinot.common.utils.config.QueryOptionsUtils;
+import org.apache.pinot.core.accounting.WorkloadBudgetManager;
+import org.apache.pinot.core.query.executor.QueryExecutor;
+import org.apache.pinot.core.query.request.ServerQueryRequest;
+import org.apache.pinot.core.query.scheduler.resources.QueryExecutorService;
+import org.apache.pinot.core.query.scheduler.resources.WorkloadResourceManager;
+import org.apache.pinot.spi.accounting.ThreadResourceUsageAccountant;
+import org.apache.pinot.spi.env.PinotConfiguration;
+import org.apache.pinot.spi.query.QueryThreadContext;
+import org.apache.pinot.spi.trace.Tracing;
+import org.apache.pinot.spi.utils.builder.TableNameBuilder;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/**
+ * Scheduler implementation that supports query admission control based on workload-specific budgets.
+ *
+ * <p>This class integrates with the {@link WorkloadBudgetManager} to apply CPU and memory budget enforcement
+ * for different workloads, including primary and secondary workloads.</p>
+ *
+ * <p>Secondary workload configuration is used for queries tagged as "secondary". Queries that exceed their budget
+ * will be rejected.</p>
+ *
+ */
+public class WorkloadScheduler extends QueryScheduler {
+
+ private static final Logger LOGGER = LoggerFactory.getLogger(WorkloadScheduler.class);
+
+ private final WorkloadBudgetManager _workloadBudgetManager;
+ private final ServerMetrics _serverMetrics;
+
+ public WorkloadScheduler(PinotConfiguration config, QueryExecutor queryExecutor, ServerMetrics metrics,
+ LongAccumulator latestQueryTime, ThreadResourceUsageAccountant resourceUsageAccountant) {
+ super(config, queryExecutor, new WorkloadResourceManager(config, resourceUsageAccountant), metrics,
+ latestQueryTime);
+ _serverMetrics = metrics;
+ _workloadBudgetManager = Tracing.ThreadAccountantOps.getWorkloadBudgetManager();
+ }
+
+ @Override
+ public String name() {
+ return "WorkloadScheduler";
+ }
+
+ @Override
+ public ListenableFuture<byte[]> submit(ServerQueryRequest queryRequest) {
+ if (!_isRunning) {
+ return shuttingDown(queryRequest);
+ }
+
+ boolean isSecondary = QueryOptionsUtils.isSecondaryWorkload(queryRequest.getQueryContext().getQueryOptions());
Review Comment:
if isSecondary is true, use the configs here to populate workload name. Add a comment mentioning that this is needed for backward compatibility when migrating from BinaryWorkloadScheduler to WorkloadScheduler.
##########
pinot-core/src/main/java/org/apache/pinot/core/query/scheduler/WorkloadScheduler.java:
##########
@@ -0,0 +1,106 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.pinot.core.query.scheduler;
+
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListenableFutureTask;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.atomic.LongAccumulator;
+import org.apache.pinot.common.metrics.ServerMeter;
+import org.apache.pinot.common.metrics.ServerMetrics;
+import org.apache.pinot.common.metrics.ServerQueryPhase;
+import org.apache.pinot.common.utils.config.QueryOptionsUtils;
+import org.apache.pinot.core.accounting.WorkloadBudgetManager;
+import org.apache.pinot.core.query.executor.QueryExecutor;
+import org.apache.pinot.core.query.request.ServerQueryRequest;
+import org.apache.pinot.core.query.scheduler.resources.QueryExecutorService;
+import org.apache.pinot.core.query.scheduler.resources.WorkloadResourceManager;
+import org.apache.pinot.spi.accounting.ThreadResourceUsageAccountant;
+import org.apache.pinot.spi.env.PinotConfiguration;
+import org.apache.pinot.spi.query.QueryThreadContext;
+import org.apache.pinot.spi.trace.Tracing;
+import org.apache.pinot.spi.utils.builder.TableNameBuilder;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/**
+ * Scheduler implementation that supports query admission control based on workload-specific budgets.
+ *
+ * <p>This class integrates with the {@link WorkloadBudgetManager} to apply CPU and memory budget enforcement
+ * for different workloads, including primary and secondary workloads.</p>
+ *
+ * <p>Secondary workload configuration is used for queries tagged as "secondary". Queries that exceed their budget
+ * will be rejected.</p>
+ *
+ */
+public class WorkloadScheduler extends QueryScheduler {
+
+ private static final Logger LOGGER = LoggerFactory.getLogger(WorkloadScheduler.class);
+
+ private final WorkloadBudgetManager _workloadBudgetManager;
+ private final ServerMetrics _serverMetrics;
+
+ public WorkloadScheduler(PinotConfiguration config, QueryExecutor queryExecutor, ServerMetrics metrics,
+ LongAccumulator latestQueryTime, ThreadResourceUsageAccountant resourceUsageAccountant) {
+ super(config, queryExecutor, new WorkloadResourceManager(config, resourceUsageAccountant), metrics,
+ latestQueryTime);
+ _serverMetrics = metrics;
+ _workloadBudgetManager = Tracing.ThreadAccountantOps.getWorkloadBudgetManager();
+ }
+
+ @Override
+ public String name() {
+ return "WorkloadScheduler";
+ }
+
+ @Override
+ public ListenableFuture<byte[]> submit(ServerQueryRequest queryRequest) {
+ if (!_isRunning) {
+ return shuttingDown(queryRequest);
+ }
+
+ boolean isSecondary = QueryOptionsUtils.isSecondaryWorkload(queryRequest.getQueryContext().getQueryOptions());
+ String workloadName = QueryOptionsUtils.getWorkloadName(queryRequest.getQueryContext().getQueryOptions());
+ if (!_workloadBudgetManager.canAdmitQuery(workloadName, isSecondary)) {
+ String tableName = TableNameBuilder.extractRawTableName(queryRequest.getTableNameWithType());
Review Comment:
Explore queueing the requests here (until a certain threshold is reached) and admit the queries. This can be a TODO for later but do add a comment.
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] [Query Resource Isolation] Workload Scheduler [pinot]
Posted by "praveenc7 (via GitHub)" <gi...@apache.org>.
praveenc7 commented on PR #16018:
URL: https://github.com/apache/pinot/pull/16018#issuecomment-3422870057
> Hey, is there documentation added for this feature?
@Jackie-Jiang Yes the plan is to add documentation in the coming weeks. We are currently running extensive performance testing to understand accuracy, overhead of the feature. Once that is complete will add documentation on the end-to-end feature usage
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] [Query Resource Isolation] Workload Scheduler [pinot]
Posted by "vvivekiyer (via GitHub)" <gi...@apache.org>.
vvivekiyer merged PR #16018:
URL: https://github.com/apache/pinot/pull/16018
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] [Query Resource Isolation] Workload Scheduler [pinot]
Posted by "siddharthteotia (via GitHub)" <gi...@apache.org>.
siddharthteotia commented on code in PR #16018:
URL: https://github.com/apache/pinot/pull/16018#discussion_r2206480469
##########
pinot-core/src/test/java/org/apache/pinot/core/accounting/WorkloadBudgetManagerTest.java:
##########
@@ -115,4 +115,31 @@ void testConcurrentTryChargeSingleWorkload() throws InterruptedException {
assertEquals(initialMemBudget - totalMemCharged, remaining._memoryRemaining,
"Memory budget mismatch after concurrent updates");
}
+
+ @Test
+ void testCanAdmitQuery() {
Review Comment:
Are these tests enough to get good coverage of all scenarios / combinations ? How are we validating that ?
Do we have a theoretical version / model of different permutations and combinations that we are using to test the functionality ?
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] [Query Resource Isolation] Workload Scheduler [pinot]
Posted by "siddharthteotia (via GitHub)" <gi...@apache.org>.
siddharthteotia commented on code in PR #16018:
URL: https://github.com/apache/pinot/pull/16018#discussion_r2206483093
##########
pinot-core/src/test/java/org/apache/pinot/core/accounting/WorkloadBudgetManagerTest.java:
##########
@@ -115,4 +115,31 @@ void testConcurrentTryChargeSingleWorkload() throws InterruptedException {
assertEquals(initialMemBudget - totalMemCharged, remaining._memoryRemaining,
"Memory budget mismatch after concurrent updates");
}
+
+ @Test
+ void testCanAdmitQuery() {
Review Comment:
Have we written a unit or integration test to mimic the steady state pattern in PROD ?
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] [Query Resource Isolation] Workload Scheduler [pinot]
Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on PR #16018:
URL: https://github.com/apache/pinot/pull/16018#issuecomment-3383497097
Hey, is there documentation added for this feature?
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] [Query Resource Isolation] Workload Scheduler [pinot]
Posted by "vvivekiyer (via GitHub)" <gi...@apache.org>.
vvivekiyer commented on code in PR #16018:
URL: https://github.com/apache/pinot/pull/16018#discussion_r2232169363
##########
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java:
##########
@@ -199,6 +203,18 @@ public BrokerResponse handleRequest(JsonNode request, @Nullable SqlNodeAndOption
return new BrokerResponseNative(QueryErrorCode.TOO_MANY_REQUESTS, errorMessage);
}
+ String workloadName = sqlNodeAndOptions.getOptions().get(Broker.Request.QueryOptionKey.WORKLOAD_NAME);
+ boolean isSecondary = Boolean.parseBoolean(sqlNodeAndOptions.getOptions()
+ .getOrDefault(Broker.Request.QueryOptionKey.IS_SECONDARY_WORKLOAD, "false"));
+ if (workloadName != null && _workloadBudgetManager != null
+ && !_workloadBudgetManager.canAdmitQuery(workloadName, isSecondary)) {
+ String errorMessage = "Request " + requestId + ": " + query + " exceeds query quota for workload: "
+ + workloadName;
+ LOGGER.info(errorMessage);
+ requestContext.setErrorCode(QueryErrorCode.WORKLOAD_QUOTA_EXCEEDED);
+ return new BrokerResponseNative(QueryErrorCode.WORKLOAD_QUOTA_EXCEEDED, errorMessage);
Review Comment:
At this point the accountant is also enforcing budget. So this is not needed as discussed offline.
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] [Query Resource Isolation] Workload Scheduler [pinot]
Posted by "praveenc7 (via GitHub)" <gi...@apache.org>.
praveenc7 commented on code in PR #16018:
URL: https://github.com/apache/pinot/pull/16018#discussion_r2209156109
##########
pinot-core/src/test/java/org/apache/pinot/core/accounting/WorkloadBudgetManagerTest.java:
##########
@@ -115,4 +115,31 @@ void testConcurrentTryChargeSingleWorkload() throws InterruptedException {
assertEquals(initialMemBudget - totalMemCharged, remaining._memoryRemaining,
"Memory budget mismatch after concurrent updates");
}
+
+ @Test
+ void testCanAdmitQuery() {
Review Comment:
For the WorkloadBudget admission logic, I’ve tested all possible scenarios to ensure queries are either admitted or rejected correctly. Additional test cases for WorkloadBudgetManager were also contributed by @vvivekiyer in his earlier PR.
We further validated this on a production host by deploying a binary and confirmed the behavior aligns with expectations.
This implementation uses most of the scheduling logic handled by other schedulers in this class. Further we plan to include it in our comprehensive end-to-end validation as part of the QRI testing plan.
Since the scheduler usage is gated by a config flag, it will remain disabled until validation is complete.
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] [Query Resource Isolation] Workload Scheduler [pinot]
Posted by "praveenc7 (via GitHub)" <gi...@apache.org>.
praveenc7 commented on code in PR #16018:
URL: https://github.com/apache/pinot/pull/16018#discussion_r2241140762
##########
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java:
##########
@@ -125,6 +129,7 @@ public BaseBrokerRequestHandler(PinotConfiguration config, String brokerId, Brok
_queriesById = null;
_clientQueryIds = null;
}
+ _resourceUsageAccountant = resourceUsageAccountant;
Review Comment:
This is not from my change, let me cleanup the merge
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] [Query Resource Isolation] Workload Scheduler [pinot]
Posted by "vvivekiyer (via GitHub)" <gi...@apache.org>.
vvivekiyer commented on code in PR #16018:
URL: https://github.com/apache/pinot/pull/16018#discussion_r2232169663
##########
pinot-common/src/main/java/org/apache/pinot/common/metrics/ServerMeter.java:
##########
@@ -212,7 +212,9 @@ public enum ServerMeter implements AbstractMetrics.Meter {
/**
* Approximate heap bytes used by the mutable JSON index at the time of index close.
*/
- MUTABLE_JSON_INDEX_MEMORY_USAGE("bytes", false);
+ MUTABLE_JSON_INDEX_MEMORY_USAGE("bytes", false),
+ // Workload Budget exceeded counter
+ WORKLOAD_BUDGET_EXCEEDED("workloadBudgetExceeded", false, "Number of times workload budget exceeded");
Review Comment:
Let's add table level as well.
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] [Query Resource Isolation] Workload Scheduler [pinot]
Posted by "praveenc7 (via GitHub)" <gi...@apache.org>.
praveenc7 commented on code in PR #16018:
URL: https://github.com/apache/pinot/pull/16018#discussion_r2220541322
##########
pinot-common/src/main/java/org/apache/pinot/common/metrics/ServerMeter.java:
##########
@@ -212,7 +212,9 @@ public enum ServerMeter implements AbstractMetrics.Meter {
/**
* Approximate heap bytes used by the mutable JSON index at the time of index close.
*/
- MUTABLE_JSON_INDEX_MEMORY_USAGE("bytes", false);
+ MUTABLE_JSON_INDEX_MEMORY_USAGE("bytes", false),
+ // Workload Budget exceeded counter
+ WORKLOAD_BUDGET_EXCEEDED("workloadBudgetExceeded", false, "Number of times workload budget exceeded");
Review Comment:
Agree, let me add it there and make it both workload level and global level. Do you think table-level make sense here? I see an value in cases where multiple table share the same workload, providing insights into table-level exhausation
##########
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java:
##########
@@ -199,6 +203,18 @@ public BrokerResponse handleRequest(JsonNode request, @Nullable SqlNodeAndOption
return new BrokerResponseNative(QueryErrorCode.TOO_MANY_REQUESTS, errorMessage);
}
+ String workloadName = sqlNodeAndOptions.getOptions().get(Broker.Request.QueryOptionKey.WORKLOAD_NAME);
+ boolean isSecondary = Boolean.parseBoolean(sqlNodeAndOptions.getOptions()
+ .getOrDefault(Broker.Request.QueryOptionKey.IS_SECONDARY_WORKLOAD, "false"));
+ if (workloadName != null && _workloadBudgetManager != null
+ && !_workloadBudgetManager.canAdmitQuery(workloadName, isSecondary)) {
+ String errorMessage = "Request " + requestId + ": " + query + " exceeds query quota for workload: "
+ + workloadName;
+ LOGGER.info(errorMessage);
+ requestContext.setErrorCode(QueryErrorCode.WORKLOAD_QUOTA_EXCEEDED);
+ return new BrokerResponseNative(QueryErrorCode.WORKLOAD_QUOTA_EXCEEDED, errorMessage);
Review Comment:
We can but, isn't it good to fast exit and not waste resources if the query is eventually getting killed?
##########
pinot-spi/src/main/java/org/apache/pinot/core/accounting/WorkloadBudgetManager.java:
##########
@@ -145,6 +168,43 @@ private void startBudgetResetTask() {
}, _enforcementWindowMs, _enforcementWindowMs, TimeUnit.MILLISECONDS);
}
+ /**
+ * Determines whether a query for the given workload can be admitted under CPU-only budgets.
+ *
+ * <p>Admission rules:
+ * <ol>
+ * <li>If the manager is disabled or no budget exists for the workload, always admit.</li>
+ * <li>If CPU budget remains above zero, admit immediately.</li>
+ * <li>Otherwise, reject (return false).</li>
+ * </ol>
+ *
+ * <p>Note: This method currently uses a strict check, where CPU and memory budgets must be above zero.
+ * This may be relaxed in the future to allow for a percentage of other remaining budget to be used. At that point,
+ * we can have different admission policies like: Strict, Stealing, etc.
+ *
+ * @param workload the workload identifier to check budget for
+ * @return true if the query may be accepted; false if budget is insufficient
+ */
+ public boolean canAdmitQuery(String workload, boolean isSecondary) {
Review Comment:
Removed this
##########
pinot-spi/src/main/java/org/apache/pinot/core/accounting/WorkloadBudgetManager.java:
##########
@@ -47,10 +48,32 @@ public WorkloadBudgetManager(PinotConfiguration config) {
}
_enforcementWindowMs = config.getProperty(CommonConstants.Accounting.CONFIG_OF_WORKLOAD_ENFORCEMENT_WINDOW_MS,
CommonConstants.Accounting.DEFAULT_WORKLOAD_ENFORCEMENT_WINDOW_MS);
+ initSecondaryWorkloadBudget(config);
startBudgetResetTask();
LOGGER.info("WorkloadBudgetManager initialized with enforcement window: {}ms", _enforcementWindowMs);
}
+ /**
+ * This budget is primarily meant to be used for queries that need to be issued in a low priority manner.
+ * This is fixed budget allocated during host startup and used across all secondary queries.
+ */
+ private void initSecondaryWorkloadBudget(PinotConfiguration config) {
+ _secondaryWorkloadName = config.getProperty(
+ CommonConstants.Accounting.CONFIG_OF_SECONDARY_WORKLOAD_NAME,
+ CommonConstants.Accounting.DEFAULT_SECONDARY_WORKLOAD_NAME);
+
+ double secondaryCpuPercentage = config.getProperty(
+ CommonConstants.Accounting.CONFIG_OF_SECONDARY_WORKLOAD_CPU_PERCENTAGE,
+ CommonConstants.Accounting.DEFAULT_SECONDARY_WORKLOAD_CPU_PERCENTAGE);
+
+ // The Secondary CPU budget is based on the CPU percentage allocated for secondary workload.
+ // The memory budget is set to Long.MAX_VALUE for now, since we do not have a specific memory budget for
+ // secondary queries.
+ long secondaryCpuBudget = (long) (secondaryCpuPercentage * _enforcementWindowMs * 100_000L);
Review Comment:
Right, missed to add `availableProcessors`
##########
pinot-spi/src/main/java/org/apache/pinot/spi/exception/QueryErrorCode.java:
##########
@@ -52,6 +52,7 @@ public enum QueryErrorCode {
BROKER_REQUEST_SEND(425, "BrokerRequestSend"),
SERVER_NOT_RESPONDING(427, "ServerNotResponding"),
TOO_MANY_REQUESTS(429, "TooManyRequests"),
+ WORKLOAD_QUOTA_EXCEEDED(429, "WorkloadQuotaExceeded"),
Review Comment:
I think the other place would be the `WorkloadAggregator`, let me see if there is way to add this
##########
pinot-core/src/main/java/org/apache/pinot/core/query/scheduler/WorkloadScheduler.java:
##########
@@ -0,0 +1,106 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.pinot.core.query.scheduler;
+
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.ListenableFutureTask;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.atomic.LongAccumulator;
+import org.apache.pinot.common.metrics.ServerMeter;
+import org.apache.pinot.common.metrics.ServerMetrics;
+import org.apache.pinot.common.metrics.ServerQueryPhase;
+import org.apache.pinot.common.utils.config.QueryOptionsUtils;
+import org.apache.pinot.core.accounting.WorkloadBudgetManager;
+import org.apache.pinot.core.query.executor.QueryExecutor;
+import org.apache.pinot.core.query.request.ServerQueryRequest;
+import org.apache.pinot.core.query.scheduler.resources.QueryExecutorService;
+import org.apache.pinot.core.query.scheduler.resources.WorkloadResourceManager;
+import org.apache.pinot.spi.accounting.ThreadResourceUsageAccountant;
+import org.apache.pinot.spi.env.PinotConfiguration;
+import org.apache.pinot.spi.query.QueryThreadContext;
+import org.apache.pinot.spi.trace.Tracing;
+import org.apache.pinot.spi.utils.builder.TableNameBuilder;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/**
+ * Scheduler implementation that supports query admission control based on workload-specific budgets.
+ *
+ * <p>This class integrates with the {@link WorkloadBudgetManager} to apply CPU and memory budget enforcement
+ * for different workloads, including primary and secondary workloads.</p>
+ *
+ * <p>Secondary workload configuration is used for queries tagged as "secondary". Queries that exceed their budget
+ * will be rejected.</p>
+ *
+ */
+public class WorkloadScheduler extends QueryScheduler {
+
+ private static final Logger LOGGER = LoggerFactory.getLogger(WorkloadScheduler.class);
+
+ private final WorkloadBudgetManager _workloadBudgetManager;
+ private final ServerMetrics _serverMetrics;
+
+ public WorkloadScheduler(PinotConfiguration config, QueryExecutor queryExecutor, ServerMetrics metrics,
+ LongAccumulator latestQueryTime, ThreadResourceUsageAccountant resourceUsageAccountant) {
+ super(config, queryExecutor, new WorkloadResourceManager(config, resourceUsageAccountant), metrics,
+ latestQueryTime);
+ _serverMetrics = metrics;
+ _workloadBudgetManager = Tracing.ThreadAccountantOps.getWorkloadBudgetManager();
+ }
+
+ @Override
+ public String name() {
+ return "WorkloadScheduler";
+ }
+
+ @Override
+ public ListenableFuture<byte[]> submit(ServerQueryRequest queryRequest) {
+ if (!_isRunning) {
+ return shuttingDown(queryRequest);
+ }
+
+ boolean isSecondary = QueryOptionsUtils.isSecondaryWorkload(queryRequest.getQueryContext().getQueryOptions());
Review Comment:
Supporting secondary workloads breaks down into two concerns:
1. Defining the secondary workload name
2. Assigning a cost to that workload.
I moved all cost initialization into the WorkloadBudgetManager to keep the scheduler focused on admission logic. However, passing the isSecondary flag into the canAdmit API pollutes its intent—it shouldn’t need to know about secondary workloads. To clean this up, I’ll separate how and where we look up the secondary workload:
- In the scheduler, read the secondary workload name only for backward‐compatibility routing.
- In WorkloadBudgetManager, read it again at startup to establish its budget cost.
It does repeat some code, but this keeps each component responsible for its own concern without overloading canAdmit with extra context.
##########
pinot-core/src/main/java/org/apache/pinot/core/query/scheduler/resources/WorkloadResourceManager.java:
##########
@@ -0,0 +1,56 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.pinot.core.query.scheduler.resources;
+
+import org.apache.pinot.core.query.request.ServerQueryRequest;
+import org.apache.pinot.core.query.scheduler.SchedulerGroupAccountant;
+import org.apache.pinot.spi.accounting.ThreadResourceUsageAccountant;
+import org.apache.pinot.spi.env.PinotConfiguration;
+
+public class WorkloadResourceManager extends ResourceManager {
Review Comment:
I know, currently it is not different than `UnboundedResourceManager`. The taught was to avoid any warranted change made to`UnboundedResourceManager` doesn't effect our scheduler and also allow for this resource to evolve differently, if needed in Future. However I get your point that we can create ResourceManager when we have some new changes or diverge from `UnboundedResourceManager`
##########
pinot-spi/src/main/java/org/apache/pinot/core/accounting/WorkloadBudgetManager.java:
##########
@@ -47,10 +48,32 @@ public WorkloadBudgetManager(PinotConfiguration config) {
}
_enforcementWindowMs = config.getProperty(CommonConstants.Accounting.CONFIG_OF_WORKLOAD_ENFORCEMENT_WINDOW_MS,
CommonConstants.Accounting.DEFAULT_WORKLOAD_ENFORCEMENT_WINDOW_MS);
+ initSecondaryWorkloadBudget(config);
startBudgetResetTask();
LOGGER.info("WorkloadBudgetManager initialized with enforcement window: {}ms", _enforcementWindowMs);
}
+ /**
+ * This budget is primarily meant to be used for queries that need to be issued in a low priority manner.
+ * This is fixed budget allocated during host startup and used across all secondary queries.
+ */
+ private void initSecondaryWorkloadBudget(PinotConfiguration config) {
+ _secondaryWorkloadName = config.getProperty(
Review Comment:
Made the DEFAULT_SECONDARY_WORKLOAD_CPU_PERCENTAGE to be 0, so the secondaryWorkload won't be turned on by default
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
Re: [PR] [Query Resource Isolation] Workload Scheduler [pinot]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #16018:
URL: https://github.com/apache/pinot/pull/16018#issuecomment-3070685392
## [Codecov](https://app.codecov.io/gh/apache/pinot/pull/16018?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
Attention: Patch coverage is `44.64286%` with `31 lines` in your changes missing coverage. Please review.
> Project coverage is 56.36%. Comparing base [(`1a476de`)](https://app.codecov.io/gh/apache/pinot/commit/1a476dea72ebf1c15e14ded28ae60c385f71b2c3?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`e4f25c7`)](https://app.codecov.io/gh/apache/pinot/commit/e4f25c75db06ba76d5c0931f9cfdba0f2712e845?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
> Report is 444 commits behind head on master.
| [Files with missing lines](https://app.codecov.io/gh/apache/pinot/pull/16018?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [.../pinot/core/query/scheduler/WorkloadScheduler.java](https://app.codecov.io/gh/apache/pinot/pull/16018?src=pr&el=tree&filepath=pinot-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fpinot%2Fcore%2Fquery%2Fscheduler%2FWorkloadScheduler.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cGlub3QtY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcGlub3QvY29yZS9xdWVyeS9zY2hlZHVsZXIvV29ya2xvYWRTY2hlZHVsZXIuamF2YQ==) | 22.22% | [21 Missing :warning: ](https://app.codecov.io/gh/apache/pinot/pull/16018?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...y/scheduler/resources/WorkloadResourceManager.java](https://app.codecov.io/gh/apache/pinot/pull/16018?src=pr&el=tree&filepath=pinot-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fpinot%2Fcore%2Fquery%2Fscheduler%2Fresources%2FWorkloadResourceManager.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cGlub3QtY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcGlub3QvY29yZS9xdWVyeS9zY2hlZHVsZXIvcmVzb3VyY2VzL1dvcmtsb2FkUmVzb3VyY2VNYW5hZ2VyLmphdmE=) | 37.50% | [5 Missing :warning: ](https://app.codecov.io/gh/apache/pinot/pull/16018?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...e/pinot/core/accounting/WorkloadBudgetManager.java](https://app.codecov.io/gh/apache/pinot/pull/16018?src=pr&el=tree&filepath=pinot-spi%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fpinot%2Fcore%2Faccounting%2FWorkloadBudgetManager.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cGlub3Qtc3BpL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9waW5vdC9jb3JlL2FjY291bnRpbmcvV29ya2xvYWRCdWRnZXRNYW5hZ2VyLmphdmE=) | 68.75% | [2 Missing and 3 partials :warning: ](https://app.codecov.io/gh/apache/pinot/pull/16018?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
> :exclamation: There is a different number of reports uploaded between BASE (1a476de) and HEAD (e4f25c7). Click for more details.
>
> <details><summary>HEAD has 68 uploads less than BASE</summary>
>
>| Flag | BASE (1a476de) | HEAD (e4f25c7) |
>|------|------|------|
>|java-21|10|1|
>|unittests|6|1|
>|unittests1|3|1|
>|skip-bytebuffers-true|4|0|
>|temurin|15|1|
>|unittests2|3|0|
>|skip-bytebuffers-false|8|0|
>|java-11|5|0|
>|integration|9|0|
>|integration2|3|0|
>|integration1|3|0|
>|custom-integration1|3|0|
></details>
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #16018 +/- ##
============================================
- Coverage 62.90% 56.36% -6.54%
+ Complexity 1386 699 -687
============================================
Files 2867 2321 -546
Lines 163354 128266 -35088
Branches 24952 20433 -4519
============================================
- Hits 102755 72298 -30457
+ Misses 52847 49996 -2851
+ Partials 7752 5972 -1780
```
| [Flag](https://app.codecov.io/gh/apache/pinot/pull/16018/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [custom-integration1](https://app.codecov.io/gh/apache/pinot/pull/16018/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [integration](https://app.codecov.io/gh/apache/pinot/pull/16018/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [integration1](https://app.codecov.io/gh/apache/pinot/pull/16018/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [integration2](https://app.codecov.io/gh/apache/pinot/pull/16018/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [java-11](https://app.codecov.io/gh/apache/pinot/pull/16018/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [java-21](https://app.codecov.io/gh/apache/pinot/pull/16018/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.36% <44.64%> (-6.46%)` | :arrow_down: |
| [skip-bytebuffers-false](https://app.codecov.io/gh/apache/pinot/pull/16018/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [skip-bytebuffers-true](https://app.codecov.io/gh/apache/pinot/pull/16018/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [temurin](https://app.codecov.io/gh/apache/pinot/pull/16018/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.36% <44.64%> (-6.54%)` | :arrow_down: |
| [unittests](https://app.codecov.io/gh/apache/pinot/pull/16018/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.36% <44.64%> (-6.54%)` | :arrow_down: |
| [unittests1](https://app.codecov.io/gh/apache/pinot/pull/16018/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.36% <44.64%> (+0.54%)` | :arrow_up: |
| [unittests2](https://app.codecov.io/gh/apache/pinot/pull/16018/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/pinot/pull/16018?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org