You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Adam Sjøgren via users <us...@solr.apache.org> on 2026/06/13 13:49:00 UTC
Restricting simultaneous recovery of multiple shards
Hi,
When multiple shards need recovery (eg after a Solr instance has
crashed after running out of memory) they all start recovering at the
same time.
Is there a way to tell Solr to only recover a set maximum number of
shards at a time?
Our Solr machines are a little squeezed for storage currently, and
while we wait for more (and curse at the AI companies' effect on nvme
prices), it would be very convenient if I could say "recover at most 3
shards at a time", to avoid running out of storage during full-copy
recovery.
Or even better, if I could say: "recover at most 3 shards using
full-copy at the same time".
We are currently employing a workaround where other replicas are
temporarily moved to a different disk during recovery, but it's not a
workaround I am very comfortable with.
Best regards,
Adam
--
"Most regrets I've gathered came from caving in Adam Sjøgren
Darkness has a way of shedding light on me asjo@koldfront.dk
Seems the more I'm lost the more I'm feeling free"
Re: Restricting simultaneous recovery of multiple shards
Posted by Vinicius Brasil <vi...@gmail.com>.
Hi, how can I help you?
=====================
Vinicius Brasil
Compartilhe seus arquivos com segurança =>
https://www.dropbox.com/referrals/NTc5MDc3MDE5
On Sat, 13 Jun 2026, 10:51 Adam Sjøgren via users, <us...@solr.apache.org>
wrote:
> Hi,
>
>
> When multiple shards need recovery (eg after a Solr instance has
> crashed after running out of memory) they all start recovering at the
> same time.
>
> Is there a way to tell Solr to only recover a set maximum number of
> shards at a time?
>
> Our Solr machines are a little squeezed for storage currently, and
> while we wait for more (and curse at the AI companies' effect on nvme
> prices), it would be very convenient if I could say "recover at most 3
> shards at a time", to avoid running out of storage during full-copy
> recovery.
>
> Or even better, if I could say: "recover at most 3 shards using
> full-copy at the same time".
>
> We are currently employing a workaround where other replicas are
> temporarily moved to a different disk during recovery, but it's not a
> workaround I am very comfortable with.
>
>
> Best regards,
>
> Adam
>
> --
> "Most regrets I've gathered came from caving in Adam Sjøgren
> Darkness has a way of shedding light on me asjo@koldfront.dk
> Seems the more I'm lost the more I'm feeling free"
>
>
Re: Restricting simultaneous recovery of multiple shards
Posted by "Patil, Prafull via users" <us...@solr.apache.org>.
Hello,
Try using "coreLoadThreads" in solr.xml. Set the value to how many cores/replicas you want to load at a time during Solr startup.
Make sure to have enough CPU/RAM to load n number of cores at a time.
https://solr.apache.org/guide/solr/latest/configuration-guide/configuring-solr-xml.html
Best Regards,
Prafull Prakash Patil
PLM Operations, Pune
Mobile : +917032529590
________________________________
From: asjo@tullinup <as...@tullinup> on behalf of Adam Sjøgren via users <us...@solr.apache.org>
Sent: Saturday, June 13, 2026 7:19 PM
To: users@solr.apache.org <us...@solr.apache.org>
Cc: Adam Sjøgren <as...@koldfront.dk>
Subject: Restricting simultaneous recovery of multiple shards
Hi,
When multiple shards need recovery (eg after a Solr instance has
crashed after running out of memory) they all start recovering at the
same time.
Is there a way to tell Solr to only recover a set maximum number of
shards at a time?
Our Solr machines are a little squeezed for storage currently, and
while we wait for more (and curse at the AI companies' effect on nvme
prices), it would be very convenient if I could say "recover at most 3
shards at a time", to avoid running out of storage during full-copy
recovery.
Or even better, if I could say: "recover at most 3 shards using
full-copy at the same time".
We are currently employing a workaround where other replicas are
temporarily moved to a different disk during recovery, but it's not a
workaround I am very comfortable with.
Best regards,
Adam
--
"Most regrets I've gathered came from caving in Adam Sjøgren
Darkness has a way of shedding light on me asjo@koldfront.dk
Seems the more I'm lost the more I'm feeling free"
**************************************************************************************
This e-mail and any attachments thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments. Unauthorized use, copying or further full or partial distribution of this e-mail or its contents is prohibited.
**************************************************************************************