but neither didn’t set ml role in node.role(both nodes follow “dir” - data, ingest, remote~)
I want to configure a node with “ml” role.
how to set in docker-compose.yml?
yeah I mean,
there is a “node.role” setting in docker-compose.yml when I configed opensearch cluster.
In “node.roles” , Which of the two values of ml and dynamic really serves as machine learning?
“ml” or “dymanic” or both? or does it matter what?
@cucukaka The node type list in the OS documentation refers to the types of nodes and not the specific node role names.
According to this PR, new functionality has been introduced in OS 2.1, which is called dynamic roles.
What it means in practice is defining any role in the node.roles other than built-in (data, ingest, master, remote) will not fail the OpenSearch node startup process.
Regarding the Machine Learning role, as per the OS documentation, you should configure an ml role in the nodes.roles. Should, because it is not mandatory to have it configured.
The ml role makes the node a dedicated node for ML functions and tasks. The ML plugin will first look for the nodes with ml role to route the tasks to that node. If there are no ml nodes configured in the cluster, the ML plugin will use data nodes instead.