155 points · by kaboro · 7y ago · 161 comments
I'm unsure what use case was, but if it was a testing or staging environment dedicated to each developer, having a separate right-sized instance for each is quite sane and reasonable.
EC2 instances such as the T2/T3 series are cheap enough that there's normally not a need to be so miserly in my experience.
> Did you weigh these costs against the value of the developers not stepping on each other's toes using the same instance? Separate users with sudo privileges provides zero isolation.
Each developer's machine is a separate instance. If the whole system could run on "one dedicated blade," then the developers could easily run a local instance on their own machines (either directly or in a VM) without stepping on anyone's toes.
Using AWS for local development seems wasteful and over-complicated to me. The only good reason I can see for doing it is if you're really vendor-locked into AWS-proprietary services, and it's impractical to run your code anywhere except on AWS (but that's arguably a mistake in itself).
Of course ports can't be shared for each app servers but you can get around that anyhow.
This is being sold as a "step in the right direction", where "right direction" is anything that reduces cloud costs. (Payroll costs are apparently invisible, so the time people waste dealing with this baloney doesn't count. Not to mention the annoyance.)
I'm tempted to point out that they could save a lot more money by merging microservices into macroservices....
Wait, you're saying there's a Bachelor of Science DevOps degree?
EDIT: I agree that OPs choice of words makes the idea expressed ambiguous.
I consult with multiple customers and they all want cloud. It's "Cloud First" and any discussion to the contrary results in lost business. If you do that you are considered a Dinosaur.
On the issue of predictable load, most businesses not only have predictable load but a lot of capacity is just allocated and never used. VMware serves such scenarios even better by going for heavy over allocation. Everyone will demand 10 servers with 8vCPU, 64 GB of RAM without actually using even 10% of the allocated capacity.
But hey Cloud is cool so I have to be on it.
That’s like the old school Netops people who got one AWS certificate, did a lift and shift of a bunch of VMs and then proclaimed their client has “moved to the cloud”. The client still has the same amount of staff, same processes, etc. Of course it isn’t going to save any money.
Sad reality.
- Your Colo has direct connect to AWS, so you can deploy EC2 under times of load
- Your Colo offers some sort of virtualized infrastructure that you could wire into your network and offload under times of load
- Your Colo has a virtual server provider running that you can offload to in times of load.
- Is close enough to one of the big 3 that a Site to Site will work fine
If you can predict workload then you could also reduce your cloud bills, in theory, by moving spinning up/down instances.
Many are going the cloud route because the cost of entry is much easier to start developing but eventually, yes, the cost skyrockets and you do end up paying for putting little forethought into the real workload requirements.
One senior sysadmin/infrastructure engineer with on-prem experience is enough to scale up your colo presence. You can either assemble your own servers or custom order and have them shipped directly to the colo. Remote console and power management (PDUs) is a solved problem. Out of band management, also solved. Virtualization, solved. Push your VM snapshots, content, artifacts, and database backups into your object store of choice for offsite backups. Ideally, your colo facility is within driving distance of your office if you absolutely need physical access. Otherwise, you pay someone at the colo a few hundred bucks a month for remote hands services.
EDIT: k8s arguably makes this easier than in the past. You want to run on your own cluster? You can. You need to burst your containers to spot instances in someone else's cloud? You can.
I played around with that, and than AWS/DO came along.
By the way, Vmware is not exactly cheap either. I recall when I was selling VMWare licenses 10 years ago, it was starting around $5000 per server.
For instance how you are charged for S3 traffic your buckets receive even if you don't have any files there. Or how traffic between zones that is outside of your control is still charged. Or how things like AZ replication cost a ton and you have no metric to show if it even makes sense to enable them. Heck, even usage alerts cost money.
And that person isn't alone. If you look around, you'll find a lot of services on the internet which directly link to S3 buckets using thee AWS-provided endpoints.
Went with a small cluster of cheapo ARM64 scaleway servers (no bandwidth billing), which costs us ~15 Euro a month.
Much better than the likely ~$US1.5k with S3 just for transfer costs alone.
Can you say a bit more about these two things? When do you get charged for s3 traffic on a bucket with no files? What do you define as uncontrollable cross zone traffic here?
Can only imagine the insanity that goes on at huge Pinterest level scale. How many EC2 instances do they have? Thousands? Hundreds of thousands?
I've spent a lot of time helping web developers, that don't have a ton of infrastructure experience, that get into AWS and they almost always do it the wrong way (the most expensive way). As in, they take whatever they were running on-premise and just throw it on EC2.
Or their IoT talk? https://www.youtube.com/watch?v=v7oqSTmrfVc
I've seen so many people just create an EC2 instance for serving static content.
If you have a banging new React app that generates static files, you don't need anything more.
Once worked at a place that needed to do rapid crawls of websites on short notice and we saved a lot of money by moving from.dedocatrd instances to lamdas that we could scale out and down as needed.
How you use them is important.
..just like it's easier to get I to debt with a credit card than a personal loan. Credit card debt mounts one purchase at a time. Personal loans require you to decide to borrow €X.
MBAs/Accountants...
The same costs that are being used to justify the value of the cloud are now being used to justify going back to buying servers. Which is the wrong solution, by the way.
With anything it just comes down to education and best practices. People need to utilize the incredible tools out there along with understanding better how the cost structures work.
Eg. 600 TB data out and 100 TB in is $37300 on AWS, and by going with colocation a price of < $500 is very achieveable.
That's ~1/75th of the cost!!!
There is nothing to understand here, except that AWS in insanely expensive and colocation is a way better option in this situation.
Sometimes you don't need that.
AWS S3 provides reduced-redundancy options for less cost. It'd be nice if the same applied to other services.
You're not gonna get a dedicated 10 Gbps link for a few hundreds bucks with a free server.
Let's say you spread that across 10 dedicated instances ("optimized droplets") on DigitalOcean, at a cost of $800. They account pool the droplet transfer, so that's 50tb with the instances. The remaining 550tb would cost you $5500.
$6,300 vs $37,300 and you get ten servers with DO.
And if you really wanted to be creative, spin up 100 $20 instances, which would cost you $2,000 and give you 400tb of pooled transfer. Then spin up the 10 $80 optimized droplets to use for actual work (maybe there would also be some use case for the 100 standard droplets with 2vCPUs and 4gb ram; otherwise idle them). That gets you down to $4,300, almost a tenth of what AWS is charging just for the transfer.
When it comes to transfer, AWS is a minimum of 5x more expensive than it should be even if you assume a premium for the service. It's a big fat money maker for them.
i run a large AWS consolidated billing family for a sizeable computer science graduate research lab and tracking our AWS spends are an absolute nightmare.
if you think about it for a minute, why would it be in the best interests of amazon/AWS to allow us granular, easy to parse and (most importantly) easy to customize and use billing reports? they're in the business of making money, and providing mechanisms for folks to limit their spends will limit profits.
another thing to consider is that the billing subsystems for all of these cloud providers are literally one of the first things to be engineered, and after release, one of the last to ever be updated.
for instance, it took amazon two years to release OUs (organizational units): one year in closed beta, one in open. while these are great for organizing accounts, you still can't see how much an OU spent w/o a bunch of python/boto gymnastics!
i was on a call w/some of the leads of the aws billing subsystem about a year back, and asked about what the roadmap for billing features and the response was "2020 at the earliest".
Far better than any internal tool I had the chance to work with.
since the aws billing subsystem can't map OU->$$$, i wrote a thing: https://github.com/ucbrise/aws-audit
it'd be also super awesome to have OU-based budgets.
we use teevity ice when we really need to dig deep (https://github.com/Teevity/ice) but it's pretty much abandonware at this point.
i've also explored a couple of commercial offerings (ronin & teevity) but they don't work well in our AWS research credit-based model.
In commercial tools, I would have a look at https://www.cloudhealthtech.com/ and https://cloudcheckr.com/ and there was a third I can't remember the name.
They should have good reporting since that's the only point of the tool, but they charge an arm and a leg.
I've personally known Corey for 10+ years and he's a good dude, so if anyone is looking to lower their AWS bills, talk to Corey.
these companies are a dime a dozen, no personal offense intended to yourself or this company.
I know him from back when I was helping maintain the Saltstack python config management tool[1]. He was a user and we were doing training on contributing code to salt. It turned out that I did teach him a thing or two and he did several contributions to salt[2]. That's literally it.
[1] https://github.com/saltstack/salt
[2] https://github.com/saltstack/salt/commits?author=quinnypig
https://threadreaderapp.com/thread/1091041507342086144.html (original Twitter link: https://twitter.com/QuinnyPig/status/1091041507342086144)
That's all it has taken to save a lot of money.
Besides giving businesses more legibility into what specific parts of their business logic cost to operate vs. the value they generate, you can start building higher-order financial systems based on flows of capital+information within businesses. From there you can implement all sorts of financial engineering like insurance and options+derivatives that could allow businesses to do things like dial up leverage against these flows. Certainly half-baked ideas, but fun to think about the possibilities.
One is that not everything will fit. Lots and lots and lots of workloads exist in their current form and are not going to switch overnight. Whatever bookkeeping method that gets developed needs to deal with the mix of costing models.
Another is that you still need to assign costs. In a lot of companies this is the subject of intense corporate politics. Whether such a method is adopted will depend on who is wielding what cudgel.
Related to which: there will be cases of premature optimisation on the visible. Optimising for cost is fine, but costs often include estimates that can be overlooked. It's one thing to optimise for "least dollars spent per invocation". Another thing to optimise for "fewest pissed off customers". The latter is harder to measure but in many cases more important.
But overall? Yes. I think it could be a step forward.
The other part, though, is that dev teams in large companies often aren't held accountable for on-prem costs.
The on-prem costs are often in a big baseline number with little visibility into how much of that big number belongs to each team.
As margin continues to expand, the need for alternative models and competition in 'Cloud' is becoming increasingly apparent.
https://storj.io/blog/2018/11/the-high-price-of-traditional-...
Throughout the processes the word "cloud" was brought up. Who's cloud would we use? Over and over again I tried to explain we were actually building a "cloud" service. And by that I mean we are just offering a service that runs on our servers.
Due to the feature set and cost we ended up settling on bare metal servers from SoftLayer (IBM). The entire solutions has been made to run on commodity hardware.
For the longest time the company kept marking that we were using "IMBs Cloud".
Every now and then I get a request to ask what it would take to move to AWS. My response is always the same. More operating budget, and less features.
We spin up DR environments for many servers2 in seconds -- and can do so because we have full control over the hypervisor, so moving to anything like AWS, Azure, or what not means we give up the ability for near instance restore. Owning the entire stack has its own set of problems, but in the long run we should be able to move much faster.
"The Cloud" -> "The Internet"
- If you want the AWS dashboard metrics to have 1 minute instead of 5 minute granularity, that's $2.10 per instance per month. 5 minutes is pretty useless, so either you set up other monitoring or you pay a tax on the number of instances you have.
- If you use AMIs (which you probably should) to launch EC2 instances with all your software baked in already, you will probably end up with dozens or hundreds of old, unused AMIs. Furthermore each of these AMIs is linked to a snapshot, which is stored on S3. S3 pricing is very cheap but it's a significant amount of work to determine which AMIs are no longer in use and to delete both the AMI and the corresponding snapshot. Every 100 AMIs you have at the standard 8GB root volume size costs you $18/month.
We previously had this issue. What we do now is instead of leaving old ones on S3, we download and archive them. We just tag them on the dashboard and a nightly script does the rest.
In general tagging is an extremely powerful way to organize your AMIs. This article[0] has good examples of tagging you can follow. We use something akin to the "Business Tag" strategy, with an Excel document. Definitely requires some internal organisation but the cost savings speak for themselves.
[0] https://aws.amazon.com/answers/configuration-management/aws-...
If you're going for AWS, you should consider rewriting a lot of your services to use AWS features well.
Auto Scaling Groups and Fargate EC2 are some common components I see few companies using.
If your instances are the same size through the day, you are doing it wrong!*
*Exception: If you provide the same level of service and traffic 24/7.
Anecdata is terrible, but my experience running 1 Fargate container 24x7 on the lowest specs (0.25 CPU and 512 MB RAM) to handle baseline was was going to cost as much as a no-contract T3.micro EC2 instance with much more capacity (2 CPU and 1 GB RAM). AWS Kubernetes was also a bust at $120/mo just to get started (that's the cost before an EC2 server is provisioned).
EC2 is just EC2 with scaling groups while ECS is a fully non-managed solution that's for small items.
I love running stuff in the cloud, but without a conscious decision in an organization to prepare for, and avoid, the various pitfalls, its just a giant cost sink.
Figuring out how/if it's used is really convoluted. And getting out early is a pain.
> You can choose to pay for your Reserved Instance upfront, partially upfront, or monthly
source: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts...
Long story short, only play 1 year full upfront.
I'm working on a Kubernetes configuration at home that provides the common & popular features AWS in a consistent & portable manner: blob store, database, etc.
I've moved off all (well like 2) my personal sites to other VPS provider, that starts at $5/month for 512MB VPS.
The worst annoyance is 'Reserved instances'. You are basically signing up for a long term contract that you can't get out of easily.
Netflix run a spot market for instances to drive down costs for exactly the reasons mentioned here
As AWS Use Soars, Companies Surprised by Soaring Bills
In this case, the history of the users commenting is enough to make it overwhelmingly unlikely that they were paid, and the well-known propensity of users to comment just on a title clinches it.
Still not a great comment I admit, but with the amount of discussion going on I would be surprised if everyone is subscriber or if they are going off of the headline alone.