elasticsearch icon indicating copy to clipboard operation
elasticsearch copied to clipboard

Add shard explain info to ReactiveReason about unassigned shards

Open arteam opened this issue 2 years ago • 5 comments

Add two new fields into the reactive autoscaling policy decision response.

  • unassigned_node_decisions - can_allocate decisions for the 1st unassigned shard
  • assigned_node_decisions - can_remain decisions for the 1st assigned shard

Resolves #85243

arteam avatar Jul 18 '22 14:07 arteam

Pinging @elastic/es-distributed (Team:Distributed)

elasticsearchmachine avatar Jul 25 '22 13:07 elasticsearchmachine

Hi @arteam, I've created a changelog YAML for you.

elasticsearchmachine avatar Jul 25 '22 13:07 elasticsearchmachine

@elasticsearchmachine run elasticsearch-ci/docs-check

arteam avatar Aug 16 '22 10:08 arteam

Hey @fcofdez and @henningandersen! I've addressed the comments from the last batch,

I created a new class NodeDecision to represent an abstraction holding a node and a decision instead of reusing NodeAllocationResult. NodeAllocationResult is suppose to work only with can_allocate decisions and we needed the class to hold also can_remain decisions.

I've also added suggestions from Henning for adding can_allocate decision for the nodes on the tier, if a shard can't be moved, and also I added a can_remain decision for the node if it can't be allocated due to storage.

arteam avatar Sep 13 '22 15:09 arteam

@elasticmachine run elasticsearch-ci/part-2

arteam avatar Sep 15 '22 14:09 arteam

@elasticmachine run elasticsearch-ci/bwc

arteam avatar Oct 05 '22 17:10 arteam

@elasticmachine update branch

arteam avatar Oct 18 '22 20:10 arteam

@elasticmachine update branch

arteam avatar Nov 03 '22 16:11 arteam

@elasticmachine update branch

arteam avatar Nov 23 '22 10:11 arteam

@elasticmachine update branch

arteam avatar Feb 14 '23 09:02 arteam

@elasticmachine update branch

arteam avatar Feb 28 '23 11:02 arteam

@elasticmachine update branch

arteam avatar Mar 06 '23 10:03 arteam

@elasticmachine update branch

arteam avatar Apr 12 '23 08:04 arteam

merge conflict between base and head

elasticmachine avatar Apr 12 '23 08:04 elasticmachine

@elasticmachine update branch

arteam avatar Apr 25 '23 13:04 arteam

Thank you both!

arteam avatar Apr 27 '23 18:04 arteam