diff --git a/config/default.yml b/config/default.yml index 1545deb..86816db 100644 --- a/config/default.yml +++ b/config/default.yml @@ -103,7 +103,7 @@ save: # tar1090-node configuration # Note: tar1090 uses location.rx for receiver position (no separate tar1090.location needed) tar1090: - adsb_source: "192.168.8.183,30005,beast_in" # External ADS-B feed (IP,PORT,PROTOCOL) + adsb_source: "" # Optional local ADS-B receiver (IP,PORT,PROTOCOL). Empty = rely on adsblol_fallback. adsblol_fallback: true adsblol_radius: 40 diff --git a/docker-compose.yml b/docker-compose.yml index 9240bb2..13201e0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -124,7 +124,16 @@ services: - RECEIVER_LON=${RECEIVER_LON:-0} - ADSBLOL_RADIUS=${ADSBLOL_RADIUS:-40} - PROXY_PORT=3005 + # SD-card endurance: run the graphs1090 RRD set from the /run tmpfs below + # and write it back as a single gzipped tarball, instead of 48 scattered + # in-place RRD updates every 60s. Only effective because /run is tmpfs. + - GRAPHS1090_REDUCE_IO=true tmpfs: + # /run holds volatile runtime state (readsb JSON at 1 Hz, tar1090 chunks, + # graphs1090 PNGs, s6 service dirs) and is tmpfs on any normal install. + # On the container overlay it cost ~7 GB/day of SD-card writes for ~8 KB/min + # of real data. exec is required: s6-overlay execs its service scripts here. + - /run:exec,size=64M - /var/log:size=32M adsb2dd: diff --git a/staging/docker-compose.staging.yml b/staging/docker-compose.staging.yml index 28adf9a..42f97ad 100644 --- a/staging/docker-compose.staging.yml +++ b/staging/docker-compose.staging.yml @@ -111,7 +111,16 @@ services: - RECEIVER_LON=${RECEIVER_LON:--84.65191} - ADSBLOL_RADIUS=${ADSBLOL_RADIUS:-40} - PROXY_PORT=3005 + # SD-card endurance: run the graphs1090 RRD set from the /run tmpfs below + # and write it back as a single gzipped tarball, instead of 48 scattered + # in-place RRD updates every 60s. Only effective because /run is tmpfs. + - GRAPHS1090_REDUCE_IO=true tmpfs: + # /run holds volatile runtime state (readsb JSON at 1 Hz, tar1090 chunks, + # graphs1090 PNGs, s6 service dirs) and is tmpfs on any normal install. + # On the container overlay it cost ~7 GB/day of SD-card writes for ~8 KB/min + # of real data. exec is required: s6-overlay execs its service scripts here. + - /run:exec,size=64M - /var/log:size=32M adsb2dd: