Flush Dirty bytes

Hi @Prince_Das,

In MongoDB, you don’t need to manually flush dirty bytes. The system takes care of automatically flushing them to disk once dirty contents in the WiredTiger cache reach 5%. It will flush them more aggressively once this number reaches 20% of the configured cache size. You can customize these numbers if you need more control, but unless you’re experiencing issues that can be conclusively traced to this setting, I would not recommend changing these values.

To read more, please refer to the WiredTiger: Cache and eviction tuning documentation.

Regards,
Kushagra