我有一个 qdrant,部署在 azure 应用程序服务的 docker 容器中。来自 qdrant 集合的数据保存在 docker 容器本身中 - 这是主要问题,因为当应用程序重新启动时,容器中的所有数据都会消失。我需要将数据保存在单独的存储中,最好是 blob/文件共享。我没有考虑在 Kubernetes 和容器实例中部署 qdrant 的可能性
我尝试在azure应用程序配置中指定保存数据的路径,azure保存数据的不同路径,但没有任何结果。我也尝试使用 qdrant docker 配置来执行此操作,但也没有任何结果。
关于您的问题,日志有哪些内容?您可能想提高 config.yml 中的日志级别。
这就是我的处理方法(免责声明:未经测试):
# mount an Azure Files share to your Docker container
docker run -d \
--name qdrant-container \
-v <azure_files_mount_point>:/mnt/qdrant-data \
-e AZURE_STORAGE_ACCOUNT="<storage_account_name>" \
-e AZURE_STORAGE_KEY="<storage_account_key>" \
your-qdrant-image
# increase debug level
log_level: DEBUG
# specify the path on the mounted volume where you want to store Qdrant data
storage:
storage_path: /mnt/qdrant-data