Comments (6)
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.
I absolutely agree... but what are the differences in that image, vs our own Docker image?
from xapiand.
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.
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.
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.
I think this can be closed out.
from xapiand.
Related Issues (20)
- N-Gram index/search example HOT 3
- Listing of indices HOT 3
- Build fails with -DCLUSTERING="OFF" HOT 1
- Segmentation fault on Alpine v3.9 HOT 1
- Limit query execution time HOT 1
- How to search in all fields? HOT 4
- How to make AND the default boolean operator (instead of OR)? HOT 9
- Result Highlighting HOT 2
- Option to store (or not store) field HOT 1
- Xapaind Glossary Terms
- Data Encryption HOT 3
- How to config a cluster without multicast? HOT 1
- Write performance problem, can not reach 1000qps HOT 5
- Google Cloud Run
- compile with cmake : linking (error) HOT 3
- Is there any document explaining the config of xapiand? HOT 2
- License question
- upgrade to Xapian 1.4.16
- DELETE all documents
- Is this project dead? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xapiand.