News for hackers. Stuff that matters.
Re:Wikipedia Outage by hddherman on Wednesday February 22, 2023 @04:41AM (#34893545)
Seems like they have fixed it, but it doesn't hurt to mention Kiwix. Download a full copy of Wikipedia as a .zim file, and you're good to go in even low connectivity scenarios.

The instance of Wikipedia (and other sites) that I'm hosting can be tried out here if you wish: https://kiwix.ounapuu.ee

Re:Wikipedia Outage by edpichler on Wednesday February 22, 2023 @05:28AM (#34893839)
Wow, this project is super cool. Thanks for sharing it.
Re:Wikipedia Outage by fmajid on Wednesday February 22, 2023 @06:25AM (#34894187)
You can even set up a local kiwix-server as a web server to serve up the ZIM for those who don't have Kiwix installed (or space on their devices, the full English-language Wikipedia with images is about 82GB).
Re:Wikipedia Outage by hddherman on Wednesday February 22, 2023 @06:35AM (#34894246)
That’s what my setup is running off of, just a kiwix-serve command pointed at a folder of .zim files and exposed through nginx.

I have a write-up of the technical details as well: https://ounapuu.ee/posts/2021/12/09/self-hosting-wikipedia/

Re:Wikipedia Outage by ColinWright on Wednesday February 22, 2023 @04:39AM (#34893530)
Feb 22, 2023 - 09:25 UTC : Investigating - Issues with accessing some wikis

Feb 22, 2023 - 09:36 UTC : Monitoring - A fix has been implemented

Re:Wikipedia Outage by __forward__ on Wednesday February 22, 2023 @04:47AM (#34893577)
Wikipedia is one of those services about whose reliability I have never thought, simply because it always seems to work. Very impressive especially considering that their tech stack doesn't appear to be the most modern or is (in the case of php) especially known for its robustness.
Re:Wikipedia Outage by tux3 on Wednesday February 22, 2023 @05:04AM (#34893684)
They do have a pretty complex infra with redundancy, extensive caching, the whole works. But I think they use a relatively boring, reliable stack throughout. It doesn't look like they run a lot of GARTNER MAGIC QUADRANT Cloud Solutions to Supercharge™ their web-scale data blazingly.

On the plus side solid stable software can run for decades without incidents, as long as the hardware is willing. The main negative is that it's not as Supercharged™ as the latest cloud product with a 99.9% SLA, which itself relies on 5 other internal microservices with 99.9% SLA each.

Re:Wikipedia Outage by melx on Wednesday February 22, 2023 @05:12AM (#34893743)
5 internal microservices? I thought the Supercharged™ had deployed 256 microservices last week alone.
Re:Wikipedia Outage by fmajid on Wednesday February 22, 2023 @06:22AM (#34894160)
I doubt anyone at HN takes Gartner seriously, as James Plamondon (Microsoft) wrote:

> Analysts sell out - that's their business model. But they are very concerned that they never look like they are selling out, so that makes them very prickly to work with.

The question is, who is gullible enough to still believe Gartner has any value? You'd think by now even the most clueless of MBAs would have caught on.

Re:Wikipedia Outage by eitland on Wednesday February 22, 2023 @04:56AM (#34893632)
Lots of valid criticism exist for PHP, but not robust isn't something I would say.

(Lots of the criticism is exaggerated as well.)

Re:Wikipedia Outage by favaq on Wednesday February 22, 2023 @05:36AM (#34893885)
Uh? If anything wikipedia is robust because their tech stack isn't modern.

Also php is robust as fuck

Re:Wikipedia Outage by cr3ative on Wednesday February 22, 2023 @05:02AM (#34893671)
I'm a big fan of "boring" technology for this reason. Huge knowledge base behind the existing stuff. No real need to change.
Re:Wikipedia Outage by londons_explore on Wednesday February 22, 2023 @05:02AM (#34893673)
Remember that they mostly serve static content to non-logged-in users.

As long as the cache layer is working, most people wouldn't notice an outage.

Re:Wikipedia Outage by midasuni on Wednesday February 22, 2023 @04:54AM (#34893620)
Maybe that’s why it’s so reliable.
Re:Wikipedia Outage by mritzmann on Wednesday February 22, 2023 @04:57AM (#34893639)
Thought the same thing. Finding the root cause is easier when you don't have to debug dozens of abstraction layers (KVM, Containerd/Docker, Kubernetes, etc).
Re:Wikipedia Outage by siva7 on Wednesday February 22, 2023 @05:01AM (#34893668)
Operating at this scale you can assume that all these things you mentioned do exist :)
Re:Wikipedia Outage by rvnx on Wednesday February 22, 2023 @05:05AM (#34893692)
It's all public: https://wikitech.wikimedia.org/wiki/Wikimedia_infrastructure

You can even get access to devops/SREs tickets (and IRC messages)

Re:Wikipedia Outage by baq on Wednesday February 22, 2023 @05:05AM (#34893693)
Docker? You’re probably right. K8s? Wouldn’t be so sure. Would like to hear from the horse’s mouth though.

Edit: looks like it’s used. Wonder if it’s more tooling than production traffic. No time to dig further.

Re:Wikipedia Outage by tecleandor on Wednesday February 22, 2023 @05:14AM (#34893753)
Re:Wikipedia Outage by baq on Wednesday February 22, 2023 @05:03AM (#34893679)
You’re implying serious and useful work can be done in a stable tech stack? Preposterous.

Seriously though, not a fan of php at all but the js tooling is rocket science in comparison.

Re:Wikipedia Outage by mschuster91 on Wednesday February 22, 2023 @05:07AM (#34893703)
> Seriously though, not a fan of php at all but the js tooling is rocket science in comparison.

laughs in left-pad, Webpack, Grunt, ...

JavaScript tooling absolutely sucks - even for a moderate sized project, `npm install` can take many minutes, often enough because some native code has to be compiled. Webpack builds can take even longer.

In contrast, with PHP you run `composer install` and it works, no bundling or whatever required.

Re:Wikipedia Outage by baq on Wednesday February 22, 2023 @05:11AM (#34893733)
Back when I was doing serious work in php it was ftp (yes, no ‘s’) the php files onto an Apache box and that was it! Go went the same way, at least.
Re:Wikipedia Outage by Shish2k on Wednesday February 22, 2023 @03:33PM (#34902220)
I think that’s what they meant - “rocket science” as in “way too complicated for 99% of down-to-earth jobs”
Re:Wikipedia Outage by ErrantX on Wednesday February 22, 2023 @04:59AM (#34893659)
The Foundation have invested a lot over the last decade in reliability. Nowadays it is in a great place, but about 10 years ago it was up and down all the time.
Re:Wikipedia Outage by mschuster91 on Wednesday February 22, 2023 @05:05AM (#34893687)
> or is (in the case of php) especially known for its robustness.

It's 2023, can this pointless PHP bashing please stop once and for all if you're not talking about Wordpress?

In some cases, "keep it simple and stupid" is the thing to go - MediaWiki has mastered this.

Re:Wikipedia Outage by phoe-krk on Wednesday February 22, 2023 @04:47AM (#34893579)
Tangential: what is the current funding status of the Wikimedia Foundation related to the donation banners that have started popping up on Wikipedia a day ago or so?
Re:Wikipedia Outage by rvnx on Wednesday February 22, 2023 @04:58AM (#34893654)
Running the structure is expensive. According to Wikimedia, base salaries are 20000 USD to 30000 USD per month or so. It has to be paid somehow.

https://meta.wikimedia.org/wiki/Wikimedia_Foundation_salarie...

Re:Wikipedia Outage by londons_explore on Wednesday February 22, 2023 @05:05AM (#34893695)
It switched from a charity-like operation, with barebones staffing and incredible benefits for users per dollar spent, to a 'splash the cash and hope' strategy.

I personally don't want my money spent like that, so I don't donate.

Re:Wikipedia Outage by anon___ on Wednesday February 22, 2023 @06:22AM (#34894162)
Re:Wikipedia Outage by londons_explore on Wednesday February 22, 2023 @06:35AM (#34894248)
From the page:

In 2005, they were doing 1.6 billion pageviews monthly, with a bandwidth budget of $5000/mo and a staff of 1.

By 2015, their pageviews had gone up 11x. Their bandwidth costs had gone up 33x, and their staffing costs 1250x.

In my view, both bandwidth and staffing costs should be nearly linear with pageviews - and ideally a little sublinear.

Re:Wikipedia Outage by justeleblanc on Wednesday February 22, 2023 @04:53AM (#34893614)
It's already back up. Was this post really necessary?
Re:Wikipedia Outage by qwery on Wednesday February 22, 2023 @05:06AM (#34893700)
I'm not sure that the person who submitted this could have considered the fact that the service has now been restored, regardless of how imminent the restoration was.

It's an interesting event (albeit it relatively low impact one) which we would not have known about if it wasn't posted here. Also, check out the wikimedia service status page, pretty cool, huh?

Re:Wikipedia Outage by danuker on Wednesday February 22, 2023 @05:14AM (#34893751)
Indeed. I not only find it impressive how honest it is (as opposed to others[1]) but also how quickly they resolved the event.

[1] - https://ably.com/blog/honest-status-reporting-aws-service

Re:Wikipedia Outage by justeleblanc on Wednesday February 22, 2023 @01:43PM (#34900550)
The incident took ten minutes to resolve. What's the point of immediately rushing to HN whenever a large website is transiently down?
Re:Wikipedia Outage by zorr on Wednesday February 22, 2023 @06:25AM (#34894186)
These kinds of posts are interesting to learn more about the architectures and failure modes at play.

I agree that HN should not be a down detector but for a high profile service with infrequent outages like Wikipedia in this instance, a post with discussion is acceptable in my eyes.

Re:Wikipedia Outage by yla92 on Wednesday February 22, 2023 @05:06AM (#34893696)
FYI they also have a nice public Grafana instance at https://grafana.wikimedia.org

It has all the info about HTTP requests, DB info, CDN, etc.

The wiki page about this https://wikitech.wikimedia.org/wiki/Grafana

Re:Wikipedia Outage by yread on Wednesday February 22, 2023 @05:32AM (#34893869)
Interesting. I kinda expected more traffic. 20 edits/s, 100k request/s. One tuned box could handle that
Re:Wikipedia Outage by bdsa on Wednesday February 22, 2023 @05:56AM (#34894000)
Not sure about the edits, but the title of the requests graph including "Varnish frontend CDN" and the query ("job_method_status:varnish_requests...") imply to me that those are the requests from a frontend cache (Varnish) or series of caches to the backend, rather than all requests.

(I'm not 100% sure you intended to suggest Wikipedia only gets 100k requests/s, I just thought it was an interesting discussion point.)

Re:Wikipedia Outage by Philip-J-Fry on Wednesday February 22, 2023 @06:42AM (#34894293)
Based on all the monitoring I've ever seen, the stats for Varnish would be the requests into Varnish.

If you wanted actual requests into the app servers you would look at those stats, and from that site, it's like ~5k req/s.

https://grafana.wikimedia.org/d/RIA1lzDZk/application-server...

I'm not sure why you think 100k req/s is low for Wikipedia

Re:Wikipedia Outage by college_physics on Wednesday February 22, 2023 @05:13AM (#34893749)
Wikipedia is maybe the most important open source project ever (competing only with linux, but that is operating at a more hidden technical level)

This (non)episode of "wikipedia outage" is as good prompt as any to get our collective human chatGPT going :-). Here is my take:

Wikipedia's world-changing impact has been stifled in the era of centralized walled gardens regurgitating memes and ads and isn't really future-proof. Yes you can run you own mediawiki but 1) it not very easy or pleasant at all and 2) knowledge base federation [0] is still a distant dream and 3) its whole stack is nowhere near being integrated with other open source tools that people have at their disposals (heck, even the wiki markup is now a lone exception in the markdown monoculture)

Somehow the next decade of wikipedia should look much more decentralized, resilient and integrated and that could be a sublime next level.

[0] https://www.mediawiki.org/wiki/Wikibase/Federation

Re:Wikipedia Outage by richardwhiuk on Wednesday February 22, 2023 @05:23AM (#34893799)
Unclear there's substantial additional value by it being decentralized.
Re:Wikipedia Outage by danuker on Wednesday February 22, 2023 @05:31AM (#34893858)
Indeed, I'd rather have a single version of a truth most people can agree on, rather than thousands of bubbles each spewing their own agenda.
Re:Wikipedia Outage by college_physics on Wednesday February 22, 2023 @06:01AM (#34894040)
That would be one of the many issues to resolve in a federated context. But achieving "consensus" is never trivial and compromises and choices underlie its current model too.
Re:Wikipedia Outage by college_physics on Wednesday February 22, 2023 @05:57AM (#34894013)
there is vastly more (and ever exploding) knowledge than what the current wikipedia model can integrate (talking always about public knowledge).

Unless there is a breakthrough in how the open source ecosystem integrates, validates, federates public knowledge somebody else will claim that they can better "organize the world's information" (using, e.g "AI") and we will probably not like the new state of the world.

I think there is substantial value in preventing that outcome from happening. NB: I use the term decentralization not just a technical database/server architecture but also as a means of engaging far more resources.

Re:Wikipedia Outage by psychoslave on Wednesday February 22, 2023 @08:22AM (#34895016)
> there is vastly more (and ever exploding) knowledge than what the current wikipedia model can integrate (talking always about public knowledge).

Sure, but there is two vastly different "distributed" architecture at stake here:

- the social one, as in everyone can contribute easily in positive constructive manner, with optimized user path for each user level and interest, and no worry to have about any form of online harassment/bullying or outdoor threats like the-angry-party-staring-at you that might make you vanish for contributing the-wrong-thing-under-the-bad-perspective

- the technical one, which is mainly about "no single point of failure"

Sure there are things that largely overlap, but still two vastly independent set.

Re:Wikipedia Outage by college_physics on Wednesday February 22, 2023 @09:13AM (#34895792)
> Sure there are things that largely overlap, but still two vastly independent set.

Yes they are by no means the same aspect but the technical (the design part) and "social" domain (how human actors interact using the technology, what incentives they have to contribute, how easy it is to contribute, how to form consensus etc) are never very far apart.

My argument is a general one. If, say, ten years from now wikipedia is to have the same quantum leap impact and positive role it had twenty years ago (when it first got going) it will have to be much more ambitious. But that ambition is unlikely to be served well by a forever centralized service because most knowledge is produced, stored and consumed in distributed ways.

Just for conreteness, think of all those other sources of public knowledge: from openstreetmap, to research paper archives, musea collections and many other public institutions of all kinds (laws and regulations, public statistics etc). Right now everything must come to a centralized store but the size of wikipedia is already flattening [0] and a lot of that data never gets referenced or is a very cumbersome manual job.

In any case, as per link in my other comment some federation is part of the plan (wikibases) and there is the broader "linked data" movement. Its just that at some point those ideas have to get real legs and start walking :-).

[0] https://en.wikipedia.org/wiki/Wikipedia:Size_of_Wikipedia

Re:Wikipedia Outage by xnickb on Wednesday February 22, 2023 @06:32AM (#34894234)
Decentralization implies more complex failure modes and unclear paths to resolve them. Not sure how that'd help.
Re:Wikipedia Outage by college_physics on Wednesday February 22, 2023 @07:13AM (#34894467)
thats a strange assertion when the internet was famously invented to eliminate complex failure modes. Quoting from "DARPA and the Internet Revolution" By Mitch Waldrop [0]

"Finally, Roberts decided to make the network completely decentralized, with no one master computer responsible for sorting the packets and routing them to their destination. Such a Grand Central Station approach would have been much simpler to implement, Roberts knew. But one blown transistor could have taken the whole network down.

So instead, he decreed that the ARPA sites would be linked in a complex pattern rather like the Interstate highway map, and that each site would share the routing responsibilities equally. That is, the computer there would read the digital address on each packet as it came in, accept that packet if the address was local, or else send it off again on the next stage of its journey.

This “packet-switching” approach would mean more complexity and more programming during the set-up phase. But the final system would be far more robust: No one failure could bring it down."

[0] https://www.darpa.mil/about-us/timeline/modern-internet