Optimize WAL to tsm writes

We are observing a OutofMemory issue when the writes are too fast. “Total Memory” for Infux processes going up and up, never goes down.

Our theory is, WAL to TSM file writes are out of sync with the speed we are pushing data to influx, which is what causing the memory consumption increase and end up with OutofMemory. What are the optimal settings for this type of activity?

We tried by changing “cache-snapshot-memory-size” with different values, but this didn’t help.