mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 00:47:50 +01:00
7a76616f3c
Increase unit process to 4 latency went up but resources went down with unit, run more processes
54 lines
1.2 KiB
JSON
54 lines
1.2 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"
|
|
},
|
|
"metrics": {
|
|
"type": "python 3.10",
|
|
"processes": 1,
|
|
"working_directory": "/code/bin",
|
|
"path": ".",
|
|
"module": "unit_metrics",
|
|
"user": "nobody"
|
|
}
|
|
}
|
|
}
|