157 points · by cnst · 9y ago · 106 comments
> We (the Git project) got control of the git-scm.com domain this year. We
> have never really had an "official" website, but I think a lot of people
> consider this to be one.
So, uh, git-scm.com wasn't an official website all these years?https://github.com/git/git/commit/69fb8283937a18a031aeef12ea...
(edit: static screenshots at http://imgur.com/a/OCjxY)
[1] http://web.archive.org/web/20120505190309/http://git-scm.com... [2] http://web.archive.org/web/20120504151545/http://www.git-scm...
----
more goodies:
first commit of new design: https://github.com/schacon/git-scm/commit/3bcc818433c6ae94dc...
some design work for git-scm.com: https://dribbble.com/jasonlong/projects/40112-Git-Site-Redes...
1. GitHub is footing the bill — I'm paying for gitignore.io (although it's only costing me the annual domain)
2. The site uses 3 Dynos — Currently gitignore.io uses 1 Dyno on the free tier and I've recently moved the backend from Node to Swift to double / triple network performance based on my preliminary testing. I don't know why the site needs 3 Dynos because like the OP mentioned, it's a static site. I also use Cloudflare as a CDN which could dramatically improve git-scm's caching layer. It's not that helpful for me as most of my requests are dynamically created, but for a static site, it would drastically reduce Dyno traffic.
3. Access to Heroku seems to be an issue — I ran into the same problem and I'm finishing up a full continuous integration process to build and test my site on Travis. I basically want to approve a pull request and have the site fully tested though my Heroku pipeline, then have the PR landed in production.
4. Traffic - I don't know how many users he's got but I'm seeing about 60,000 MAU's and about 750,000 requests a month.
* Jason Long helped design my site and logo as well.
I'm on Chrome Version 55.0.2883.87 m on Windows. I turned of uBlock Origin for your site.
It's a RoR app. Content might not change but it's still an app with a database etc.
Recently I've seen a blog post about a company using RoR for generating a completely static website. Unfortunately I can't find it anymore.
The naive approach would be to use "wget -r" a locally running and "rsync" the generated html to the server but there might be some gotchas with that.
wrk -t12 -c400 -d10s https://gitignoreio-stage-swift.herokuapp.com
Running 10s test @ https://gitignoreio-stage-swift.herokuapp.com
12 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 265.88ms 78.37ms 1.29s 84.87%
Req/Sec 119.55 39.81 254.00 67.32%
14230 requests in 10.09s, 79.67MB read
Requests/sec: 1410.00
Transfer/sec: 7.89MB
wrk -t12 -c400 -d10s https://gitignoreio-stage-node.herokuapp.com
Running 10s test @ https://gitignoreio-stage-node.herokuapp.com
12 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 945.65ms 136.05ms 1.29s 73.12%
Req/Sec 35.57 21.97 140.00 65.52%
3783 requests in 10.09s, 19.31MB read
Requests/sec: 374.81
Transfer/sec: 1.91MB
And yes, for my Swift backend, I'm using Vapor[1] and the source code is here: https://github.com/joeblau/gitignore.io.[1] - https://vapor.codes
When I ran https://jscompress.com/ on Heroku, I was up to $100 per month for 2 2x Dynos. Completely absurd for a simple one-page Node.js app. I put in a little work moving it to DigitalOcean, and had it running great (and faster) on a $10 VPS.
I get the appeal of Heroku (I have used it several times), but man sometimes it feels like gouging when you can least afford it.
A free business idea: write a converter from WP to Jekyll (or Hugo) that converts 95% of a typical WP site right, sell total conversion services, maybe reselling hosting, too.
Here's one I wrote a few years ago to go from Wordpress to Wintersmith.
The Wordpress export format is pretty gross, though.
I don't really have a handle on what S3 costs 'at scale', but I think I'm willing to bet it would knock at least the 0 off the end.
CDN hosting of a static site is nearly $0 so def the best option in this case. Plenty of providers give free PRO service to OSS projects as well (i.e. netlify)
It works very well for me on a site with about 300 pages.
A) Get a Linode VM, put elastic search on it and have it load the text. Probably $20/month with that little text, tops.
B) Use something like KeyCDN to cache everything for long periods of time.
I doubt it'll cost $50/month.
As a famous writer once said: "ain't nobody got time for dat."
Maybe not enough to afford a solution with more nines.
If I had a choice between that and ~$1800/year?
If you don't want to do sysadmin work at the rate of ~$300/hr, that is your business.
See https://doc.rust-lang.org/search-index.js for the messy back-end.
I still want to separate the index in its own JSON file, but so far, so good. Search is fast and index is rebuilt automatically.
[3]: http://lunrjs.com
At 5 Watts and $0.30 per kilowatt-hour, a Raspberry Pi would cost $1.08/month to run.
With 1 free GB and $0.09/GB-month, S3 would be able to deliver 13 GB/month at a cost of $1.08/month.
So, RasPi at home gives you "unlimited" egress and a fixed cost, but you have increased latency, a rather small outgoing bandwidth (most likely), and all the downsides of running your own server.
S3 gives you unlimited bandwidth, low latency, and no server maintenance, but it's only competitive on price if you don't exceed 12GB of egress.
Overall I prefer S3, even if I think their egress prices are ridiculous. RasPi at home has some geeky cool factor, though...
NOTE: $0.30/kwh is basically what I pay (California) for any additional usage. These equations will favor home hosting if your electricity is cheaper.
Especially with the site being considered in 'maintenance mode', I doubt they want to manage a server aside from the other things they need to do.
I don't know how I'd feel about a public resource being at the mercy of some user's comcast connection.
You can buy a hosted moral equivalent of an RPi for peanuts, e.g. https://www.scaleway.com/pricing/.
For example, what pages get accessed the most anyway? I'm guessing the latest source code and maybe the latest release, though most people probably just apt-get git instead so it's probably mostly the source code. Then there are man pages and some other info pages, if I remember correctly. Sounds like the latest release + 90% of those text pages can easily fit in RAM. So memcached? Nah, the Linux kernel happily caches the files that you read from disk.
I don't know the actual numbers but it doesn't sound infeasible to me. A $230 hosting bill is very heavy though, I guess you'd need some serious fiber as well to provide the uplink. But again, without numbers it's all "maybe" and "probably".
That said I'd agree, Raspberry Pi's a great but not quite fast enough for serving a high-traffic website.
I've just checked and it looks like they nolonger do so though...
$ curl -I https://www.raspberrypi.org 2>/dev/null | grep X-Served-By
X-Served-By: Blog VM 2
Fun while it lasted!Wow, why ? You can get a VPS with 2Go Ram + 10 Go SSD for 3€ those days (https://www.ovh.com/fr/vps/).
That seems very expensive.
Not sure if the "try.github.io" link should count as a link to Github, but most of the others do (e.g., github.com/google).
For example, the long time maintainer Junio works at Google and peff at GitHub.
I think the current management of the project, by the Project Leadership Committee, is working well and the project would gain little by coming under the direct management of any single company.
You can see the end of the thread here [0] and the pull request it was discussing here [1]
The thinking in that thread, which I think would apply similarly to this case, was:
I think I'm inclined to try it, as long as it's kept in a separate "paid training" section, and is open to everybody. If it becomes a burden, we can cut it out later. I think the important thing is that it be equally open to everybody or nobody, but not just "some". So we'll go with everybody for now, and switch to nobody later if need be.
I agree that they would probably pay well for the chance to have a link on the homepage of git, but if it is done it should be done fairly for all involved, or not at all.
[0] http://public-inbox.org/git/20170125184258.v5sy6hwwpdsxz2u6@...
> The deployed site is hosted on Heroku. It's part of GitHub's meta-account, and they pay the bills.
So why aren't they just using a GitHub page for this?
User <-free SSL cert-> Cloudflare <-self-signed GH cert-> GitHub Pages
Obviously not ideal, but still possible.There is a bit of work to be done, but it shouldn't be too terrible if the templates and stuff are okay.
I think moving the site to a normal static site generator (like Jekyll) would deliver the most bang for the buck but would be quite the transition. The site would only need to be built upon a new commit and with the proper site generator it will only update the underlying HTML files that require a change. Then syncing the update HTML to whatever CDN is chosen.
[0] - https://www.cachoid.com/
> Do we really need three expensive dynos, or a $50/mo database plan?
Sounds like there's the chance to optimize for what is, as they say, a static website. Why for a database that you're not using? (And what kind of a database plan do you have when it costs $50/month when it's apparently a (nearly?) empty database?!)
No code changes. No anything. Just a twiddling the dyno tier and count.
I have been involved in commercial projects that don't cost that much monthly. I can't imagine spending that much on a non-profit thing.
There are enough companies who just overtake. Google, heroku whatever.
But it would probably a good idea to try to help Jim in his work.
Edit: GIthub seems to be paying for that but Heroku shouldn't even bill them.
Sounds like GitHub foots the bill.
The previous git website was http://git.or.cz/ , also run by a git contributor, and releases were (and still are) at https://www.kernel.org/pub/software/scm/git/ .
> Please don't insinuate that someone hasn't read an article. "Did you even read the article? It mentions that" can be shortened to "The article mentions that."