influxdata / influxdata/influxdb

Add the ability to limit query resource usage

Open
#17,089 1 comment 2 reactions 0 assignees View on GitHub
area/flux kind/feature-request team/query
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

from our community: Is there any way to set query RAM limits, timeouts, ... to prevent a too complex query endangering the entire instance?

Using this issue to start the discussion and planning of this type of capability.

- Ideally, they could be configured per org by an admin of the system.
- Initially, the 3 vectors could be limit by memory usage, by time, by number of results.
- Once queries trigger one of these limits, they would be cancelled and an error message returned to the user.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the query execution and administration areas of InfluxDB; the issue names no files, tests, or entry points. Define how per-organization memory, time, and result-count limits would be configured, how cancellation works, and what error users receive before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.