How do the shard size related to the RAM capacity of the es instance? From the articles I read, 20 - 25 shards per GB is ideal and each shard can be from few GB to 10s of GB but should be less than 50GB. Also, the recommended heap size for a single es instance is less than 32GB to benefit from c-oops and lesser GC time.
Now I have a 30GB heap with 8 cores and disk space of 256GB SSD. How many shards can I fit on this machine if I have 15GB of shards? Does shards completely reside in memory or will be loaded into memory as and when needed?