Live data from Hacker News

Containers vs. Zones vs. Jails vs. VMs (2017)

blog.jessfraz.com

131–134 of 134 posts

Re: Containers vs. Zones vs. Jails vs. VMs (2017)

#131
post #36

Earlier quoted context omitted.

No. Docker volumes aka bind mounts have little or no overhead. You don't want to run a database in an ephemeral "cattle" container without some kind of HA because you'd lose data.

docker run --rm \ --name postgresql \ -e POSTGRES_PASSWORD=postgres \ -d \ -p 5432:5432 \ --cpuset-cpus="0-1" \ --cpus 2.0 \ -m=1024m \ --mount type=bind,source=$HOME/docker/volumes/postgres,target=/var/lib/postgresql/data \ postgres:12.2 native results on a digitalocean VM: $ pgbench -c 100 -j 2 -T 60 postgres starting vacuum...end. transaction type: scaling factor: 1 query mode: simple number of clients: 100 number…

Docker introduces all kinds of performance issues. I for example noticed higher latency even with just pgbouncer. It was very visible when running integration tests, which normally took 15 minutes, but as a container it was 45min - 1h.

Re: Containers vs. Zones vs. Jails vs. VMs (2017)

#133
post #127
post #76

Earlier quoted context omitted.

The gap is that it's skipping half of what makes Docker powerful, and what isn't really discussed in this conversation at all either. Distribution. E.g. see this line of code: https://github.com/p8952/bocker/blob/master/bocker#L25 "But I thought bocker implements Docker?" It doesn't, it only attempts to implement the "Docker daemon" part, and piggy-backs on Docker registries for image distribution. This is a huge par…

I'd argue that bocker makes that more clear. It takes away any idea that the magic is in the containers. To the degree that it is, Linux provides that...not Docker. It helps focus on what Docker does provide, as you mention.

Right that's a reasonable claim. bocker makes false claims though, which causes a bunch of confusion (which seems to be the case for the person I was replying to).

"Docker implemented in around 100 lines of bash."

This is simply not true.

Re: Containers vs. Zones vs. Jails vs. VMs (2017)

#134

Earlier quoted context omitted.

But wait, aren't you "full-stack"? That means you also know all the minutia of UI animation rendering performance optimizations across the mobile landscape, right?

I can "get by", but that doesn't mean I'm able to do an excellent job on every aspect. It's definitely a long chain of compromises.

My point precisely.
Post reply on HN