5 ms·
Even in peak it's just ~800 hits per second - it shows how is irrelevant the C10k problem (yes, I know it's not exactly about hits per second, but still).
by EugeneOZ 11y ago
Even in peak it's just ~800 hits per second - it shows how is irrelevant the C10k problem (yes, I know it's not exactly about hits per second, but still).
- tim333 11y agoC10k doesn't come up with Wikipedia because it doesn't do websockets. If it did it would probably have millions of concurrent connections, far over 10k. I dare say 10k is a bit passe. Whatsapp can apparently do 2m/server.
- Cyph0n 11y ago2m per second? These guys must have squeezed every ounce of performance out of Beam.
- js2 11y ago2m refers to concurrent connections, not rate.
- Cyph0n 11y agoAh, that makes sense. Still, is 2m rps within the realm of possibility for BEAM with a high-end server grade processor and heavy use of actors/concurrency?
- RobertKerans 11y agoThe Phoenix framework tests in October got up to 2m concurrent active (well, mostly just awake) connections, without timeouts. http://www.phoenixframework.org/blog/the-road-to-2-million-websocket-connections http://www.phoenixframework.org/blog/the-road-to-2-million-w...
- deleted 11y ago[deleted]
- jsmthrowaway 11y agoThe C10k problem is absolutely not irrelevant, and certainly not because one page only saw 800rps during a worldwide event. Two things there: (1) 800rps TO THAT PAGE is the metric. The entire rest of Wikipedia was still getting traffic, and as an educated guess I would estimate raw traffic to be on the order of magnitude of 3-4krps (across editing and views). They are quite open with operations and if I weren't mobile I could probably find the accurate answer. (2) There are much higher traffic properties. I'm aware of one property beyond 200krps in aggregate. If you had said "most people don't have to worry about C10k," then I'm on board. That's true. Irrelevant? Far from it. And yes, query rate and connection count have a complicated relationship. You need three or four other metrics to explain their relationship, but raw query rate is a good yardstick for active connections when combined with quantiled request latency. (Not averaged.) Simple example: a 750ms 95th% page hit 10,000 times per second is almost certainly far > C10k because of the outliers. Now I will grant that C10k itself is somewhat irrelevant, yes, but not for the reason you are saying. It was defined in an age when 10,000 active connections was pretty surprising (didn't it come from FTP or some other heavy eyeball protocol?). These days with long poll apps, long-running protocols, and so on, millions of open connections are quite common at consumer scale. I find C1M far more interesting these days. C10M is still kinda nuts, but does exist in the magical world of metal and fiber and hot aisles and all those great things that nobody uses anymore (depressingly).
- yuvipanda 11y agohttps://grafana.wikimedia.org/dashboard/db/varnish-http-errors https://grafana.wikimedia.org/dashboard/db/varnish-http-erro... (and grafana.wikimedia.org in general) have more stats. It stated '13.38 Million req/min), which I think is ~230,000 req/s
- jsmthrowaway 11y agoAh. So my hunch was that the published number was what is making it through cache, and that's where my estimate comes from too. That sounds about what I'd expect for the cached side. Nice find!