How to prioritize data node to store primary shards

Hi

We have a two node cluster and I would like to prioritize one data node to store all the primary shards. I would like to store all the primary shards on the node with more performance. Is this possible?

Thank you in advance and kind regards, Stefan

Primary and replica shards do the same amount of work when it comes to indexing and searching so there is generally no point trying to allocated primaries to a specific node. Elasticsearch will promote replicas to primary due to events in the cluster, so these designations are not static.

You can't, for the reasons Christian mentioned.

Thank you very much for the fast and clarifying answer. Best regards, Stefan