0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/unit.json
Frank Hamand 48a30c9b11
chore: Add process requests limit to nginx unit (#19136)
Add process requests limit to nginx unit

Easy fix for memory leaks...
2023-12-07 10:46:28 +00:00

57 lines
1.3 KiB
JSON

{
"listeners": {
"*:8000": {
"pass": "applications/posthog"
},
"*:8001": {
"pass": "routes/metrics"
},
"*:8181": {
"pass": "routes/status"
}
},
"routes": {
"metrics": [
{
"match": {
"uri": ["/metrics"]
},
"action": {
"pass": "applications/metrics"
}
}
],
"status": [
{
"match": {
"uri": ["/status"]
},
"action": {
"proxy": "http://unix:/var/run/control.unit.sock"
}
}
]
},
"applications": {
"posthog": {
"type": "python 3.10",
"processes": 4,
"working_directory": "/code",
"path": ".",
"module": "posthog.wsgi",
"user": "nobody",
"limits": {
"requests": 50000
}
},
"metrics": {
"type": "python 3.10",
"processes": 1,
"working_directory": "/code/bin",
"path": ".",
"module": "unit_metrics",
"user": "nobody"
}
}
}