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

[Backport 2.x] Support dynamic node role #3585

Merged
merged 1 commit into from
Jun 15, 2022

Commits on Jun 14, 2022

  1. Support dynamic node role (#3436)

    * Support unknown node role
    
    Currently OpenSearch only supports several built-in nodes like data node
    role. If specify unknown node role, OpenSearch node will fail to start.
    This limit how to extend OpenSearch to support some extension function.
    For example, user may prefer to run ML tasks on some dedicated node
    which doesn't serve as any built-in node roles. So the ML tasks won't
    impact OpenSearch core function. This PR removed the limitation and user
    can specify any node role and OpenSearch will start node correctly with
    that unknown role. This opens the door for plugin developer to run
    specific tasks on dedicated nodes.
    
    Issue: #2877
    
    Signed-off-by: Yaliang Wu <ylwu@amazon.com>
    
    * fix cat nodes rest API spec
    
    Signed-off-by: Yaliang Wu <ylwu@amazon.com>
    
    * fix mixed cluster IT failure
    
    Signed-off-by: Yaliang Wu <ylwu@amazon.com>
    
    * add DynamicRole
    
    Signed-off-by: Yaliang Wu <ylwu@amazon.com>
    
    * change generator method name
    
    Signed-off-by: Yaliang Wu <ylwu@amazon.com>
    
    * fix failed docker test
    
    Signed-off-by: Yaliang Wu <ylwu@amazon.com>
    
    * transform role name to lower case to avoid confusion
    
    Signed-off-by: Yaliang Wu <ylwu@amazon.com>
    
    * transform the node role abbreviation to lower case
    
    Signed-off-by: Yaliang Wu <ylwu@amazon.com>
    
    * fix checkstyle
    
    Signed-off-by: Yaliang Wu <ylwu@amazon.com>
    
    * add test for case-insensitive role name change
    
    Signed-off-by: Yaliang Wu <ylwu@amazon.com>
    (cherry picked from commit e9c5ce3)
    ylwu-amzn authored and github-actions[bot] committed Jun 14, 2022
    Configuration menu
    Copy the full SHA
    614cd62 View commit details
    Browse the repository at this point in the history