0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
Commit Graph

7 Commits

Author SHA1 Message Date
Karl-Aksel Puulmann
4094fb025f
Increase default timeouts from gunicorn (#4731)
These could explain some of the 5xx requests we've been having.
Deploying and measuring.
2021-06-14 10:39:04 +00:00
Karl-Aksel Puulmann
7a090a111c
Set gunicorn keepalive to 120 (seconds) (#4730)
We're hosting gunicorn behind an ELB with idle timeout of 120 seconds.

I think this is leading to sporatic 504 errors:

https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/ts-elb-error-message.html

> HTTP 504: Gateway timeout
> Cause 2: Registered instances closing the connection to Elastic Load Balancing.
> Solution 2: Enable keep-alive settings on your EC2 instances and make sure that the keep-alive timeout is greater than the idle timeout settings of your load balancer.

Related reading: https://serverfault.com/questions/782022/keepalive-setting-for-gunicorn-behind-elb-without-nginx

Not 100% this is appropriate for setups without ELB but let's deploy,
see if it makes a dent on monitoring and then move appropriately (e.g.
env variable this)
2021-06-14 13:21:11 +03:00
Marius Andra
da5a48c33d
Black all the things! (#1136)
* Black all the things!

* changed line length to 120
2020-07-02 15:41:49 +02:00
Marius Andra
9372d5f965 show the correct host and port 2020-04-02 00:55:45 +02:00
Marius Andra
e530e1d1df change localhost url in gunicorn help message 2020-04-02 00:54:38 +02:00
Karthikeyan Singaravelan
902003465f Fix deprecation warnings due to invalid escape sequences. 2020-02-21 21:52:11 +05:30
Tim Glaser
395d79f434 Faster dockerfile, with useful (and prettywelcome message 2020-02-09 12:21:06 -08:00