Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [Cluster Manager Throttling] Cluster Manager Throttler allowing 2x the tasks allowed to be queued #16693

Open
gbbafna opened this issue Nov 20, 2024 · 0 comments
Labels
bug Something isn't working Cluster Manager untriaged

Comments

@gbbafna
Copy link
Collaborator

gbbafna commented Nov 20, 2024

Describe the bug

On a 200 node cluster , with "cluster_manager.throttling.thresholds.update-snapshot-state.value" : "5000", , during snapshots we are seeing pending tasks of 10k instead of 5k . All 10k tasks are of update snapshot state task type only

curl  localhost:9200/_cat/pending_tasks  > /tmp/pt 

➜  ~ grep " update snapshot state" /tmp/pt | wc -l
10000

Looks like somehow we are allowing 2x the tasks before we actually start throttling on the task type.

Related component

Cluster Manager

To Reproduce

  1. Create 200 node cluster with 200k empty shards.
  2. Set "cluster_manager.throttling.thresholds.update-snapshot-state.value" : "5000"
  3. Register a repository and trigger a snapshot . Observe the pending task count just after triggering the snapshot .

Expected behavior

Pending task should not go beyond 5k for update snapshot state task type

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: Linux
  • Version - 2.17
@gbbafna gbbafna added bug Something isn't working untriaged labels Nov 20, 2024
@gbbafna gbbafna changed the title [BUG - Cluster Manager Throttling] Cluster Manager Throttler allowing 2x the tasks allowed to be queued [BUG] [Cluster Manager Throttling] Cluster Manager Throttler allowing 2x the tasks allowed to be queued Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Cluster Manager untriaged
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant