Filestore.write-buffer-size

The write-buffer-size sets the in-memory buffer for incoming pieces. You would need to have that much RAM available per upload request. So, you could end up getting out-of-memory errors when you set it too high.

But, there’s really no benefit it setting it over 4MiB. At most it would need to store the whole piece, which at the moment is ~4MiB. Setting it to that number is only useful for drives that don’t like small writes (such as SMR drives). This of course will mean that it needs to write all that data at once to disk when the upload finishes, making the final sync to disk slower.

There shouldn’t be any increased risk in data corruption.