Rethinkdb: Cancelling queries that were too stressful

Created on 10 Feb 2017  路  2Comments  路  Source: rethinkdb/rethinkdb

How can I cancel a query that is running that is causing issues?

Sometimes during testing it is possible to write queries that weren't the best and cause super high loads killing our other applications. It would be nice to see a list of these along with their run time, predicted time remaining, and some sort of load calculation to see how much stress they are really imposing. Is something like this possible?

Admin UI

Most helpful comment

RethinkDB has a variety of system tables which can be used to "peek under the hood"

One of these tables is the jobs table, which will list active queries and their run time (amongst other things)

You can stop a query by simply deleting it from the jobs table.

More info about the jobs table here: https://rethinkdb.com/docs/system-jobs/

And system tables in general: https://rethinkdb.com/docs/system-tables/

All 2 comments

RethinkDB has a variety of system tables which can be used to "peek under the hood"

One of these tables is the jobs table, which will list active queries and their run time (amongst other things)

You can stop a query by simply deleting it from the jobs table.

More info about the jobs table here: https://rethinkdb.com/docs/system-jobs/

And system tables in general: https://rethinkdb.com/docs/system-tables/

Those docs are a great resource, thanks @chrisvariety

It would still be nice if the web interface included these with an easy kill.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RaitoBezarius picture RaitoBezarius  路  4Comments

xbaker picture xbaker  路  5Comments

runvnc picture runvnc  路  4Comments

VeXocide picture VeXocide  路  5Comments

YandiBanyuKarimaWaly picture YandiBanyuKarimaWaly  路  3Comments