166 points · by napsterbr · 10y ago · 166 comments
Make sure your infrastructure is ready to weather such storms - have local backups and fallbacks, make sure your code is available even if github (or the Internet) goes down.
The more I hear 'cloud', the more I try to depend only on tools that work offline.
If you are connecting different services (message queues, databases, storage, transcoding), and spinning up and down instances based on current demand and spot prices, then cloud hosting is totally different. On the other hand, if you are just renting a couple of dedicated cloud instances, then yeah - they're just (virtualized) servers.
(Because yeah, if I host a Dropbox clone on my Raspberry Pi sitting on the wardrobe, I have my files "in the cloud" now.)
We need a new word for automated, dynamic allocation/deallocation/management of remote instances for various services. Something that would differentiate it from buying a VPS.
It's the cloud-based offline tool storage platform that gives you access to your offline tools...from the cloud!!
My side project https://statusgator.com shows currently a dozen different services all posting warnings or down notices on their status pages. It's mostly CI services and the like, all which break in some way when GitHub is down.
It boggles my mind. If you're not adding a new dependency to the project, your CI server should never hit GitHub when doing builds. Who sets those things up without local cache?
The main reason that we switch to that was exactly to avoid deployment issues. Security is also a bonus (in case somebody modifies existing packages).
Probably there are tools like this for all type of packages.
If you are in a situation that you're using a DVCS but relying on centralised everything else, and saying that you're unable to work because your Issue tracker/CI server is down, have you really gained anything over the alternatives?
How do you propose to stop that with your proposal?
Perhaps the only case breaking both at once would be deliberate action (DDoS etc.).
Thanks for the snark. I know git is a distributed system. My question was about everything else being down (your issue tracker, CI server, wiki/documentation), not about git itself.
Generally try not to put external services in a critical path.
Fossil tracks issues (tickets), documentation, and wiki pages at the same level as it tracks code, so when you clone a Fossil repo, everything gets downloaded to your local computer. You can then respond to tickets and perform repo maintenance offline, syncing everything to the server when you're back up.
Edit: A few weeks ago I got a job a one-hour train ride away. I can commit, close tickets, and write docs on my way in, sync everything to the internet when I get to work, then do the same on my way back - even though I don't have a net connection during my commute. It works great. (Ok, not as good as not having to travel at all, but great nonetheless!)
This just keeps happening. It's not GitHub's fault that they keep getting DDoSed or have a network outage every now and again. But it's not a problem with no solution.
Issue tracking and wikis are not a version control problem. Sure, their data can be version controlled. And documentation has been version controlled since Sccs, why would it require special care?
It doesn't, really, but it's in the same place as the code and everything else (this is what I meant as being "on the same level"). You don't need to clone the code and then clone the tickets, for instance. When you run "fossil timeline" on your local machine, you'll see entries for tickets being closed and wiki pages being updated interspersed among the actual code commits. This is useful to me as they're as much a part of the project as the code itself. Does this answer your question?
Being fair, fossil performance on giant scale projects might not compare quite as well against git or proprietary solutions like Perforce, but for the large majority of projects I expect it is more than adequate.
Off-topic, but I'd reccomend that you install HTTPS Everywhere: https://www.eff.org/https-everywhere - the fact that you are linking the HTTP version means you don't have this very basic extension that really improves your security.
Granted, the documentation needs work. But all issues and docs are exposed as git repos.
Github makes it easy to host git repositories, but so do a bunch of other services and it's not that hard to host your own either way or to set up trees of repository or multiple mirrors or what have you. The reason people use a central hub is all the meta-information and exchange about the code and the contributor communities.
The repository on its own has very little value.
And lest you think it's different for the kernel or whatever, a mailing list or an IRC channel are still centralised SPOF[0], when the ML provider goes down so does the project.
[0] though possibly more resilient and easier to switch out of ones
Fossil SCM seems to fit that bill. As another user said, they can address issues in a local, non-connected manner, and then merge the issues back to main.
The last piece would be to use IPNS so you can have the same key for a changing package. I just hope versioning support gets added in soon (it's in the spec, just not done yet with go-ipfs).
I think this should not be done in the same system as where people store their source repos. Mixing the two is convenient, but can stifle innovation. Better to have flexible and well documented abstractions and good separation of concerns.
The problem is all the shit that is not in the VCS and not directly based on it: issues, code reviews, discussions, … and the community around them if you have external contributors.
"Gittorrent" attacks a problem which by and large is already solved, it might further improvement on it but it's improving something which is not the bottleneck.
Thanks for the downvote, my hearts goes to you. :/
1. There is literally no amount of money which will get you 100% uptime. You may be able to buy guarantees of 100% uptime, however...
2. ... which will not change the fact that things still go down, and that if something goes down in a way which violates your signed contract, the most you can hope for is some kind of monetary compensation and, maybe, an apologetic-sounding employee to scream at until you feel a bit better. If you expect to buy someone's care, you're woefully naïve.
My point is that the paying customers don't necessarily get a better service. All they get is limited compensation for enduring the same bad service all of the rest of us get.