3 ms·
That's a nice in theory, but it's insufficiently imaginative. The unexpected state can be out of memory, out of disk, persistent network failures, etc. And you
by ben509 8y ago
That's a nice in theory, but it's insufficiently imaginative. The unexpected state can be out of memory, out of disk, persistent network failures, etc.
And you need to be able mitigate bugs that make it to prod. Okay, your code never lets bugs into prod, but your dependencies may have issues, or you might have an unexpected conflict with the underlying OS. If you can limp along with a buggy configuration that's causing some containers to go down, you can often get a patch in place without having a total outage.
- lmm 8y ago> That's a nice in theory, but it's insufficiently imaginative. The unexpected state can be out of memory, out of disk, persistent network failures, etc. Well sure, but if that's your threat model then don't you need to restart whole VMs/machines rather than individual containers? I've always felt like containers fall between two stools (at least for languages/ecosystems that have a good way of packaging programs with dependencies - I appreciate that they make sense as a deployment solution for e.g. Python): their isolation guarantees aren't as reliable (at least in practice) as full VMs/unikernels, but you pay most of the price in terms of not being able to use normal IPC mechanisms.
- justinhj 8y agoIf you have pairs of processes that communicate over IPC you could just build them into the same container
- ben509 8y ago> Well sure, but if that's your threat model then don't you need to restart whole VMs/machines rather than individual containers? You sure do, but you pay someone else to deal with all that nonsense. And because you can share those VMs, it's cheaper. > I appreciate that they make sense as a deployment solution for e.g. Python Any language-specific solutions like .war files have no answer for binary dependencies or utilities provided by a package manager, and they're entirely right not to try and solve that problem. You also occasionally will get a third party that requires you run their awful utility... you may be seeing where my skepticism of "we'll just write good code" comes from. The other advantage is your deployment artifact has a single identifier, so it gives you a much nicer story for rolling back a bad deployment. > ... but you pay most of the price in terms of not being able to use normal IPC mechanisms. If I had computing demands that warranted IPC via shared memory, I'd probably agree the overhead of containers is too much.
- lmm 8y ago> You sure do, but you pay someone else to deal with all that nonsense. I don't think I follow? I've got a class of problems where I might want to restart my application, and a class of problems where I might want to restart the VM/machine. I don't see how adding containers in between the two helps. > Any language-specific solutions like .war files have no answer for binary dependencies or utilities provided by a package manager, and they're entirely right not to try and solve that problem. JVM culture steers away from depending on binaries on the host system; in the rare cases where you want JNI then something like https://github.com/mrburrito/jni-loader https://github.com/mrburrito/jni-loader is the standard approach IME. I think I've used literally two system libraries in my career, and both were standard enough that I was content to include them in the OS baseline. Appreciate that other languages do approach this differently. > The other advantage is your deployment artifact has a single identifier, so it gives you a much nicer story for rolling back a bad deployment. I don't see how this is different from any other kind of deployment?