Skip to content

Commit

Permalink
add ML node role
Browse files Browse the repository at this point in the history
  • Loading branch information
ylwu-amzn committed Apr 13, 2022
1 parent c4c0672 commit b0915f4
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,14 @@ public Setting<Boolean> legacySetting() {

};

public static final DiscoveryNodeRole ML_ROLE = new DiscoveryNodeRole("ml", "l") {
@Override
public Setting<Boolean> legacySetting() {
// copy the setting here so we can mark it private in org.opensearch.node.Node
return Setting.boolSetting("node.ml", false, Property.Deprecated, Property.NodeScope);
}
};

public static final DiscoveryNodeRole REMOTE_CLUSTER_CLIENT_ROLE = new DiscoveryNodeRole("remote_cluster_client", "r") {

@Override
Expand All @@ -223,7 +231,7 @@ public Setting<Boolean> legacySetting() {
* The built-in node roles.
*/
public static SortedSet<DiscoveryNodeRole> BUILT_IN_ROLES = Collections.unmodifiableSortedSet(
new TreeSet<>(Arrays.asList(DATA_ROLE, INGEST_ROLE, MASTER_ROLE, REMOTE_CLUSTER_CLIENT_ROLE))
new TreeSet<>(Arrays.asList(DATA_ROLE, INGEST_ROLE, MASTER_ROLE, REMOTE_CLUSTER_CLIENT_ROLE, ML_ROLE))
);

/**
Expand Down

0 comments on commit b0915f4

Please sign in to comment.