GithubHelp home page GithubHelp logo

Comments (6)

Kronuz avatar Kronuz commented on May 17, 2024 1

Thank you @cbess.
You can use --name NodeName as a parameter (or it should work) you can also set the XAPIAND_NAME environment variable. The default for the node name in Docker is the host name, so you probably can also request Docker to use a different hostname.

from xapiand.

Kronuz avatar Kronuz commented on May 17, 2024

I absolutely agree... but what are the differences in that image, vs our own Docker image?

from xapiand.

vit1251 avatar vit1251 commented on May 17, 2024

Current Docker container store index inside container and it lost data when stop or restart container. May be use VOLUME to store index on host machine? Do u have benchmark and get any performance issue with VOLUME in Docker?

from xapiand.

cbess avatar cbess commented on May 17, 2024

As far as I can tell, you can use the -v option to mount the /var/db/xapiand/ directory on the host. It worked for me. However, restarting the container is a different issue:

Node name 6f9e78432364 doesn't match with the one in the cluster's database!

How do I provide the node name upon startup?

Mount option:

-v /my/host/dir/xapiand:/var/db/xapiand

Full example:

docker run -p 8880:8880 -v /my/host/dir/xapiand:/var/db/xapiand --rm dubalu/xapiand:0.22.0 -vvv

BTW, many thanks @Kronuz for sharing this project! I'm loving the potential of seeing a viable and easy to setup ElasticSearch and Sphinxsearch alternative! Great codebase as well!

from xapiand.

cbess avatar cbess commented on May 17, 2024

Awesome, I just tested it, worked perfectly! Thanks for the prompt response. I'm definitely excited to see this project become more visible!

Working command to have persistent Xapiand data in Docker:

docker run -p 8880:8880 -v /tmp/xapiand:/var/db/xapiand --rm dubalu/xapiand:0.22.0 -vvv --name myxapiand

@vit1251 Looks like we don't need any modifications for persistent data.

from xapiand.

cbess avatar cbess commented on May 17, 2024

I think this can be closed out.

from xapiand.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.