postgresql - stop rank 30 update on nominatim-docker build
问题描述
I am installing nominatim-docker 3.0 on VM with 128 GB RAM and 8 vcpus with 1TB disk. I am almost going to run out of disk(only 25 GB left). I am wondering if it is ok to restart pgsql service to stop rank 30 index/update. Here are last few steps of docker file.
...
...
...
RUN service postgresql start && \
sudo -u postgres psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='nominatim'" | grep -q 1 || sudo -u postgres createuser -s nominatim && \
sudo -u postgres psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='www-data'" | grep -q 1 || sudo -u postgres createuser -SDR www-data && \
sudo -u postgres psql postgres -c "DROP DATABASE IF EXISTS nominatim" && \
useradd -m -p password1234 nominatim && \
chown -R nominatim:nominatim ./src && \
sudo -u nominatim ./src/build/utils/setup.php --osm-file /app/src/data.osm.pbf --all --threads 6 --osm2pgsql-cache 20000 && \
service postgresql stop
EXPOSE 5432
EXPOSE 8080
COPY start.sh /app/start.sh
CMD /app/start.sh
My question: Are rank 30 updates so critical for geocoding? If I restart postgresql at this stage of installation, would nominatim api be functional? My current install is for the test purpose and I just want to checkout nominatim local.
解决方案
推荐阅读
- tkinter - 如何在 tkinter 列表框中正确对齐文本?
- javascript - 如何从 React 中的另一个文件调用对话框
- python - Gekko,将动态参数传递给 pwl
- flutter - Flutter Firestore - 没有为“Stream”类型定义方法“documents”
- reactjs - 在 react-native 动画中使用计算变量
- python - AttributeError:“function”对象没有属性“tableId”。Apache Beam 数据流运行器
- node.js - 节点 TypeScript 导入/导出机制
- excel - 如何使用 vba 在 excel 中仅将一个工作表保存为不同的工作簿?
- azure - 错误“指定的应用程序包不存在。” 在从 azure cli 检查是否存在 azure 批处理应用程序包时?
- r - 手动制作随机森林模型不会给出相同的结果