You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "siddharthteotia (via GitHub)" <gi...@apache.org> on 2023/09/29 18:02:16 UTC
[GitHub] [pinot] siddharthteotia commented on a diff in pull request #11710: Fix Direct Memory OOM on broker by limiting query response size
siddharthteotia commented on code in PR #11710:
URL: https://github.com/apache/pinot/pull/11710#discussion_r1341663123
##########
pinot-spi/src/main/java/org/apache/pinot/spi/utils/CommonConstants.java:
##########
@@ -362,6 +365,11 @@ public static class QueryOptionKey {
public static final String MAX_ROWS_IN_JOIN = "maxRowsInJoin";
public static final String JOIN_OVERFLOW_MODE = "joinOverflowMode";
+ // Indicates the maximum length of the serialized response per server for a query. The response size that a
+ // server can return is allocated by dividing the total budget CONFIG_OF_MAX_QUERY_RESPONSE_SIZE_BYTES across
+ // all servers processing the query.
+ public static final String MAX_SERIALIZED_RESPONSE_LENGTH_PER_SERVER = "maxSerializedResponseLengthPerServer";
Review Comment:
The limit that is exposed to the user as a config is at the query level and we internally compute the budget per server. Correct ?
In that case, why should this per server limit be put in the CommonConstants file ?
--
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