News for hackers. Stuff that matters.
Re:MRSK vs. Fly.io by 1ba9115454 on Wednesday March 22, 2023 @03:16PM (#35265849)
I'm surprised 37signals built MSRK as an alternative to Kubernetes.

They stated 2 reasons.

Deployments to K8s are slow.

K8s is hard to setup on bare metal.

Re:MRSK vs. Fly.io by datadeft on Wednesday March 22, 2023 @04:05PM (#35266404)
After they argued that k8s is better than AWS.

¯\_(ツ)_/¯

Re:MRSK vs. Fly.io by pc86 on Wednesday March 22, 2023 @04:20PM (#35266571)
Just because something is hard to use and slow doesn't mean it's worse than AWS.
Re:MRSK vs. Fly.io by lobstrosity420 on Wednesday March 22, 2023 @04:23PM (#35266602)
How would you say that both statements can’t be true at the same time?
Re:MRSK vs. Fly.io by datadeft on Wednesday March 22, 2023 @05:38PM (#35267417)
Sure they can.

I was just watching the video DHH put online about this new project and it was quite good seeing copy pasting IP addresses to YAML files still excites some people or think that this is somehow on par with a serverless offering to any cloud company.

Re:MRSK vs. Fly.io by tstrimple on Wednesday March 22, 2023 @08:01PM (#35268790)
It feels like so many people who complain about the cloud expense and complexity are only ever using VM based solutions and ignore all of the capabilities you get out of the box using managed or "serverless" services. When you treat the cloud like just another data center but someone else manages it for you you're likely not going to have an optimal cloud based solution and of course it's going to be more expensive.

If you're building a simple app, using Functions as a Service along with serverless document based storage solutions will enable you to have a very cost effective cloud deployment which includes so many things out of the box like the ability to scale globally without having to change your application architecture. For my small hobby projects, this amounts to a few dollars a month per application as the only cost which isn't purely consumption based is disk space for the database. I built an application for a small company (around 10k MAU) which costs them around $40 / month using these tools. Yeah, they could be on a small VPS somewhere with the same performance characteristics for the current user load. But then I would have had to build in all of the things I get from managed solutions myself. I haven't had to think about patching my server OS in years.

Re:MRSK vs. Fly.io by datadeft on Thursday March 23, 2023 @04:25AM (#35271807)
Yeah this is exactly how I see it. Thinking in terms of VMs is not going make you understand serverless.
Re:MRSK vs. Fly.io by krab on Thursday March 23, 2023 @12:26PM (#35277214)
Well, if you do it once every two months and you save two engineers' salaries, I'll be the first one to do it. And I hate YAML and repetitive work.
Re:MRSK vs. Fly.io by maxmcd on Wednesday March 22, 2023 @04:10PM (#35266464)
I believe 37Signals is replacing their Capistrano-based deploy for Basecamp with MSRK. It seems they're keeping their k8s deploy setup for Hey. (Just what I'm inferring from the first two paragraphs here: https://world.hey.com/dhh/introducing-mrsk-9330a267)
Re:MRSK vs. Fly.io by mdasen on Wednesday March 22, 2023 @05:17PM (#35267204)
The third paragraph ends: "With MRSK, we can deploy a new version of HEY in as little as 20 seconds."

They didn't say that they're replacing their k8s setup for Hey explicitly, but they go on to say the reason they wrote MRSK is that they like the advantages of containers while getting lower complexity and being able to use their bare metal hardware. It seems like they want to go in that direction.

Re:MRSK vs. Fly.io by FridgeSeal on Wednesday March 22, 2023 @05:48PM (#35267527)
Azure, AWS (and I therefore assume GCP) now have K8s products where can BYO own compute, and they’ll manage everything else. Best of both worlds, no?
Re:MRSK vs. Fly.io by davedx on Wednesday March 22, 2023 @06:02PM (#35267673)
He said it in the YouTube video he made. They explicitly estimate they're going to save 7M/year moving Hey to MRSK
Re:MRSK vs. Fly.io by mr_ndrsn on Wednesday March 22, 2023 @07:19PM (#35268433)
Yes, we're actively de-k8s/de-clouding all workloads, including Hey, with mrsk as the pattern. We've started with simple apps and moved up our complexity tree, updating mrsk as we go. My co-worker, Farah Schüller, wrote up a good summary of things so far: https://dev.37signals.com/bringing-our-apps-back-home/
Re:MRSK vs. Fly.io by ctvo on Wednesday March 22, 2023 @10:35PM (#35269818)
Can you expand on the limitations of AWS ECS? It seems like... you built a worse version of it.

Toss https://aws.amazon.com/ecs/anywhere on your own hardware and let someone else wake up at odd hours to worry about the container images making it on to the host.

Re:MRSK vs. Fly.io by mr_ndrsn on Thursday March 23, 2023 @09:48AM (#35274743)
I mean, mrsk has a different feature set than ECS, sure. But we don't want to pay AWS for ECS anywhere. We're trying to get off big tech where we can. I'm sure you've heard David talk about that.

This tool covers our use cases so far, and is easy to reason about. Ergonomically, it's very similar to Capistrano, which we're all familiar with.

Re:MRSK vs. Fly.io by ctvo on Thursday March 23, 2023 @10:14AM (#35275133)
Makes sense if you're dropping all AWS dependencies. For us, ECS Anywhere with its logging to CloudWatch and automatic IAM credentials management allowed us to still use the rest of the AWS ecosystem on cheaper and more specialized hardware.

It wasn't too bad to setup GitHub actions -> AWS ECR -> AWS CodeDeploy -> AWS ECS -> On-prem hosts via ECS Anywhere and that's worked well.

Re:MRSK vs. Fly.io by Thaxll on Wednesday March 22, 2023 @04:25PM (#35266617)
Such a terrible idea, let's build something that everyone else has a solution for, we're on our own with our custom solutions that no one else know or use.

We'll see how many years it will take them to come back to Kubernetes or equivalent.

And the argument k8s is too complicated so build our own looks really bad from an engineering perspective.

When you look at the issues: https://github.com/mrsked/mrsk/issues/44 you can some see trivial shortcoming that has been solved for years by other solutions.

Re:MRSK vs. Fly.io by throwaway110535 on Wednesday March 22, 2023 @04:44PM (#35266817)
Same could’ve been said for Rails…
Re:MRSK vs. Fly.io by mbreese on Wednesday March 22, 2023 @04:59PM (#35267020)
Honestly, the same could have been said about K8s when it was started too.

There’s nothing wrong with multiple projects in a space. It’s a big market with different niches.

Re:MRSK vs. Fly.io by firemelt on Wednesday March 22, 2023 @05:36PM (#35267398)
As an engineer reading this makes me feel ashamed
Re:MRSK vs. Fly.io by datadeft on Wednesday March 22, 2023 @05:42PM (#35267462)
And use IP addresses like it was 1999 again. Your IP addresses belong to exactly one location, the DNS server's config. Using a non-type safe configuration language is also meh. I am not sure why most people are unaware of Dhall...
Re:MRSK vs. Fly.io by nine_k on Wednesday March 22, 2023 @06:12PM (#35267755)
Dhall lacks a killer app that would use it. (Write one!)
Re:MRSK vs. Fly.io by datadeft on Thursday March 23, 2023 @04:34AM (#35271848)
k8s is a pretty good one. I would not touch k8s without Dhall:

https://github.com/dhall-lang/dhall-kubernetes

Re:MRSK vs. Fly.io by mr_ndrsn on Wednesday March 22, 2023 @07:24PM (#35268468)
IP addresses are easy to use in the configurations that inspired mrsk. Small apps that are fairly static. There are two main problems that mrsk is trying to solve.

1. Moving our stuff out of the cloud without going back to static hosts. 2. Giving new rails devs a tool where they can deploy their application easily, in a modern fashion.

Both of these are not so large or complex that you must use hostnames in configs instead of IP addresses. I will note, that most of our internal configs, do in fact, use hostnames rather than IP's. But judging a tool because an example used an IP address seems shortsighted.

There are plenty of things in mrsk to discuss without fixating on that.

Re:MRSK vs. Fly.io by datadeft on Thursday March 23, 2023 @04:33AM (#35271844)
>> 1. Moving our stuff out of the cloud without going back to static hosts.

I move companies between clouds and on-prem to cloud, cloud to on-prem (even though a bit bigger one than 37singnals) and I could use tools like Ansible and Terraform. In my experience when a smaller company starts to writes tools that solve the imaginary problems of the CTO they are not focusing on solving customer problems and this usually ends badly.

>> 2. Giving new rails devs a tool where they can deploy their application easily, in a modern fashion

Could you share the comparison chart of tools that you considered? What thought process led you to believe that this is an unsolved problem and requires a new tool? Genuinely interested.

>> But judging a tool because an example used an IP address seems shortsighted.

How should I judge it by than? Reading the code? Figuring out how to hold it right myself?

Re:MRSK vs. Fly.io by the-lazy-guy on Thursday March 23, 2023 @06:53AM (#35272745)
> In my experience when a smaller company starts to writes tools that solve the imaginary problems of the CTO they are not focusing on solving customer problems and this usually ends badly.

Like writing their own web framework in obscure programming language?

Re:MRSK vs. Fly.io by datadeft on Thursday March 23, 2023 @07:28AM (#35273065)
> Like writing their own web framework in obscure programming language?

Which caused the biggest spike in CO2 production for recorded human history while making operation teams rage-quit their job over undefined method [] for nil messages?

Disclaimer I love Ruby and Rails to death.

Re:MRSK vs. Fly.io by mr_ndrsn on Thursday March 23, 2023 @09:44AM (#35274683)
> I move companies between clouds and on-prem to cloud, cloud to on-prem (even though a bit bigger one than 37singnals) and I could use tools like Ansible and Terraform.

Where did anyone say we don't use other tools? Chef + Terraform are wonderful and still in use for us.

> Could you share the comparison chart of tools that you considered? What thought process led you to believe that this is an unsolved problem and requires a new tool? Genuinely interested.

Your phrasing here and in your previous quoted reply leads me to believe you're not genuinely interested. Our environment is not your environment, our experiences are not your experiences. No, I can't share a chart of other tools that were considered, but off the top of my head, Capistrano, various CI integrations, Github Actions, etc.

We're a rails shop. We're going to look at tools in that area. We're not going to go dig into dagger or garden.io or something that causes us to have to conform our dev/deploy environment to a mental model that adds more friction for our developers.

> How should I judge it by than? Reading the code? Figuring out how to hold it right myself?

It's not that complicated of code, only about 2k, total, IIRC? I mean, you could read it. I'm baffled that you're choosing to compare a structural design flaw like the iPhone antennae issue to the fact that a configuration example in a new tool used an IP address. Go off, king.

Re:MRSK vs. Fly.io by davedx on Wednesday March 22, 2023 @06:04PM (#35267691)
Kubernetes is terrible, I hate it with a passion, and welcome any alternatives that reduce the complexity (as it the stated vision of MRSK)
Re:MRSK vs. Fly.io by growse on Wednesday March 22, 2023 @06:47PM (#35268115)
Which bit, the APIs or the implementation?
Re:MRSK vs. Fly.io by FridgeSeal on Wednesday March 22, 2023 @07:43PM (#35268631)
> When you look at the issues: https://github.com/mrsked/mrsk/issues/44

Wow. That’s uh, that’s certainly a decision.

> They're the same service, because they're running the same image

If something purports to “run my containers” and “be an alternative to K8s”, I’d kind of expect it to run whatever it’s told. Whether running identical containers on the same host is a good thing or not really depends on your architectures choices and trade offs. Blindly being like “you can’t have this because reasons” makes this whole tool a giant non-starter IMO.

Re:MRSK vs. Fly.io by axelthegerman on Saturday March 25, 2023 @08:27PM (#35309167)
> And the argument k8s is too complicated so build our own looks really bad from an engineering perspective.

On the other hand, React is too complicated if you just need a bit of JavaScript on your mostly HTML/CSS page... So now you can use Hotwire if you like.

I don't see what's so bad about that (same things as MRSK and k8s)

Re:MRSK vs. Fly.io by akvadrako on Wednesday March 22, 2023 @05:14PM (#35267174)
Deploys with k8s are faster than most of the competition. When your process is optimized you can expect to go from code change to updated UI in about 5 seconds.
Re:MRSK vs. Fly.io by gurrone on Thursday March 23, 2023 @04:53AM (#35271971)
... and mrsk is imperative compared to the declarative approach of swarm and k8s. Especially if you go all in on gcp and use gke + config-connector + fluxcd or argocd and all the other controller, it takes time to know and understand how successful your latest change was. In the end k8s + controller is a huge asynchronous reconciliation loop. It might succeed to apply your changes at some point in time, but you've no idea when it starts and when it ends. That often sucks and takes a lot of time. And even more time if you've to figure out which change failed and why and if it's the final state already. Some older dudes with grey hair might remember cfengine and its eventual consistency approach.