Skip to content

Commit 57e1893

Browse files
committed
chore(services): exclude nominatim and elasticsearch volumes from backups
Both contain deterministic indexes built from the OSM PBF that the data-manager already downloads and hardlinks into infra/docker/data/. The other heavy region-derived services (valhalla, motis, photon, tileserver, overpass) all use bind-mounted infra/docker/data/<svc>/ without backup flags for the same reason — Nominatim and Pelias just historically used named volumes. Backups for these can hit ~100 GB each per snapshot for a Germany- sized deployment, completely dominating snapshot size and prune cost while saving only a 1–4h (Nominatim) or ~8h (ES/Pelias) rebuild on disaster recovery — and during DR you'd typically want a fresh OSM update anyway, which would invalidate the backed-up indexes. The truly irreplaceable layers — postgis (auth/vault/audit), redis (transit registry, app cache), traefik (ACME state) — keep backup: true.
1 parent 5361345 commit 57e1893

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

services/elasticsearch/service.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
},
2828
"volumes": [
29-
{ "name": "openmapx-esdata", "mountAt": "/usr/share/elasticsearch/data", "backup": true }
29+
{ "name": "openmapx-esdata", "mountAt": "/usr/share/elasticsearch/data", "backup": false }
3030
],
3131
"exposure": {
3232
"hostPorts": [{ "container": 9200, "host": 9200, "bindAddress": "127.0.0.1" }]

services/nominatim/service.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
{
4949
"name": "openmapx-nominatim-data",
5050
"mountAt": "/var/lib/postgresql/16/main",
51-
"backup": true
51+
"backup": false
5252
},
53-
{ "name": "openmapx-nominatim-flatnode", "mountAt": "/nominatim/flatnode", "backup": true }
53+
{ "name": "openmapx-nominatim-flatnode", "mountAt": "/nominatim/flatnode", "backup": false }
5454
],
5555
"exposure": {
5656
"hostPorts": [{ "container": 8080, "host": 8088, "bindAddress": "127.0.0.1" }]

0 commit comments

Comments
 (0)