On 4/30/2018 2:56 PM, Michael Joyner wrote: > Based on experience, 2x head room is room is not always enough, > sometimes not even 3x, if you are optimizing from many segments down > to 1 segment in a single go.
In all situations a user is likely to encounter in the wild, having enough extra disk space for all Solr indexes to triple in size temporarily should be plenty. A situation where that is not enough would be pathological and extremely unlikely to occur in the wild. An optimize operation will never require more than 2X the index size *at the moment the optimize begins*. If changes to the index are made while the optimize is underway, then those changes would require additional space. There is a situation people have encountered in the wild where the total temporary space required is 3X the **final** index size. But this is a situation where there is more happening than just an optimize. Thanks, Shawn