Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Reduce impact of ExplainCostsRouter and many concurrent queries

Open
#10 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust

Research direction

Start by tracing ExplainCostsRouter and the existing trino-lb explain-query routing and cluster configuration entry points. Determine how users can select a cluster group and how explain queries are queued without creating routing loops. Done means explain traffic no longer sends every request to one underlying cluster and concurrent queries are protected from causing a denial of service.

Written by the indexing model from the issue text.

Description

Currently 100,000 queries in trino-lb running through ExplainCostsRouter cause 100,000 queries on the underlying Trino cluster used for the query estimations, which can lead to DOS.

To prevent this we need to let users specify the cluster group used for the explain queries instead of a single cluster. This should also take care of queuing explain queries.

An alternative solution could be to enter trino-lb itself as the explain target cluster, but users would need to be careful to not creating routing loops 🤷‍♂️ To prevent this a dedicated trino-lb only for explain queries could be set up. Seems unnecessary complicated though.

Dominant language
Rust
Stars
38
Forks
8
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stackabletech/trino-lb

All issues in stackabletech/trino-lb

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.