GitHub Pages – Usage Limits
help.github.com
help.github.com
This is a classic case of "this is why we can't have nice things". If you're using GitHub Pages for your personal site or to document/talk about the work you're doing on GitHub, in general, you should be fine, even if you get HN-level traffic every once in a while.
The problem comes when a small handful of users use GitHub Pages for things like automated version checks or configuration distribution, as a makeshift ad CDN for for-profit sites, pushing an automated build every minute, or to distribute large assets (for which things like Releases are a better fit).
When a user (ab)uses GitHub Pages in a way that threatens our ability to build or serve other users' sites, technically or practically, we need to step in, and those posted limits are intended to help set expectations as to what you should and shouldn't use GitHub Pages for. But again, the vast majority of the nearly 1M users that use GitHub Pages will never hear from us (and in most cases when they did, we proactively reached out and provided ample warning/offered to help).
> Pornographic content
How strict is this rule?
There has been some interesting open source AI projects related to NSFW images (eg. Yahoo_NSFW, Open_NSFW, MilesDeep). What is GitHub's policy regarding this projects? Could a GitHub page present results? What about a link to download a training dataset?
I also just noticed that Open_NSFW's web page is hosted on GitLab (https://open_nsfw.gitlab.io/). Would a page like this (which might be considered pornographic, depending on your interpretation) be allowed on GitHub pages?
Github really needs to add https support for custom domains. It's 2016, https should be the default.
[Reposting my comment]
https://blog.cloudflare.com/secure-and-fast-github-pages-wit...
User <---https---> Cloudflare <---http---> Github pages
[1]: https://konklone.com/post/github-pages-now-supports-https-so...
I acknoledged the issue given, but considered it better that the content the user is accessing was hidden for their privacy - the link between Cloudflare and GitHub is backbone-of the internet stuff and has a whole different set of risks. Would be nice to plug it.
https://neocities.org free plan, for comparison:
Storage: 100MB (1GB by end of January).
Bandwidth: 50GB (never been enforced, many sites are over and it's fine).
SSL: Yes (forced SSL starting Jan 1st).
Change limit: one per minute, never enforced.
Number of hits: No set limit, would be in the millions if I did.
Number of changes: No set limit, not enforced, probably never will be.
But our usage limits aren't going down - they're constantly going up as we upgrade and improve our infrastructure. In fact, due to some upgrades to our anycast CDN I'm going to raise the BW limit to 200GB right now. Merry Christmas.
You could also create a webhook using their API and AWS API Gateway + Lambda.
https://blog.cloudflare.com/secure-and-fast-github-pages-wit...
I've definitely seen postings here and elsewhere about CloudFlare having to deal with sites whose usage is so much that it impacts other customers. While it's in their ToS, it isn't stated as a limit and there's often a backlash.
I'm guessing that the GitHub "limits" are likely soft. As long as the usage doesn't start adversely impacting their systems, they might not care. But there are certainly cases where an individual customer might do something that they would want the ability to shut down because it is getting to the point that it causes reliability or performance issues and these limits give them cover to do that. User expectations were set that this isn't an unlimited free-for-all.
When you architect any system, you do so with certain usage patterns in mind. If you're running a SaSS project, customers might (quite innocently) not understand your intention for the service and use it in a different way that works for them, but puts your systems in pain and adversely impacts other customers.
http://githubengineering.com/rearchitecting-github-pages/
Based on that post, it seems that any individual file is located on one active fileserver and one standby fileserver. That means that if any one individual file becomes extremely popular, it has the potential of impacting other customers located on the same box. It seems reasonable that this architecture works well for the vast majority of GitHub Pages sites, but that it wouldn't work well for some users. Yes, there are ways of mitigating the problem. You could write a balancer that isolated high-volume customers. You could do a more complex replication scheme to more locations. But that's work not needed for the vast majority of users and their intention probably isn't to become a high-volume webhost.
Similarly, one can imagine a customer with a multi-GB repository making automated changes every few seconds. It's a little hard to imagine, but in a long tail of SaaS customers, people do all sorts of weird things. Now they're potentially having more data to be copied faster than they can actually copy (a spinning disk won't write multiple GB in under a few seconds). Or maybe they have a certain number of "copy workers" and they don't want loads of large jobs from one customer backing up the queue.
We've definitely had customers ask our support about usage that's 1.5x some of our "limits" and honestly we probably wouldn't have even noticed. The limits are there for us to set expectations that resources cost money and we've architected our systems in certain ways that we expect certain types of usage. But in a SaaS world, someone has always (usually innocently) found something they think is a perfect fit for what they want when it really isn't made for that.
EDIT: quora answers here https://www.quora.com/What-are-bandwidth-and-traffic-limits-... mention a rule change ~ half a year ago, but not entirely clear what was added. Wayback machine only has a few months old versions of the page that already include these rules. So this possibly was added this year, but not very recently.
I already have hosting with the likes of hostgator but they probably couldn't even handle 100k like github would.
Without ClouldFlare in front, your costs on NFSN may become quite high depending on the size of the content and number of requests.
NFSN isn't charging you extra fees to make payments. They are being transparent about the fees everybody else hides in the total cost.
you can also connect your github repo to have a atomic deploys, which is more than you get from gh pages. https://www.netlify.com/blog/2016/08/11/from-unstable-to-rel...
https://about.gitlab.com/2015/04/08/gitlab-dot-com-storage-l...
Github really needs to add https support for custom domains. It's 2016, https should be the default.
Worth mentioning that Gitlab pages supports https for custom domains. I am considering moving my blog to Gitlab. Anyone know about the resource limits and performance under Gitlab pages?
I'm not positive to the extent and what internal rules may apply. But out of curiosity I emailed the GH legal dept and they said it was fine (after checking around and getting back a couple weeks later).
So if you want to monetize your open source projects with Adsense or otherwise, that's actually an option! (Not that I have or ever will)
(This is with ~15k pageviews-not-from-bots per month.)
I would have topped both limits with any single article that went to the front page of HN :D
Note that this is only human traffic. Wordpress stats have good bot detection.
This is why we can't have nice things. People don't accept a no that's free, when clearly they should.
https://pages.github.com/ advertises Websites for you and your projects., and I imagine most of the examples they show at the top get more than 100k requests, since that's not all that much for e.g. documentation or demos for a reasonably popular project. (Although it is possible that the corporate-backed projects in there actually pay for Github, just not specifically for Pages).
Just to make it clear, I'm not criticising GitHub here: It seems like they uses this a guideline/reasoning help for when someone doesn't play nice, not as strict rules to enforce, which seems totally fair. They should absolutely do something against sites misusing this service. Demanding money for commercial use would also be possible option. (they of course are also free to make strict rules for all pages, but that would have a large impact for quite a few projects I imagine)
If your "pages" are pulling that much traffic then put on your big boy (or girl) trousers, take off the training wheels and get a proper website. GH is not a hosting service. They're "kind" enough to offer free repos and that's not good enough? Y'all have lost your perspective.
Just like there's a difference between pages and sites, there's a difference between grateful and ungrateful. Y'all are like the guest that never leaves, never cleans up, never buys food, etc. That's just not reasonable.
This is why we can have nice things. People always push up against limits as long as they aren't shut down.
gh-pages.
The intent of GH's offer is to assist and support OS projects. Not let some wiseass freeloader treat GH like a proper hosting company. Clearly ppl are taking advantage of that, but GH is the bad guy/gal?
gh-pages.
Geez. Why did I bother? Words? They have no value.
There are 86400 seconds in a day. At a little under a request per second, you're going to hit 100k some time around 3am on the second day, depending on what you take "a little under" to mean.
A researcher recently asked me for help in mirroring one of the CMS.gov subdomains. Of course, by default, Github Pages serves up the mirror as if it were the real site:
https://wgetsnaps.github.io/marketplace.cms.gov/
But the researcher was obviously more interested in the documents published on the site than the site itself. So I told her to just checkout the subdirectories which are easy to nav via Github.com's standard repo listing: https://github.com/wgetsnaps/marketplace.cms.gov
But even better, I told her she could just download it as an archived zip, another endpoint that Github provides automatically, and peruse the file tree on her own operating system: https://github.com/wgetsnaps/marketplace.cms.gov/archive/mas...
And of course, there's the option to git clone it. These are all features that can be reproduced, but I use Github not to save money on AWS, but just because of how discoverable the repos are.
I have small OS-Projekt with ~20.000 Visitors / Month, 1 Pager with some Scripts and Images. This page has more than 100.000 Requests and less than 2 GB Traffic.
I know that github pages are not their primary use case, but then they should better drop the support completely or add a support plan. (i would pay for it)
Yes, I know that Fastmail is not free, but website hosting isn't their primary service, and I'm using it as a comparison for the amounts allowed.
My name is Angela and I do researches on the user experience for different Git tools on the market. I’m kicking off a round of discussions with people who use Git tools. Ideally, I’d like to talk to people that sit on a team of 3 or more. If this is you, I would love to talk to you about your experience with <using> Git tools, or just some of the pain points that are keeping you up at night when doing your jobs.
I’ll just need 30 mins of your time, and as a token of my thanks to those that participate, I’d like to offer a US$50 Amazon gift voucher.
If you’re interested, just shoot me an email with your availability over the next few weeks and we can set up a time to chat for 30 minutes. Please also include your timezone so we can schedule a suitable time (as I’m located in San Francisco). Hope to talk to you soon!
Cheers, Angela Guo 378496625@qq.com
Has anyone actually encountered enforcement of these limits?
I didn't know this. It seems one should work locally with Jekyll and only push once everything is done and tested.
Couldn't this be relaxed via/for incremental builds?
But i would trust bitcoinwallet at github.io more than a standalone web app
On the other hand, if you _do_ possess a cert for your custom domain, then HTTPS works just fine [1].
Yes.
Various competitors have started doing that after Let's Encrypt was created, so yes?
The title should be update to reflect the what's happened - the changes.