It looks like such configurations already exists
For example, there is druid.sql.planner.requireTimeCondition which makes it 
necessary for query to have a time filter.
Also there is druid.server.http.maxScatterGatherBytes which is restricting max 
bytes gathered from historicals and druid.server.http.defaultQueryTimeout for 
restricting maximum query time



От: Jihoon Son
Отправлено: 6 июня 2019 г. в 22:18
Кому: dev@druid.apache.org
Тема: Re: Service protection and Druid SQL

+1, I think it's a good idea.

Jihoon

On Thu, Jun 6, 2019 at 9:22 AM Samarth Jain <samarth.j...@gmail.com> wrote:

> Hello Druid devs,
>
> With Druid sql slowly becoming the de-facto way of issuing Druid queries,
> chances of user queries unintentionally doing too much and potentially
> putting a lot of load on the the Druid cluster goes up. One such case being
> users forgetting to limit the amount of data they are scanning by
> forgetting to add appropriate filter on the __time column.
>
> Does it make sense to start investing in service protection features which
> provides operators ways to throttle/block such queries from running.
>
> At my work, for example, we are enabling druid sql on our platform. And to
> make sure users get a good experience, I am adding a check to block queries
> if the "intervals" part of query is unbounded.
>
> - Samarth
>

Reply via email to