Shard Balancing based on Available Heap Space

I've one question about shard balancing on ES. Is the algorithm smart enough to figure out the capabilities of ES instance? For instance if one instance has lower heap space than others in a cluster, would it give preference to the bigger instance ?

It is not.

Thanks a lot for the quick response.