We have a pinot cluster, some of our users are run...
# troubleshooting
y
We have a pinot cluster, some of our users are running very heavy queries which results in
Copy code
java.lang.OutOfMemoryError: Java heap space
This is fine, but as the result of this the server instance is becoming unhealthy. i.e. Live Instance Config becomes
Copy code
{
  "_code": 404,
  "_error": "ZKPath /PinotCluster/LIVEINSTANCES/Server_node_8098 does not exist:"
}
How can we solve the same ?
k
you can set a limit for maxQueryLimit and maxGroupBy limits
y
Sure. but even then there are cases when the limits are quite small but it is doing a count distinct on a large column.
ideally we are preventing all these queries .. in our middle layer .. and converting them to optimized versions .. but just in case we want to avoid our nodes from going down.
k
how large is it?
did you try partitionedDistinct?
y
Yes we have that implemented .. but these are very fringe cases hence trying to understand how to avoid from getting the node down.
Our memory settings are Xms4G Xmx8G on 16 G nodes. Should we bump down our Xmx even further ?
k
Two options • increase the memory to ensure that distinct values fit in memory add configuration to limit max distinct values or Enhance distinct operator to start using HLL when the number of unique goes beyond a certain size.. this will require code change
y
I am more worried about making sure the node is able to fix itself after such a query.
Currently the only option for us is to restart the server instance
k
Can you please file an issue
y
I think there is a similar issue already created. https://github.com/apache/pinot/issues/5627. Hence not creating a duplicate.