What are the conditions that trigger a flush in ElasticSearch node/index/shard?
There are good explanations about the flow of ElasticSearch refreshing every second and flushing in a less frequent manner to avoid intensive CPU usage, but which component is responsible to perform the flush?
I tried to look over the source code but didn't manage to find the right place.