Is it 512MB for per all shards or per all primary shards?
Accepts either a percentage or a byte size value. It defaults to 10%, meaning that 10% of the total heap allocated to a node will be used as the indexing buffer size shared across all shards.
However, doesnt mentioned whether primary only or not. Can someone please elaborate?