Storage Db
pasa13142 opened this issue · 3 comments
Forgive me please I'm little bit newbie, assume that if I index 100.000 data and It worked well but after that I reboot my server, How should i connect my previous indexed db ?
You are running the database inside a docker container. A docker container can be considered as a virtual environment, which is separate from the host system (even though it runs on top of host system utilizing essential system calls). This means the data generated inside a running docker container is written to a temporary virtual disk, that will get destroyed once the container is taken down. If you wanted to persist data that is being generated within a docker container, you need to mount a directory within your host system to a target directory within the docker container. By doing this, you will be able to persist whatever data that's being written to the target directory within the container. This will allow you to mount the same host directory every time you boot up the container and continue from where you have left off.
AquilaDB keeps everything inside /data
directory inside the container. So, you need to mount some directory in your host system to that /data
location.
It's important to keep in mind that, any modification to the generated data from the host system will be reflected inside the target docker container, which in turn cause the program within container (AquilaDB) to behave in weird way.
Being that said, here's how to mount a directory from host system (look for -v parameter) when you spin up the container:
docker run -d -i -p 50051:50051 -v "<local data persist directory>:/data" -t ammaorg/aquiladb:latest
Good luck!
@pasa13142 No activity, closing. Please reopen if the issue persists.
Thank you for kindly answer :)