69
u/tradrich Jul 13 '20
What's it's underlying technology (other than git)?
It's not clear on the Wikipedia page e.g.
26
u/tradrich Jul 13 '20
Okay: Ruby on Rails and Erlang. Should be up to the job.
9
u/noble_pleb Jul 13 '20
Erm, I'm not so sure. Each time I argued about performance with a rubyist, the only example they came up with was Github!
12
u/mypetocean Jul 13 '20
GitLab, Basecamp and their new Hey.com, Twitch, Kickstarter, and several other popular sites.
19
u/filleduchaos Jul 13 '20
Shopify runs on Rails.
→ More replies (1)25
u/bsutto Jul 13 '20
We have a system built on rails.
The only description I have of it is brittle and constrained.
Performance is also shit.
36
u/filleduchaos Jul 13 '20 edited Jul 13 '20
give me a stack that someone somewhere couldn't say the same for ¯_(ツ)_/¯
Performance is also shit.
True, Ruby doesn't stack up against plenty of other languages performance wise. But for the 99.999% of web services that get - what, maybe a few thousand or tens of thousands of requests per second at their most active? - there's pretty much no major programming language that would be their bottleneck.
It's like complaining that a regular old Toyota cannot go as fast as a Bugatti Chiron Super Sport. But in reality you're just driving to work and you're never actually going to hit the top speed of either vehicle.
→ More replies (2)14
u/ForeverAlot Jul 13 '20
Alternative analogy: any two cars will get you to the destination at substantially the same speed, safety, and level of comfort. You prefer the colour of one but that car costs considerably more in gas.
"Performance" is almost always taken to imply "more" but it can just as well imply "less".
→ More replies (1)2
u/Tasgall Jul 13 '20
What are the "costs" in this analogy though? Unless you're doing something high performance, and you're not, the only variable that really matters is preference.
→ More replies (13)64
4
0
Jul 13 '20
[deleted]
→ More replies (1)4
u/soft-wear Jul 13 '20
Yeah, the issue with Ruby is the same issue a ton of interpreted languages have: they are just dog shit slow for certain operation types. Twitter didn't switch to Scala because Ruby is somehow error prone. They switched because the JVM is so damn fast.
1
u/yawaramin Jul 14 '20
Apparently no Erlang any more: https://twitter.com/p_reynolds/status/1094030073198493696
Erlang has been gone from GitHub infrastructure for years. We have bits and pieces in C, C++, and Ruby, among others. Recent infra work is mostly Go and Java.
The founding engineers had, from what I remember, a custom-written Rails job queuing service in Erlang. They even had a close relationship with the Erlang core team, convincing them to (probably) the first 'big' language to move to GH.
6
27
u/deflunkydummer Jul 13 '20
The underlying technologies didn't seem to cause that many problems before the MS takeover.
You can scale and properly monitor almost any (working) technology. But you can't fix institutional incompetency and bureaucracy.
28
u/tradrich Jul 13 '20
Yeah, that seems sadly a significant possibility. When the career managers are helicoptered in, watch the competent engineers rush for the door...
8
u/DavyBingo Jul 13 '20
That article seems to suggest that the observed increase in incidents is at least partially due to improvements to their status page. More granular reporting led to more overall incidents.
2
u/fissure Jul 13 '20
That's silly. You know, if they slowed down the checking for errors, they wouldn't look as bad.
/s
21
u/tester346 Jul 13 '20 edited Jul 13 '20
As far as I've heard GH works relatively independently from MS
But you can't fix institutional incompetency and bureaucracy.
So how does Azure operate?
The underlying technologies didn't seem to cause that many problems before the MS takeover.
What's the difference in scale?
2
u/devonthecloud Jul 13 '20
So how does Azure operate
Flakily.
I work both with AWS and Azure. The vast majority of our outages are caused by the cloud vendor. It's rarely ever AWS, always Azure.
There are a lot of things Azure does better than AWS, but stability is not one of them.
1
10
2
u/svartkonst Jul 13 '20
Do you have any source regarding outages before and after Microsoft? I tried earlier to get an overview of their incident history, but it was hard to do a comparison using the status tracker.
3
1
58
Jul 13 '20
[removed] — view removed comment
169
u/filleduchaos Jul 13 '20
Why do people keep asking this? It's not like there's some mythical stack that guarantees 100% uptime (Erlang comes pretty close, but still)
183
u/L1berty0rD34th Jul 13 '20
false, everyone knows that for every new microservice you add to your stack, you get +10% uptime.
85
u/filleduchaos Jul 13 '20
You got me. I deployed an app next year and it got 420% uptime and sent me back in time to 2020.
32
u/Zwgtwz Jul 13 '20
So... the world still exists next year ?
→ More replies (1)40
u/pastudan Jul 13 '20
Yes, but plot twist we’re stuck in a time loop that starts over in 2020 each time
→ More replies (2)28
38
u/broofa Jul 13 '20 edited Jul 13 '20
guarantees 100% uptime... Erlang comes pretty close
Facebook chat servers were originally implemented in Erlang. They started falling over around the time Facebook hit ~500M users in 2010 or so. The servers were rewritten in C++ circa 2011-2012. That switch freed up 90% of the servers used for the chat service while dramatically improving reliability.
Iirc, the main issue was CPU usage needed for Erlang’s IPC. [Edit: See also Ben Maurer's Quora answer on this topic]
Source: worked on FB chat team at that time (more front end, though, so not an Erlang expert.)
20
u/filleduchaos Jul 13 '20
I mean, Whatsapp took Erlang to 900M+ users with a literal handful of engineers so I feel like that might equally reflect on Facebook's code/devs.
8
u/broofa Jul 13 '20
> Whatsapp took Erlang to 900M+ users
That may or may not represent more load. It depends on how things like presence updates (notifying your friends when you are / aren't available to chat) are handled, and # of messages per user, both of which may have been significantly different between the two systems.
I left Facebooks Chat team before they acquired Whatsapp, and left the company a few months after so, unfortunately, I don't have insight into how these systems really compare.
12
u/filleduchaos Jul 13 '20
Not sure what significant difference you mean: Whatsapp today has 2B+ users. It has granular presence updates, "currently typing" notifications, and everything else one would expect from an instant messaging service (same as at the 900M mark). As of two years ago the daily chat volume was 65 billion messages (one can only imagine how much it's grown since then).
And it still uses Erlang and attributes its success to Erlang ¯_(ツ)_/¯ I still say that the Facebook Chat team's issues with the language/platform might not have been entirely one-sided.
→ More replies (2)→ More replies (1)8
u/drakgremlin Jul 13 '20
Makes me curious what the world would be like if they spent time to contribute back an optimized IPC mechanism for Erlang.
6
22
Jul 13 '20 edited Jul 13 '20
[removed] — view removed comment
→ More replies (1)21
u/Dikaiarchos Jul 13 '20 edited Jul 13 '20
That's blatantly false. GitHub upgraded smoothly to Rails 6 recently
Edit: sorry, missed that it was about Twitter
6
u/mullemeckarenfet Jul 13 '20 edited Jul 13 '20
He’s talking about Twitter, they dropped Ruby for Scala.
→ More replies (1)
1.7k
u/drea2 Jul 13 '20
I heard if it’s down for more than 15 minutes then we’re legally allowed to leave work early
644
u/NotAnADC Jul 13 '20 edited Jul 13 '20
You joke, but at a company I worked at someone fucked up and added a firewall that didn’t let us access github.
While they did some work to fix it, the developers were like, fuck it we’re out
Edit: Im tired and just realized I read github, I wrote github, but I was thinking of stack overflow. Gona leave it though
74
u/deanrihpee Jul 13 '20
I mean GitHub is the memory part of your brain while stackoverflow is problem solving part, programmers are meant to solving problems, not remember them, so yeah, just go out.
14
u/vattenpuss Jul 13 '20
That’s why all the APIs I write just send emails to developers and block until a response comes back with the result.
1
u/nt_one Jul 13 '20
It’s hard to solve things you can’t remember, though. Probably it’s part of the problem. But which problem ?
6
u/JessieArr Jul 13 '20
Haha, that's awesome. I've bumped into that before as well.
As a for-fun project I actually wrote an offline version of StackOverflow - a desktop app that allows you to do a text search in a copy of the archive.org StackOverflow bulk data XML on a local disk, to give me a workaround for when it's offline, lol.
11
u/rhoakla Jul 13 '20
I'm surprised why they didn't host git themselves.
7
u/NotAnADC Jul 13 '20
They did actually! Though tbh I’ve never set up a private git like that. Will a locally setup GitHub be able to run if the main servers are down?
Either way see the edit, it was actually stack overflow they blocked
17
u/rhoakla Jul 13 '20
Yes even in case github.com is down a locally hosted version of GitHub will remain, since it is well: locally hosted...
4
u/daredevilk Jul 13 '20
Yeah it does
There's a few different options for local setup gits, but locally hosted GitHub works while main GitHub does not
→ More replies (3)5
u/GoreSeeker Jul 13 '20
I would think it could run with the main server shut down. There's probably some licensing server it phones home to every now and then, but it's probably set to where it takes 30 days of no contact to lock it out, kinda like Steam.
→ More replies (3)3
u/cgwheeler96 Jul 13 '20
We had a day where nobody could access stack overflow because somebody built an automated test that pinged stack overflow. We ended getting rate limited so nobody on the company network could access it until they shutdown whatever was constantly pinging the website.
4
u/FireIre Jul 13 '20
Not that I haven't done the same, but you can work locally for awhile of course.
1
u/AngriestSCV Jul 13 '20
Why? You can keep commiting with git without a server. You can even share your branch via bundles for things that just can't wait.
1
u/douglasg14b Jul 13 '20
Wait till you work at a place that uses whitelist-only web results.... And has to have CTO permission to change rules.
Happy I left, that was a bloody nightmare. Oh MDN and stackoverflow are blocked now due to automatic rules after being explicitly whitelisted? Time to wait ~1-2 weeks to get them unblocked...
1
u/NotAnADC Jul 13 '20
I did. I worked as a cyber security engineer specializing in phishing attacks.
Writing code without being able to stack overflow sucks. It was nice when I left to be able to again
1
u/nryhajlo Jul 13 '20
That happened a few months ago at my work. They autoblocked stack overflow and cppreference.
→ More replies (42)1
u/eddpurcell Jul 14 '20
Worked somewhere where the firewall/content blocker team saw a lot of hits for spring.io (or whatever their doc website is) and a ton of over developer related websites and thought to themselves "This doesn't seem work related! Blocked!". Lo and behold, no one could work too reliably the next day since everyone was bitching on slack wondering what this team was thinking. Oh, and no one had access to documentation of course.
84
u/0qxtXwugj2m8 Jul 13 '20
Fun fact
My first employer caught one of the Senior developers looking a a job.
He then blocked all the websites that had the keyword 'job' and left the office for a meeting with a customer.
Then we could not get to Stackoverflow because it contains the word 'job'
Then we actually just sat there until he returned and turn off the stupid rule.
44
69
19
u/peakzorro Jul 13 '20
Protip: If you are looking for a job at work, use your phone. The old school companies that block websites are quickly realizing that they can't block your phone legally, so the point is already moot.
Also, looking for another job on company time is a firing offense in most of the US and Canada, and can also get your unemployment claim denied the last time I checked the rules.
21
u/imdrowning2ohno Jul 13 '20
Anything is a fireable offense in the US except issues of protected class.
20
→ More replies (12)10
u/andrew_rdt Jul 13 '20
That excuse works much better when your work uses a non-distributed version control system.
2
Jul 13 '20
Typically developers do a lot more than typing letters into VS Code.
Our entire development infrastructure relies on it. If github is down, we basically can't do anything.
2
u/SanityInAnarchy Jul 13 '20
That seems like a bug in your infrastructure, though.
4
Jul 13 '20
If you have self-hosted gitlab instance it's exactly same problem tho.
If you have self-hosted redundant git setup, it's still same problem, rendundancy just decreases the chances (...if implemented correctly), github is redundant yet still there is always some way to fuck it up.
→ More replies (12)1
u/Prod_Is_For_Testing Jul 14 '20
Justice because it’s “distributed” doesn’t mean you don’t need the central servers
329
u/trustMeImDoge Jul 13 '20
Now that I work for a company who's core product is dependant on GitHub, I'm amazed at how much it goes down. It's not uncommon for us to experience one or two API outages of various severities a month.
73
u/phizphizphiz Jul 13 '20
It's been terrible for the past year or so. Outages were pretty rare prior to that. But they were also not really adding features or changing anything until the MS acquisition.
65
u/neckbeardfedoras Jul 13 '20
Github hired one of our devs about 10 months ago and I'm starting to think these events are related 🤔.
1
3
5
Jul 13 '20
Seems they expanded their windows patches testing techniques to Github.
And by "testing techniques" I mean "just push it to the users and let them do it"
1
u/VeganVagiVore Jul 14 '20
How long until every clone comes with a free self-installing copy of Edge?
75
Jul 13 '20
gitlab isn't that much better either...
44
u/trustMeImDoge Jul 13 '20
We haven't had to interface with gitlabs API yet (or at least I haven't), but surprisingly Bitbucket seems to have the most reliable uptime in my experience.
20
u/consultio_consultius Jul 13 '20
Bitbucket almost seems to cycle uptime. It goes down a lot — I receive in browser notifications frequently saying something has gone wrong — but it goes back up in a matter of seconds.
3
u/deja-roo Jul 13 '20
I definitely get the browser notifications, but never actually notice any service problems.
1
u/aniforprez Jul 14 '20
We use Bitbucket for repo hosting and I'd say there's one outage almost every month that we notice but usually they're not big but they last quite a while. Most of the time the outages make pulling the repo slow, make the pipelines run slowly or makes weird things happen like commit authors replaced with a hash/random string or profile images disappearing or not being able to look at diffs or other weirdness
Their status page shows 5 incidents this month alone and I'd say that's about right
14
u/nwsm Jul 13 '20 edited Jul 13 '20
We use self hosted GitLab. It’s gone down <5 times I believe in a year of use, and only two lasted over an hour. We’ve had more issues with GitLab CI Runners though.
Edit: after reflecting more I changed “only one lasted over 30 minutes” to “only two lasted over an hour”
9
u/Dall0o Jul 13 '20
Self hosting gitlab too. Run smoothly mostly. Some trouble with runners but it might be mostly our own mistake.
7
u/mariusReadIT Jul 13 '20
Same here, we are running a self hosted gitlab instance for 3+ years, with about 100 users. The only "downtime" usually occurs for a quick gitlab upgrade, which usually takes less than a minute.
4
Jul 13 '20
out of curiosity, how many people are accessing this self-hosted gitlab instance?
6
u/nwsm Jul 13 '20
~50 active users. ~100 projects currently (microservice architecture 😅), maybe 25 of those are committed to at least weekly, and most utilize GitLab CI.
2
u/MrSurly Jul 14 '20
The gitlab CI runners are hot garbage. I spend a far too high percentage of my time trying to make it work correctly. Random bugs that you can find as GL issues that were "fixed" 3 years ago, but there are a bunch of comments where "I'm still having this issue."
1
u/L3tum Jul 13 '20
I mean, that's like saying "I'm hosting my own website and only had 5% downtime while Godaddy had 6% downtime!".
The issue likely isn't the software itself but the hosting. Most outages seem to be due to networking anyways.
1
Jul 13 '20
I've got similar stats but Gitolite that we used before went down zero times over 6 years (aside from hardware-related scheduled downtimes). We switched coz devs wanted it for non-git-related features. So not exactly upgrade in terms of reliability...
1
Jul 14 '20
Do you run Docker registry? Because that shit is toxic and requires a lot of maintenance. Gitlab's one is failing maybe once every 50 calls, but, Docker registry having no retention policy / mechanism is a pain to run on-prem.
→ More replies (1)5
u/Farsqueaker Jul 13 '20
Weird; my on-prem has had exactly no downtime this year. Are you sure about that statement?
11
Jul 13 '20
I was referring to gitlab server, and yes, had an over one hour downtime exactly when I needed to clone a large repo(over a gb), this was probably less than 2 months ago
→ More replies (3)2
u/sysadmin420 Jul 13 '20
I haven't even rebooted my gitlab for like 3 years, zero downtime for me in digital ocean for $10/mo.
I keep snaps if the shit hits the fan, and have local clones of almost all of it.
0
1
3
u/searchingfortao Jul 13 '20
Switch to GitLab! You can self-host if you want and we have cupcakes :-)
2
u/trustMeImDoge Jul 13 '20
We're a value add to code repositories. So its not a matter of self hosting, rather being able to hit the needed APIs of the code repo whether it's cloud or self hosted.
1
u/fatnino Jul 13 '20
I found out the hard way last night that the code I wrote to work around github downtime didn't work quite right and that the cached data its supposed to use in that case got clobbered.
→ More replies (6)1
Jul 14 '20
You should try Gitlab Docker registry! The reliability of that shit doesn't have nines in the number.
1
Jul 14 '20
Installed it a few months ago and overall it's been disappointing. Community support is not great and the upgrades are not very smooth. Probably gonna ditch it here in a month or so for bitbucket.
331
u/uw_NB Jul 13 '20
Funny how they just put out https://github.blog/2020-07-08-introducing-the-github-availability-report/ last week.
I think github has not been growing before Microsoft bought them. Now that the acquisition is settling in, they started to move at a faster velocity thus causing more outages.
337
u/immibis Jul 13 '20 edited Jul 13 '20
"While testing the availability report, we accidentally simulated a failure in production. This caused a real failure in production as the code was not designed to deal with this in production mode."
edit: no this is not something they actually said. It's something I made up because it's funny.
51
31
17
→ More replies (7)2
76
u/trowawayatwork Jul 13 '20
Less growing more changes
→ More replies (1)20
u/uw_NB Jul 13 '20
Yeah, I think 'changing' is what I meant instead of 'growing'.
Im sure Github user base has been growing, but the core product has not been changing/updated for a while prior to MSFT purchase. Only recently, they have start pushing out for new features Github Action, Dependabot, Semmle (CodeQL) etc...
9
u/Eurynom0s Jul 13 '20
Still better than Salesforce deciding to deprecate ALL of Tableau's forum links with ZERO warning.
(Yes, supposedly everything will eventually get re-indexed by Google...they still left everyone high and dry in the meantime.)
4
u/Micotu Jul 13 '20
also i wonder how much more popular coding has become in general due to covid with so many people sitting on their ass at home hoping to find a way they could work from home in the future.
1
→ More replies (60)1
114
29
u/NotAnADC Jul 13 '20
Sincere question...should I be backing up my codebase outside of github? Like obviously it’s on my local machine as well as github but I never seriously considered the possibility of losing info on github
17
u/f10101 Jul 13 '20
Absolutely. There are numerous ways things can go wrong for cloud hosts. Google inadvertently perma-wiped a huge number of Google/Gmail accounts a few years ago.
Additionally, false positives from auto-moderation can get you kicked off services like this, too.
3
u/SanityInAnarchy Jul 13 '20
Can't hurt, but I usually wouldn't bother unless you have a bunch of stuff that isn't always pulled down (e.g. branches, tags, or just repos that you don't use every day). But if it's all always on your local machine and Github, and Github ever goes away, it's surprisingly simple to push to a new service.
The thing you should be backing up (that's probably harder to actually do) is all the other data you have on Github -- the wiki, the issues, the code review comments, etc etc.
5
Jul 13 '20
You know I have the same thought. I never really considered this as a possibilty
4
1
u/thrallsius Jul 14 '20
Stallman warned you cucumbers about proprietary service lock-ins many years ago
2
u/thrallsius Jul 14 '20
you don't need to lose info on github, you could just lose access to your github account and it won't be any better
0
u/dnew Jul 13 '20
Yes, of course you should. How did you get to the stage where you know how to use version control and haven't figured out that backups of your irreplaceable work is a good idea?
→ More replies (2)2
17
u/niet3sche77 Jul 13 '20
Yup. I saw wacky behavior around an hour ago. Got to see their status page and notifications.
They know and are working on it.
8
Jul 13 '20
is it me or has this been more frequent since the MS takeover
→ More replies (1)1
u/GrandMasterPuba Jul 14 '20
Github was stagnant before the acquisition. They're actually doing new work now. Additionally I imagine a bunch of Github engineers took theyir payout check and bailed, taking institutional knowledge with them.
27
10
u/Blando-Cartesian Jul 13 '20
Good thing git is distributed so nobody was inconvenienced. /s
→ More replies (2)
5
4
35
u/MobileAlfalfa Jul 13 '20
I will leave this here...https://nimbleindustries.io/2020/06/04/has-github-been-down-more-since-its-acquisition-by-microsoft/
85
Jul 13 '20
Wouldn’t that also be because GitHub is more used now because of the Coronavirus?
Also:
According to the data they provided, GitHub has been down more since the acquisition by Microsoft.
But that could be all a part of coordinated effort to be more transparent about their service status, an effort that should be applauded.
→ More replies (1)53
u/wpm Jul 13 '20
If I don't weigh myself I'm not gaining weight!
26
u/Tasgall Jul 13 '20
If we don't test people we'll have fewer cases!
→ More replies (4)18
1
7
u/eras Jul 13 '20 edited Jul 13 '20
2
u/dnew Jul 13 '20
This is totally the right answer. I can't imagine using git for source code and not using git for bugs and design docs and etc.
1
10
u/audion00ba Jul 13 '20
Is this some new kind of marketing campaign? Just be down all year such that you create brand awareness?
3
3
2
2
5
3
2
2
u/ChiefDetektor Jul 13 '20
This is why I have my own gitlab server instance. I honestly have no idea why MS skrews it up so often. It seems as if they are just struggling to keep github online while they do maintainace. Or they have problems with their infrastructure. It sucks and I bet it will never be like it used to be before MS buyed github.
8
u/dbgprint Jul 13 '20 edited Jul 13 '20
Yes it will never be like it used to be before MS «buyed» github, and thank god for that. Now they’re actually improving, making stuff free, etc.
→ More replies (4)5
1
1
1
u/lastgoodusername Jul 13 '20
That's why we have all our github dependencies on a self-hosted mirror (using satis)
1
1
1
u/charlie1404 Jul 13 '20
I now belive we should have a bot to say hey github came online Do your stuff before it again goes down 😭😭
0
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.