Best config for Performance

@DavidTurner Are Shards and Replicas config is only set in Master node only ?
If i have data node, should i set Shards and Replicas in data node too ?