mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 00:46:45 +01:00
f78f692ef6
Reduce nginx unit request limit to 7.5k 50k was very high, taking over 5 hours even at busy times to reach this Reduce it to 7.5k which should stop our memory usage creeping up constantly when we aren't deploying
63 lines
1.5 KiB
Smarty
63 lines
1.5 KiB
Smarty
{
|
|
"settings": {
|
|
"http": {
|
|
"max_body_size": 22020096
|
|
}
|
|
},
|
|
"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.$NGINX_UNIT_PYTHON_PROTOCOL",
|
|
"protocol": "$NGINX_UNIT_PYTHON_PROTOCOL",
|
|
"user": "nobody",
|
|
"limits": {
|
|
"requests": 7500
|
|
}
|
|
},
|
|
"metrics": {
|
|
"type": "python 3.10",
|
|
"processes": 1,
|
|
"working_directory": "/code/bin",
|
|
"path": ".",
|
|
"module": "unit_metrics",
|
|
"user": "nobody"
|
|
}
|
|
}
|
|
}
|