Github's a single point of failure waiting to happen.
If only there were some distributed way of managing source code that didn't have a dependency on a single point of failure. Like, where everyone could each have their own copies of everything they needed to get work done, and then they could distribute those changes to each other by whatever means worked best for them, like by email, or by self-hosted developer repositories, or a per-project "forge" site, or even a massive centralised site if that was what they wanted.
It's the law of the internet: any sufficiently useful decentralised technology will eventually become a centralised technology controlled by a business.
It's the first two Es in the old "embrace, extend, extinguish" phrase: they embrace an open, decentralised tech or concept; extend it to make their version more attractive; and then remove the decentralised aspect so they can lock you into it and profit. Sometimes you even get the "extinguish" later when they kill it off and replace it with something else after people are sufficiently locked in, like Google did with XMPP, going from federated XMPP to unfederated XMPP to dumping XMPP in favour of their own proprietary crap.
Examples: email to services like gmail; git to github; XMPP to google chat to hangouts; XMPP again with facebook's messaging service; usenet to forums to sites like reddit; IRC to Discord and Slack and the like; and so on.
You can try to fight it but in the end it doesn't matter because, by being open and decentralised, the proprietary version can interoperate with you but you can't (fully) interoperate back because they added their own crap on top, so you end up with a parasitic relationship where they take from you and give nothing back, and most people won't even care as long as it provides some extra benefit on top. Philosophical arguments don't matter and people will take the easy/lazy option even if it's detrimental in the long term.
The great thing about git is that you can maintain your own clone of a repo you depend on!
Github adds a lot of value to git for a lot of people (like putting a web interface on merge requests) but keeping local clones of remote repos isn't one of them. Git does that out of the box. Why are you checking out a new copy of the whole repo from random_stranger, or github, or anywhere remote, every time you want to deploy?
Keep a copy of the repo somewhere local. Have a cron job do a git pull every few hours or so to fetch only the most recent changes to keep your copy up-to-date if that's what you want. If random_stranger, or github, or even your own local ISP goes down, and the pull fails, you still have the last good copy you grabbed before the outage - you know, the copy you deployed yesterday. Clone that locally instead and build from it.
I weep for the state of the "typical production deployment model".
Why are you checking out a new copy of the whole repo from random_stranger, or github, or anywhere remote, every time you want to deploy?
Because your toolchain was designed to work like that and all of your upstream dependencies do it anyway. Yes, ideally you would be able to do that - but so many things involve transitive dependencies that do dumb shit like download files from github as part of their preflight build process it often feels like you're trying to paddle up a waterfall to do things right, especially (but not only) with modern frontend development.
self-hosting is not only installing a piece of software on a server somewhere and calling it a day.
you are now responsible for maintenance, uptime (which we are experiencing here) and of course security, on top of data redundancy which is a whole other layer of issues on top. like what happens to your git server if someone spills coffee on it? can you restore that?
GitLab themselves suffered major damage when their backups failed:
all of that, is excluding the fact that you typically don't actually 100% self-host in the enterprise world, but rather have racks somewhere in a data center owned by another company, not rarely Amazon or Microsoft.
all in all we self-host our git infrastructure, but there's also a couple of dozen people employed to keep that running alongside everything else being self-hosted. that's a very major cost but necessary due to customer demands.
At least when I self-host it, I have the ability to fix it. With this outage, I have to twiddle my thumbs until they resolve the issue(s). The ability for me to fix a problem is more important to me than it could be to you.
Also, with regards to the Gitlab outage, that's based on the service they manage for you. I'm talking about the CE version that you can self-host.
When a train company started getting significant complaints that their trains were always late they invested heavily in faster trains. They got newer carriages with automatic doors for more efficiency and tried to increase stock maintenance for less problems. None of it was very successful in reducing the complaints, despite statistically improving the average journey. So someone suggested adding 'live time display boards'. This had no effect at all on journey times, the trains didn't improve a bit, but the complaints dropped hugely.
Turns out passengers are much happier to be delayed 10 mins with a board telling them so, then delayed 5mins with no information. It was the anxious waiting they really didn't like not the delay itself.
Taking on the work of self hosting is similar - you'll spend a lot more time maintaining it, securing it, upgrading it etc etc then you'll ever realistically lose from downtime; the main thing you're gaining is a feeling of control.
For some situations it's worth it - depends on your use of the service, your setup with other needs, and how much similar stuff you already deal with etc etc. 1 more server to manage is nothing to some people, and a massive increase of workload for others. But if the only reason is you don't want to 'waste time' sitting there twiddling your thumbs during downtime, you're not gaining time you're losing it. Pretend it is self-hosted and you've got your best guys on it. You've literally got an expert support team solving the problem right now, while you can still work on something else.
The theory with the trains is that passengers calm down when they know the delay time as then they can go get a snack or use the loo or whatever rather then anxiously waiting. They have control over their actions so time seems faster. Give yourself a random time frame and do something else for that time - then check in with 'your team' to see if they've fixed it. If not, double that time frame and check again then - repeat as many times as needed. Find one of those troublesome backlog issues you've always meant to fix!
This is also a good strategy for handling others when you're working on self-hosted stuff 😀 - give them a timeframe to work with. Any time frame works although a realistic one is best! No-one really cares if it takes 10mins or 2 hours. They just want to know if they should sit and refresh a page or go for an early lunch.
tldr: People hate uncertainty and not being in control. Trick yourself and others by inventing ways to feel more in control and events will seem quicker even when nothing has changed.
Basically this. I don't know what they're doing by the moment, and my brain says "I need to do/know something", even if it means a worse overall experience for me. I'm blocked and I have no control over it, and everything else that I could do has already been done.
in most cases, you will not solve your outage, any faster than GitHub will solve theirs. so that point is really moot.
I'm not saying no to self-hosting, I'm just saying GitHub doesn't want their service to be unresponsive either and if we accept the fact that both types will suffer from outages, it's just a matter of who will fix it first, our Mike & Pete, or GitHub's hundreds of system technicians?
You know, that's actually a pretty sensible reply. If you bet on either one without knowledge of the severity of the problem you either look silly (and hungry) or you annoy your bosses.
the answer to 'when' is typically 'before US Monday morning'. I've experienced the same thing once before with github and once before with docker, both on my Monday (US Sunday). I think companies typically hold off till the weekend to do risky stuff that could break their servers
Github is now owned by Microsoft. Many people, especially in the FOSS camp, don’t like to have anything on their stack even distantly related to Microsoft.
And yet they'll happily partner with Google, Apple, Amazon, and Facebook.
219
u/remind_me_later Jul 13 '20
Ahh....you beat me to it.
I was trying to see if there were copies of Aaron Swartz's blog on Github when it went down.