Hello Jan,

Thanks for the article and suggestions.

On Fri, Nov 3, 2023 at 2:11 PM Jan Høydahl <jan....@cominvent.com> wrote:

> Hi,
>
> What's going on is Lucene doing merges of segments, and when it so does,
> all documents marked for deletion in the old segments are gone, freeing up
> space. I recommend planning for 2-3x more disk space than your minimum
> need, both for worst-case merge, future growth and flexibility (e.g.
> re-indexing to another collection).
> See more about merges in this article:
> https://lucidworks.com/post/solr-segment-merge-frees-wasted-space-caused-by-deleted-documents/
>
> Jan
>
> > 3. nov. 2023 kl. 10:42 skrev Koen De Groote <kdg....@gmail.com>:
> >
> > Hello,
> >
> > I'm reading online that deleting items doesn't actually remove them from
> > disk, it merely marks them as "deleted".
> >
> > And that in order to free disk space by removing deleted items, I need to
> > do an "optimize" or "expungeDeletes" call.
> >
> > Having run a bunch of deletes on a collection, over a few hours, I
> noticed
> > the used disk space for this collection did indeed go down. Looking at
> > metrics, it seems every hour or so, a chunk of disk space was freed up.
> >
> >
> > So what's actually going on here? I was under the impression that nothing
> > would be freed up and I would need to call "optimize".
> >
> >
> > Regards,
> > Koen
>
>

Reply via email to