How to set a timeout and throttling rate for a large user defined aggregate query

天涯浪子 提交于 2019-11-28 09:26:24

问题


I'm trying to run a user defined aggregate query to periodically roll up some values in a large table. I'm only trying to aggregate one partition at a time, but each partition can have lots of rows.

Once I get past a certain number of rows in a partition, the query starts to fail with a timeout error since it seems to be using a fixed timeout value.

But I'm in no hurry for the aggregate query to return results, and I'd like the coordinator node to take its time and aggregate all the rows without timing out. I'd also like to throttle the rate at which it pages through the results so that it doesn't generate excessive load while doing the aggregation.

So is there a way to set a timeout and throttling rate for queries that are expected to take a long time to execute?

Right now I'm thinking the only workaround is to design my schema so that I keep my partitions artificially small to keep the aggregation under the fixed timeout limit.

I'm running the Cassandra 3.0 alpha code base.

来源:https://stackoverflow.com/questions/32128069/how-to-set-a-timeout-and-throttling-rate-for-a-large-user-defined-aggregate-quer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!