I agree with Shawn.
Zookeeper saves the data log into /datalog and I see you missed adding the
volume for /datalog for zookeeper in your docker-compose.
That should do the trick

On Wed, Jun 8, 2022 at 3:21 PM Shawn Heisey <apa...@elyograg.org> wrote:

> On 6/8/2022 4:01 AM, Yurii Aleshchenko wrote:
> > How can I save my data in docker volume and why solr deleted all
> > collections, cores on startup ?
>
> It sounds like when you are recreating the setup, that you are starting
> with a brand new and empty ZK database.
>
> All the collection configuration is in ZK, and any core that exists in a
> SolrCloud node that does not reference a known collection in the ZK
> database is deleted on startup.
>
> If you want to preserve a SolrCloud install when rebuilding the docker
> containers, you will need to preserve the ZK database as well as the
> cores in the Solr home, or Solr will delete all the cores on startup.
>
> Thanks,
> Shawn
>
>

-- 
Vincenzo D'Amore

Reply via email to