304 points · by ghuntley · 3y ago · 310 comments
While I feel for them, they put themselves in this position. Even when someone gives you something apparently for free, you have to consider what might happen when it disappears, and it seems that nobody thought about it, or if they did, they didn't care.
People often learn how expensive "the cloud" is the hard way.
> People often learn how expensive "the cloud" is the hard way.
Yeah, people really go a long way around just to get back to on-premise and colocation...
Outside of pet projects I'm not sure many people are doing that, but happy to read any research. From all I've seen the numbers show an overwhelming move to the cloud, and a few grumpy cats annoyed that the pricing structure is different.
Plus, even if you deal with the storage itself, how do you deal with serving the traffic globally? Optimally you'd want a distributed CDN, but that doesn't really sound feasible without the cloud. Would you still use a cloud CDN, or just serve directly from your own server?
Here's what you do:
1. Buy two servers equipped with a large amount of storage. There are many providers[1][2] that offer this. (You could technically do it with one, but two allows you to have high availability and prevent data loss in case of accidents, imagine `rm -rf *`.)
2. Use Minio to set up erasure-coded storage on one of the servers, and replicate objects[3] to the other server.
4. Use Cloudflare (because of their open source sponsorship program[4]) to serve the objects from the primary server, and when performing maintenance tasks, fall back to the secondary.
You could also serve objects directly out of the primary/secondary, but using Cloudflare takes care of low-effort DDoS attacks by hiding the origin, and provides some caching which helps prevent hitting the egress limits of the server provider.
[1] https://www.netcup.eu/vserver/vstorage.php
[2] https://www.hetzner.com/dedicated-rootserver
[3] https://blog.min.io/active-active-replication/
[4] https://blog.cloudflare.com/cloudflare-new-oss-sponsorships-...
https://www.hetzner.com/dedicated-rootserver/matrix-sx
(You would need 4 SX294s for half a petabyte with 2x replication)
And put ceph on them which gives you an S3-compatible API:
https://docs.ceph.com/en/quincy/radosgw/index.html
It's not trivial to set up but once you do it's much cheaper than AWS. It's even cheaper if you can find the machines in the server auction. There are some 150 TB machines on there right now for 174 euro/month.
It's like comparing leasing a Mercedes-Benz with full service and all inclusive insurance to building your own bicycle. Some people don't need the car, sure, but it's not the same thing.
3TB/day is about a third of what you can serve out of any run of the mill PC with a gigabit ethernet connection. There are 22TB drives and individual servers with 24 drive bays, which exceeds 500TB. So you could do this with one machine connected to a gigabit fiber connection, and the machine would cost approximately what they're paying monthly (almost all of that for the drives).
In practice a 24-bay chassis is silly and you might use a separate storage array etc., but that's just details.
> Plus, even if you deal with the storage itself, how do you deal with serving the traffic globally?
At 3TB/day you're not Netflix. Just serve it directly from your own server.
As a simple example 1 of the cheapest hetzner baremetal nodes gives you 500gb nvme or 2tb HDD storage with an unlimited gigabit Connection in Europe. This sums up to i believe 10TB of data per day.
Given the provided numbers, a single 50€ instance could handle the load, even if it's located in Europe. CDNs make sense for systems which are sensitive to high latency, or you're pushing multiple TB per hour, which this just isn't.
If someone asked me to do this, I'd colocate in two locations (likely Europe and west coast USA) two full copies of everything in 1/4 rack. After physically building, testing, installing, then testing some more, which likely would take a month, it'd be a part time job to monitor and babysit for the first few months of use, then it'd be an hour a month maintenance job.
CDNs cost money and come with tons of problems. For non-interactive static files, they're not necessary.
If it requires constant attention, you're doing it wrong :)
CDN is a good choice when you ether need to sever small volume (i. e. not 500Tb) with low latency, e. g. to reduce web page load time by hosting static assets (js/css/img) close to the customer or when you have really huge traffic (e. g. Netflix, but they decided public cloud is not cost effective for CDN and built their own).
For NixOS mirrors latency is not important, traffic is not huge (withing capacity of a single commodity server) and just two mirrors - in US and EU would be close enough to majority of users.
But a full rack is a huge overkill. How about a quarter rack for few hundred $ per month?
What about connectivity? Well, as mentioned Telehouse Docklands hosts LINX so you can get an unlimited transfer gigabit right into the Internet backbone for a couple hundred $ (mind I dealt with them few years ago, but I doubt prices changed that much - probably they're lower if anything). Also there is a cluster of data centers in docklands so they compete on price heavily as well as resellers that often have good deals.
This is all just location and connectivity. How about hardware? Let's say they wanted proper support with their hardware not diy so they were looking for a "solution provider". Send a request for quote to 10 of them including fujitsu, ibm, hp etc. Then tell them you're looking for a "charitable organisation discount". Unfortunately we're missing the most important metric to price this "solution". IOPS and if its mostly small or large files (random or sequential Access), but they host most of it in "infrequent access" s3 so let's assume it's not a lot, just to find the lower pricing boundary.
So let's say a pair of 2u servers with two hba cards each and 4 12 disc jbods with 22tb Sas drives a total of a petabyte in raw storage or half a PB mirrored (not that they would run it mirrored). A system like this from a big name (it's rather low performance, but we're after cheap right, their s3 is likely very similar) might cost $80k. Over 5 years of lease that might be ~$3k per month plus their hosting and connectivity it's about half of their $9k.... Then there is software, but that's a separate thing. Also one could DIY such system for half the price, one could add SSDs etc. This is just an example. To design this properly one would need usage data from their s3 and few days of work to put it nicely together.
First, look at the LINX network map. They are not just in Telehouse Docklands.
Second, with all due respect, do you know anything about how the internet works ? "internet backbone" huh ?
LINX is a peering exchange. A connection to LINX gets you nothing. Sure you can peer with the route servers. But you won't find any Tier 1 routes on the route servers, and the Tier 1s will also refuse to peer with you because you're too small or you don't meet their ultra-restrictive peering policies (for example, good luck getting BT to peer with you !).
Most people are better off getting a good connection to either a Tier 1 or a high-quality Tier 2 network and leaving it at that.
> Also there is a cluster of data centers in docklands so they compete on price heavily
London Docklands is the most expensive place in the UK to colocate, and probably in the Top 5 most expensive globally. Its prime real estate, all of the big-name colo facilities know that and will charge you accordingly, ESPECIALLY Telehouse !
And trust me, you don't want to go anywhere near a "cheap" Docklands facility, they are cheap for a reason.
The days of £300 a month for a full rack in Docklands are long gone my friend.
There are many other perfectly good places both in the Greater London area and elsewhere in the UK and Europe where you will get more bang for your buck.
Note that they are using Fastly as CDN in the front, but that's not important for them (monetary wise at least). The big part of the bill is just the storage part.
With little detail about their data I would chose one of these architectures...
Debian (or other distro) mirror style:
- Split the cache storage in pieces (by architecture, release or other categories)...
- Deploy a bunch (10-30) of cheap servers in affordable hosting around the world. The most popular data is distributed in more servers (for example, the x86_64 build caches for the latest version of the packages)
- Get some people to volunteer with small mirrors
CDN style:
- Get a couple or three medium/big sized (in disk, not CPU) servers for storing all the cache, for example, with Minio, so they don't even have to stop using S3 storage libraries.
And then either:
- Keep using Fastly
or
- Distribute tiny servers with Varnish or the like
- Get some people to volunteer tiny edge cache servers
Some weeks ago this was on the front page:- Serving 90TB/Day of Linux Updates from Thin Clients: https://news.ycombinator.com/item?id=35883053
- The scripts they use: https://github.com/PhirePhly/micromirrors
> I'm very interested if you happen to know a cheaper alternative!
and
> Optimally you'd want a distributed CDN
https://www.storj.io/ is this thing!
Now that the someone else is pulling out they need to think for the first time what would be cost-efficient.
They should have thought about that on day zero.
If someone else is picking up the tab then there is ALWAYS the possibility that someone will pull out for whatever reason.
Even for a start-up it's generally not advised to spend considerable effort on scalability before you have any customers.
For everyone here saying its trivial and they can do it cheap.
Get together and form a non-profit organization that offers super cheap infrastructure to the NixOS foundation. With a 99.99% SLA and around the clock staff ready if something goes wrong.
Which I think if you just co locate at a datacenter means going to the physical racks when shit breaks. (Or pay for "remote hands" and "remote spare parts". Or just pay for managed hosting.
I think that sounds like a lot of work for volunteers who have other jobs as wel.
You say this like they're hopeless.
If they start paying the bill, their best option is moving out. Either to a cheaper provider (be it R2, B2 or whatever) or self managing it (Minio...).
And seeing the $32K price for the migration to R2, and guessing that's transfer costs, I would garbage collect and move only hot data and let the rest be rebuilt during some months.
Building something like S3 yourself on Swift or Minio isn't easily done, the management of these solution can be tricky, especially for multi-petabyte systems.
S3 most likely got them going and scaling really easily, but then at some point the cost comes back to bit you. Still I don't see any good alternatives right now. I don't completely disagree with your, but the overhead of building an S3 like storage solution upfront would have actively prevented the NixOS project getting off the ground.
I agree entirely.
I feel the same way about OpenBSD when they come round begging for money.
I'm like "sure, great cause, but can we first have chat about your totally energy inefficient hosting of multiple racks full of ancient power-hungry kit in Theo's basement".
Money doesn't grow on trees, and especially in this era of inflation and high energy prices, I'm afraid I don't think it is unreasonable for me to expect the organisation asking me for money to get their affairs in order first.
They've said before they hardware heterogeneity has been useful in bug hunting, and at worst it can be viewed as a heating expense for the fairly prolific guy.
Does qemu support all those architectures ?
Probably. But my understanding is that the OpenBSD core developers consider qemu as the antithesis to their beliefs.
At least that's what I recall reading when it was discussed at the time, i.e. it was met with one of Theo's famous hard "no".
I've helped a number of clients save money by using the cloud. It's not that hard when you use the tools for the purposes they are suited for. It's not the hammer's fault that it does a poor job of pounding in that screw. At some point the "craftsman" needs to take the time to learn what their tools do and what they are best used for.
I jumped on the Nix Foundation Matrix to try and help them directly, but for anyone reading this thread, Storj might be able to cut a zero off your storage costs. Check us out!
Full disclosure - I work for Storj. https://www.storj.io/
This statement basically makes me unable to take this seriously.
At "Egress Bandwidth $20/TB" it should pay off to buy up all the cheap hetzner servers and convert them to storj nodes. They would pay themselves back after 2 TB and then you are off making profit.
But wait, there is more:
They charge 7$ for egress bandwidth... How can they pay 20$ to the one providing the bandwidth. Oh, right they don't actually pay the operator, they give you a crypto token.
So all in all paying for storj feels like supporting yet another crypto scheme.
In terms of "does the math work", you're absolutely right that charging $7/TB and paying $20/TB to our storage node operators is not sustainable. But it shouldn't be a surprise that this was an intentional early subsidy to grow the supply side of the network. In an open system like ours, you see these business dynamics, whereas you might just not see them otherwise.
To be fully transparent, we are working to reduce that subsidy now that we're hitting scale. You can see some of our conversations with our storage node operator community about this on our forum: https://forum.storj.io/t/announcement-changes-to-storj-node-.... You can also see full network stats here: http://stats.storjshare.io/
On integrations, I see there’s a tech preview for Restic. Any plans to support Borg? Is there a platform roadmap available publicly? I’m primarily looking as a single user to store larger backups. The Storj pricing (only for storage, not for egress) seems to be a lot lower than that of rsync.net (even with the special HN Reader’s discount).
The platform roadmap is available here: https://github.com/orgs/storj/projects/23. Good question about Borg. We are supported by rclone natively, and I've seen some success with people combing Borg and rclone. But that's certainly something we can look into more.
There is one main reason I don't use it besides web share: Despite being OSS, uplink-cli is not available in linux distribution packages, which
- makes me uneasy about stability/maturity of the platform (e.g. do you not provide packages because you don't have a stable API, and if so, should I really rely on you to keep my data?)
- it increases friction - either build from source or manually copy binaries; and you have need to do this on all your machines and servers; and it means no automatic updates
- binaries/packages without trusted update channels may be against corporate/personal policies, and you usually want your storage accessible on all/most of your computers
- if available in non-distribution package repositories (didn't see in quick-start) - it would still create trust issues
Have you considered getting your cli packages in distributions?
If I could just `apt install uplink-cli` or similar, I would already be using it.
If you are looking to provide storage space to the network as a storage node operator, then your nearest reputable exchange should do the trick.
It is easy to configure traffic shaping on the box so that any unused upload bandwidth can be used without any impact to existing applications.
I would be happy to seed NixOS torrents. There is an extension to torrents where files can be added to a torrent after a torrent is released that might make sense to look at.
This information could be useful to an attacker.
A 4U or 8U rack server with 1 PB of storage and plenty of cores: ~$40K
Colo facilities in the Bay Area: $400-500/mo
Compared against the status quo of $9K/mo, the ROI ends up being 5 months per box, for twice the storage capacity they need. Set up multiple of those boxes around the world to the extent that you care about redundancy/distribution, and they still end up far ahead in a few years time.
The machine also needs to be replaced every $interval. After 4 or 5 years, keep it up is more hassle that replacing it.
A single machine patches and will need to reboot. What should happen to people trying to access the store?
Keep replicas help, ensuring a petabyte or even half a petabyte of small files is in sync across multiple sites with various link speeds is not as trivial as rsync.
And if any downtime for upgrades is unacceptable one can go for distributed storage solutions like ceph, seaweedfs or minio. Or simply 1:1 mirror everything to a second machine (which you want for disaster recovery anyway) and switch over during the maintenance period. And since for this specific usecase the server(s) would only serve as CDN origin, a brief downtime might even have very little actual impact.
edit: Oh man, there's potentially a $32k migration fee to pay for S3 egress, as well.
Also free egress from Backblaze to CDNs (Cloudflare or Fastly).
[1] https://www.ofcom.org.uk/news-centre/2023/ofcom-proposes-to-...
I've known about this for a while, but never bothered to ask. Why is that kind of fee even legal? Is there anything pro-social or valuable about that kind of business practice?
Companies are free to impose whatever fees they want. You can simply just choose to not have business relationships with them. Monopolies complicate the question, but AWS is not a monopoly.
Yes, AWS’s customers knew what they were signing up for, but AWS’s competitors and potential competitors have a right to enter the market and compete with AWS, and they can’t do that effectively if AWS is hoarding all the customers with punitive switching fees.
Maybe in libertarian paradise, but this line gets parroted a lot for something so patently untrue. Even in the US there are plenty of laws that rightfully limit the freedom of vendors for the benefit of consumers.
Wrong. You seem to be unaware of the whole concept of anti-competitive behavior.
This is their "normal" egress fee. Maybe too high, but it's not a "gotcha" that applies just to migrating away.
Almost all cloud providers cost you for egress fee or have some limitations on egress, except Cloudflare.
It's almost certainly done on purpose to discourage you from switching away, and in the hopes that you won't notice until you deleted all other copies of your data.
https://blog.cloudflare.com/aws-egregious-egress/
https://www.lastweekinaws.com/podcast/aws-morning-brief/how-...
Also to note that on many smaller VPS providers customers rightfully pay for the bandwidth, not total traffic. So this charging-by-traffic appears to have no other explanation than predatory practices.
Like who is charging the amount? Is it all aws or is there a cloudflare portion? Part of it is paying an engineer's time? How much data is being transferred?
If it was pure egress fees then it's roughly ~350tb of data?
Four grand. It can be done cheaper over time.
https://discourse.nixos.org/t/the-nixos-foundations-call-to-...
The tvix project itself is quite fascinating and worth a look. It reminds me a bit of the Gentoo times when Paludis came around and blew Portage's performance out of the water - but tvix seems to care more about compatibility with the existing ecosystem instead of being a competitor.
https://caddyserver.com/docs/caddyfile/directives/encode#enc...
1. The sponsor generates an IAM user and the corresponding access key to access objects in the NixOS buckets.
2. The NixOS operator grants access to said IAM user and (this is important) enables "requester pays" on the buckets so that the sponsor is billed.
3. The sponsor's keys are added to Cloudflare R2, which pulls objects from S3 and stores them.
There are efforts underway to make things content addressed. This doesn't solve the trust problem -- you still have to trust someone to tell you which inputs map to which content address -- but it does help with the distribution problem. Mirrors no longer have to be trusted. Trust and distribution become decoupled.
Views of purely functional data transformations of f_tran(n)(addr_start:addr_end), but if you symbolize it you, you make it generic. The problem is that Nix isn't Haskell enough.
It also sounds like if they stored the cache on a deduping file system that their storage costs would plummet.
How do you build with an arbitrary build tool then? You have to call out to gcc/any other compiler in the process.
you still need either pay someone to “pin it”, which is more expensive than dumping it on s3. Pinning services (that’s a thing) are all sketchy (as the big ones are all somehow connected to NFTs) and if you do it yourself it’s actually harder than just storing it
The point of IPFS is to decouple the names of resources from what's serving them. It's exactly what is needed for distributed libre software projects where many are willing to donate some resources, but few are able to donate all the resources.
In Nix on the other hand, a particular hello package/binary will be dependent on the glibc that it is built with. That doesn't mean just the same glibc version, even if you'd change something like glibc's build flags it'd be considered a different version [1]. One of the benefits is reproducibility. If you build hello from the same nixpkgs revision as I do (barring any impurities), you'll have exactly the same hello with the same transitive dependencies.
Now, with hello this may not matter as much, because it's a simple program and glibc is fairly stable. But now imagine that you are doing some machine learning project and you want to provide a reproducible machine learning experiment. Building on a typical packaging ecosystem (eg. pip) is like building on quicksand. There are all kinds of subtle behaviors that can change and influence your experiment (eg. you machine learning library rewrites some compute kernels, and the small numerical differences pile up after a large number of layers). Though usually it ends at: my system has Python 3.11 and this experiment requires an old PyTorch version that was only built for Python 3.5 and earlier. The Nix approach gives you the benefit of pinning almost the whole world - your experiment and all its transitive dependencies.
Suppose you have a package repository like nixpkgs or Debian that contains tens of thousands of packages that are continuously updated. In Debian, if glibc is updated, it gets rebuilt and you are done. glibc has a stable ABI, so packages that were built against the previous glibc version don't need to be rebuilt. In nixpkgs if glibc is updated, every package that uses glibc needs to be rebuilt due to Nix' use of exact dependencies. And this is true for almost all non-leaf packages --- a package update requires all packages that are (transitively) dependent on that package to be rebuilt. And you need to store all these builds, so that users can download them, otherwise their machines need to rebuild the packages on every update. This is how you end up with a gigantic binary cache.
[1] This is a bit different now that Nix supports content-addressing for non-fixed output derivations.
Processed 974464 files, 327323 regular extents (751261 refs), 598287 inline.
Type Perc Disk Usage Uncompressed Referenced
TOTAL 40% 11G 28G 60G
none 100% 2.7G 2.7G 6.2G
zstd 34% 8.9G 25G 54G
Nix also supports automatic deduplication using hardlinks which I have enabled in this case.But i too wonder if they really have to keep everything around.
As mentioned, you doesn’t have to, but it has great value to be able to checkout any version.
I am inclined to argue that the fact NixOS is having this problem and discussion goes to show that you *still* have to be mindful of the resources you consume :)
While public cloud resources may seem infinite to some, at least the depth of the pockets of those shouldering the resulting costs should not.
They should consider Backblaze b2 if they want s3 api compatibility. Backblaze currently offers to cover the migration costs assuming some spend commitment.
Would we choose to host it on S3? Probably not, but that's where it is right now and we have to be realistic about whether or not that will change. Personally I don't think so, though even on S3 there are still some optimisations to be done.
Unlike most other packaging systems though, Nix packages are rebuilt when there's changes to any of their dependencies. This results in a huge amount of storage data used in their caches compared to other systems. Not to mention the compute power required to rebuild those packages.
For example, let's say something like `glibc` updated with a new patch. Every single package that has `glibc` as a dependency needs to be rebuilt, along with every package that has any of those packages as a dependency. This could easily cause the rebuild of tens of thousands of packages, even if they are only dynamically linking to it.
While we're talking about opensuse, perhaps there's a way for them to exist on the opensuse build system?
(NixOS hydra obviously has some spare capacity or it'd never catch up, but I would be surprised if it has enough idle capacity to rebuild everything over any meaningful timeframe without also significantly affecting velocity on everything else.)
Calling on the community to dedicate temporary build resources might work--but the systems need to be trusted, so it can't quite be Folding@home...
I guess if there's a bit of Pareto in the distribution of build output sizes, there might be meaningful savings in rebuilding the packages that take up the most storage and paying to move the small stuff. It might also be possible to triage the sources in the cache--re-fetch all that are still available from the original source or a mirror, and then just export the ones that either couldn't be fetched or could be fetched but the contents no longer match the hash.
Overall seems plausible that this data store isn't just a cache of things that can be recreated at will. The sibling comment about source being unavailable (or still available but at a different location) for the earlier builds is interesting in that respect.
I have been made aware of the matter when somebody on the matrix claimed that there is no plan to rotate the cache key. He/She said reasons behind that are explained by Eelco D. in https://www.youtube.com/watch?v=yXPQdZh8o7c. Unfortunately, I couldn't confirm this. That person afterwards claimed that the video is cut and that part was removed intentionally.
If that's the case, it might be the reason why ppl stop paying for the cache server costs. Furthermore, if the foundation attempted to hide the facts by cutting the video and re-uploading, for me, this is a matter of dishonesty and somebody should take the responsibility for it. I believe this person is Ron E., the current director of the Nixos Foundation. But in any case, this claim should be backed by finding the original stream of the Nix 20th Community Panel recording.
For the rest of us, until some cryptogeek fixes nix to support certs and key lifecycles, the solution is to build a local cache with hydra and flakes. There are many ppl keen on the subject, you can look for one on the matrix.
Just order 25x BX41 Boxes with 500 TB for 1015€. They do not support S3 protocol, but have plenty of other protocol options (FTP, SFTP, HTTPS, rsync, mount as network drive, ...).
Not the SLA you're looking for
Could be changed tho, Nix leadership should brainstorm how to make this an attractive thing to sponsor. Feature name prominently on site, conferences, social media, even CLI(?).
I assume this is do to egress from S3. I wonder how that cost compares to re-generating the historic caches. Presumably that is possible with nix.
Definitely look for ways to avoid egressing it all from S3.
One issue that you'll run into is that many upstream source archives are not available anymore at the original URL. Though I think it should be possible to collect all fixed-output derivations and copy their outputs over to a new cache and then try to build. Once these are in the cache, Nix will not try to download the sources from the original location but use the binary cache instead.
Info to join is in the original discourse post. Thank you again for jumping all in on this with us!
Can get cheaper as well if you go for reservered capacity model.
> For example, if you store 100 TB with Wasabi and download (egress) 100 TB or less within a monthly billing cycle, then your storage use case is a good fit for our policy. If your monthly downloads exceed 100 TB, then your use case is not a good fit.
I've reached out to a couple of my contacts to point them at this.
filesystem engine of nix considers remote and local location as same, and does delta copy, gc, and other operations afaik of things. so it would require rewrite of some super robust core parts to work with ipfs.
Also means the most popular packages have the most seeders
I bet it is easier to get people to seed a bit than to get them to pull out a credit card
And then find out why you're consuming so much bandwidth and try to use less.
The EU needs to get onto banning/reducing lock in like this by making migration expensive. All the cloud providers clearly have pricing models to try to lock customers from moving elsewhere.
Phone number portability was done via a similar mandate, and despite industry claiming at first that it wasn't technically possible, it has worked out pretty well.
- Target
- Shopify
- Pinterest
all used Nix fairly heavily at some point, and I believe they still do.(This is actually about more than NixOS— the binary caches affect all Nix users, including those on macOS as well as any Linux distro.)
I wonder how much of that could be thrown away.
From what I recall they'll cover your initial egress costs.
i personally would invest in a solution which decreases or at least flattens the cost, when the storage needs increase, instead of the current linear curve. Biggest problem in "cloud" and biggest win in hosting yourself.
if you want to do it yourself i would probably think about something like this:
500TB with 20tb hdd's are around 28 disks needed. This will cost between 15-20.000€ per server(4U with sata/sas controller and 36-40 disk chassis)
with no raid and high availability you will need 2 locations and 2 servers in a colocated setup. i would say colo will cost you 500-1000€ a month
Then you would use the cloudflare cdn with their OSS offering and be done with it.
initial cost 40k operational cost + colo = around 6-12k/year i would assume, if you have people nearby to do maintenance.
> As of April 29, 2021 Amazon S3 is discontinuing the S3 BitTorrent feature and it will no longer be available to enable. AWS will support customers currently using the S3 BitTorrent feature for 12 months. After April 29, 2022, BitTorrent clients will no longer connect to Amazon S3.
- It doesn't change storage costs
- It doesn't decrease the cost of a full exit
- They already have a CDN in front of it which reduces the traffic by a factor of 60.
Source: former TL for R2, work at cloudflare.
You should probably use the official pricing calculator: https://r2-calculator.cloudflare.com/
You would have to pay your S3 egress costs to migrate but there’s a migration tool to make that easy and we’re not in charge of your AWS bill. I imagine Matthew would be happy to have Amazon join the Bandwidth Alliance. You can also just drop Cache Reserve in front which transparently stores into R2 the assets as you access them depending on what you need from this.
That being said, it looks like only $900 is for egress with the rest (~4k if I’m reading it right) being storage. I haven’t done the math but I don’t know how much cheaper we’ll be on that right now.
It says at the top R2 has no bandwidth costs. And if you drag the slider for read percentage around, you can see how it doesn't affect the R2 price at all.