Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion helm/config/mapProxyUwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ processes = {{ .Values.mapproxy.uwsgi.processes }} ; Maximum number of workers a
threads = {{ .Values.mapproxy.uwsgi.threads }}
enable-threads = true
master = true
lazy-app = true ; Fork workers after app load (required for OTel) todo check this variable effect
; Load the app once in the master, then fork. Workers share the parsed mapproxy.yaml
; copy-on-write. app.py builds the OTel providers in a postfork hook so their export
; threads and gRPC channels are still created per worker — see src/app.py.
; lazy-app = false
py-callos-afterfork = true ; allow workers to trap signals
; cheaper = 2 ; Minimum number of workers allowed
disable-logging = {{ .Values.mapproxy.uwsgi.disableLogging }}
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ The container starts uWSGI with the following fixed flags (not configurable at r
| `--socket 0.0.0.0:3031` | uwsgi binary protocol — use as nginx upstream |
| `--http-socket 0.0.0.0:8080` | plain HTTP — use for liveness probes and direct access |
| `--master` | master process manages workers |
| `--lazy-app` | workers load `app.py` **after** fork — telemetry initialises per worker via the dispatch in `app.py` |
| `lazy-app = false` | master loads `app.py` once, then forks — workers share the parsed config copy-on-write |
| `--harakiri 120` | kill workers that take > 120 s |
| `--max-requests 1000` | recycle worker after 1000 requests |
| `--reload-on-rss 2048` | recycle worker if RSS exceeds 2 GB |
Expand Down
Loading