There is a bit of confusion in your understanding. Updating the index and writing to disk are two different processes and are not necessarily related, so your segment monitoring is still being written, even if refresh_interval is -1.
When a document is indexed, it is added to the memory buffer and added to the translog file. When an update occurs, documents in the buffer are written to a new segment, without fsync , the segment is opened to make it searchable, and the buffer is cleared. The broadcast has not yet been cleared , and in fact, nothing is saved to disk (since there was no fsync ).
Now imagine that the update does not happen: there is no index update, you cannot search for your documents, segments are not created in the cache.
The settings here will determine when a reset occurs (write to disk). By default, when the translator reaches 512 MB or in 30 minutes. This is actually data stored on disk , everything else is in the file system cache (if the node dies or the computer reboots, the cache is lost, and translation is the only salvation).
Andrei Stefan
source share