Accoding to this document Creating a cluster - OpenSearch documentation
Every node is a coordinating node by default, so to make this node a dedicated coordinating node, set to an empty
but when I set up empty role, role is “cluser_manager, data, remote_cluster_client, ingest” like this
I wondering that 4 roles("cluser_manager, data, remote_cluster_client, ingest) is just coordinating roles? or look at the node.role and node.roles in the first screenshot, cluster_manager_name “os-coordinating-node” 's roles is correct for coordinating?
@cucukaka Just to be clear, every node in the cluster is a coordinating node. But you can remove all the roles from a single node and make it a dedicated coordinating node.
The second approach is correct. It will make os-coordinating-node a dedicated coordinating node.
i got same problem.i want to make a node for coordinating
im use opensearch operator and when i set role to : “”
i got this
dimr cluster_manager,data,ingest,remote_cluster_client - opensearch-dnp-coordinators-0
dimr cluster_manager,data,ingest,remote_cluster_client - opensearch-dnp-coordinators-1
I ran into the same problem when I tried to add a Coordinating node.
I added additionalConfig as shown in the previous comments. It seemed okay but when I tried to add ML node, the ML node is crashed.
Below is the log of the ML node pod:
java.lang.IllegalArgumentException: can not explicitly configure node roles and use legacy role setting [node.data]=[false]
at org.opensearch.cluster.node.DiscoveryNode.validateLegacySettings(DiscoveryNode.java:306)
at org.opensearch.cluster.node.DiscoveryNode.getRolesFromSettings(DiscoveryNode.java:290)
at org.opensearch.cluster.node.DiscoveryNode.isDataNode(DiscoveryNode.java:114)
at org.opensearch.env.NodeEnvironment.<init>(NodeEnvironment.java:379)
at org.opensearch.node.Node.<init>(Node.java:570)
at org.opensearch.node.Node.<init>(Node.java:460)
at org.opensearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:243)
at org.opensearch.bootstrap.Bootstrap.setup(Bootstrap.java:243)
at org.opensearch.bootstrap.Bootstrap.init(Bootstrap.java:405)
at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:168)
at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:159)
at org.opensearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:110)
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
at org.opensearch.cli.Command.main(Command.java:101)
at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:125)
at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:91)
For complete error details, refer to the log at /usr/share/opensearch/logs/***********.log
Therefore, if you’re planning to add ML nodes in the future, I recommend this configuration for the coordinating node.