[
https://issues.apache.org/jira/browse/IGNITE-26459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mikhail Efremov updated IGNITE-26459:
-------------------------------------
Description:
*Description*
The main goal is to create a new POST method in REST API module (follow the
[guidance|https://github.com/apache/ignite-3/blob/main/modules/rest/README.md]).
The current approved URI is
{{/management/v1/cluster/zone/datanodes/recalculate}} and the method should
accept a list of zone names to recalculate data nodes for. The controller
should use new public method for data nodes recalculation from IGNITE-26543.
The corresponding REST API tests should be provided.
*Motivation*
In case of scaleUp/Down disabled the only way to adjust dataNodes and thus
recalculate assignments is to alter zone filter. Despite the fact that it works
we need a more user-friendly way to do this. Meaning that we need new CLI
command within 'distribution' group. We already implemented
*Definition of done*
# Possibly new controller for {{zone/datanodes}} commands is created.
# New POST method with the list of zone names as the argument to call.
# REST API tests for the new method.
or overloading already existing 'reset'.
DZM internal changes should be pretty trivial - effectively it's the same as
altering filter, but we need to keep compatibility aspects in mind.
was:
In case of scaleUp/Down disabled the only way to adjust dataNodes and thus
recalculate assignments is to alter zone filter. Despite the fact that it works
we need a more user-friendly way to do this. Meaning that we need new CLI
command within 'distribution' group. We may consider either adding a brand new
command or overloading already existing 'reset'.
DZM internal changes should be pretty trivial - effectively it's the same as
altering filter, but we need to keep compatibility aspects in mind.
> Add ability to explicitly trigger dataNodes recalculation via CLI command
> -------------------------------------------------------------------------
>
> Key: IGNITE-26459
> URL: https://issues.apache.org/jira/browse/IGNITE-26459
> Project: Ignite
> Issue Type: Improvement
> Components: distribution zones ai3
> Reporter: Alexander Lapin
> Assignee: Mikhail Efremov
> Priority: Major
> Labels: ignite-3
>
> *Description*
> The main goal is to create a new POST method in REST API module (follow the
> [guidance|https://github.com/apache/ignite-3/blob/main/modules/rest/README.md]).
> The current approved URI is
> {{/management/v1/cluster/zone/datanodes/recalculate}} and the method should
> accept a list of zone names to recalculate data nodes for. The controller
> should use new public method for data nodes recalculation from IGNITE-26543.
> The corresponding REST API tests should be provided.
> *Motivation*
> In case of scaleUp/Down disabled the only way to adjust dataNodes and thus
> recalculate assignments is to alter zone filter. Despite the fact that it
> works we need a more user-friendly way to do this. Meaning that we need new
> CLI command within 'distribution' group. We already implemented
> *Definition of done*
> # Possibly new controller for {{zone/datanodes}} commands is created.
> # New POST method with the list of zone names as the argument to call.
> # REST API tests for the new method.
> or overloading already existing 'reset'.
> DZM internal changes should be pretty trivial - effectively it's the same as
> altering filter, but we need to keep compatibility aspects in mind.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)