Live data from Hacker News

Google Launches Managed Service for Running Docker Apps on Its Platform

googlecloudplatform.blogspot.com

31–40 of 69 posts

Re: Google Launches Managed Service for Running Docker Apps on Its Platform

#31
post #30
post #2

More info/docs here: https://cloud.google.com/container-engine/ I'm on the Kubernetes/GKE team and happy to answer any questions you all might have. We also all hang out on IRC at #google-containers on freenode.

We use AWS Elastic Beanstalk for Docker deployment. Can you comment on how this is different? I see it supports multiple containers per VM - are there other significant distinguishing factors?

Elastic Beanstalk is a VM centric management framework.

Kubernetes and GKE operate at a different level. It is an API for being able to schedule and manage containers instead of VMs. At this point, k8s/GKE doesn't have an idea of an "app" any more than a VM IaaS service has an idea of an app.

Moving from a VM centric view to a container centric view improves a lot of things: * Easier to create and manage images * Portability -- images can be moved between providers. Develop on your laptop with docker/k8s and deploy the exact same container image. * More transparency into compute workload. The hosting VM or cloud can see more of what is going on in the container for monitoring and logging, etc. * More efficient/higher density -- you can run more on any piece of (virtual?) hardware * More flexible resource sharing/overcommit -- as you drive density up you can get more nuanced about what workloads take get priority.

Some of this stuff is still in its infancy -- complex resource models aren't fully supported in Docker yet -- but it is where things are going, at least based on Google's experience.

Re: Google Launches Managed Service for Running Docker Apps on Its Platform

#32
post #19
post #16

Earlier quoted context omitted.

Is it possible to run a KVM VM inside one of the containers? I have an application for launching and managing VMs and letting people spin up a Google container to try it out would be neat.

GCE doesn't support nested virtualization. But if you are running Kubernetes on bare metal, there is no reason you couldn't map in /dev/kvm and have k8s run VMs for you. I haven't done it though :)

Ok, I've done VMs inside docker already which has been fine, was hoping GCE would let me do it on Google's systems.

Re: Google Launches Managed Service for Running Docker Apps on Its Platform

#33

Can someone explain the difference between Apache Mesos, Apache Spark, and Kubernetes. As someone reading just announcements, and having never experimented with any of these tools, they sound like they promise the same capabilities. Is it just that they are different open source projects aiming for the same goal ... or are their goals different?

Apache Mesos is based on Twitter's expertise in deploying their cluster, Kubernetes on Google's. They do things in different ways. Spark seems to be in the same area as Hadoop, so not relevant to the conversation.

Re: Google Launches Managed Service for Running Docker Apps on Its Platform

#34

Can someone explain the difference between Apache Mesos, Apache Spark, and Kubernetes. As someone reading just announcements, and having never experimented with any of these tools, they sound like they promise the same capabilities. Is it just that they are different open source projects aiming for the same goal ... or are their goals different?

In simple terms:

Apache Mesos is a distributed system that is kind of a "bottom layer" for computations and storage (whether in-memory or on disk).

Apache Spark is a distributed application that runs on top of Mesos and does computations that takes advantage of cluster computing. It can do classic MapReduce or other algorithms that you write using its API.

Kubernetes is a distributed system that runs Docker in a cluster. Docker is a way to run sandboxed applications. Kubernetes can run on Mesos.

Re: Google Launches Managed Service for Running Docker Apps on Its Platform

#35

Can someone explain the difference between Apache Mesos, Apache Spark, and Kubernetes. As someone reading just announcements, and having never experimented with any of these tools, they sound like they promise the same capabilities. Is it just that they are different open source projects aiming for the same goal ... or are their goals different?

I'll give it a shot, with the disclaimer that this explanation is based on conference talks I've seen and documentation I've read.

Spark is a successor to Hadoop, aiming to perform big distributed data crunching jobs more quickly by not limiting itself to a map-reduce paradigm and by holding more data in memory.

Apache Mesos is a resource scheduler for a cluster of machines. It is architected to be agnostic about the kind of application running on it, but I get the impression it's primarily used to make things like Hadoop and Spark run on the same cluster without stepping on each other's toes (and not used so much for long-running services like a web app). An application says to Mesos "hey I'd like to run job X", outlining the resources that it needs, and then Mesos looks at the cluster to see the best place to run the job. Mesos has some Docker integration but it's weird. Instead of launching your job and creating cgroups directly as it usually does, Mesos has to run a proxy process that talks to Docker and asks it to do it. (This is because Docker no longer has standalone mode. Which is my biggest gripe about Docker.)

Kubernetes is solving a similar problem to Mesos, how to allocate resources in a cluster to all the jobs that you might want to run on it. It's explicitly focused on "containers", though not necessarily just Docker containers. (The README at https://github.com/GoogleCloudPlatform/kubernetes makes no mention of Docker.) I get the impression it's focused more on long-running processes like web servers and less on ephemeral Hadoop-style jobs.

Re: Google Launches Managed Service for Running Docker Apps on Its Platform

#36

Can someone explain the difference between Apache Mesos, Apache Spark, and Kubernetes. As someone reading just announcements, and having never experimented with any of these tools, they sound like they promise the same capabilities. Is it just that they are different open source projects aiming for the same goal ... or are their goals different?

Mesos and Kubernetes share lot of commonalities: both are useful for managing (virtual) compute resources for a given application. Primarily, as an app developer, you are interesting in specifying the required resources at a high level: 10 front end instances, 20 middle tier, and 3 back end database instances. You may not care how the resources are provisioned as long as some underlying SLA is satisfied. This is useful for boosting service uptime since in any long running service the nodes may go offline anytime and the framework will re-provision the resources automatically--often within few mins.

Mesos is useful to share resources across multiple clusters (i.e., multiple departments using Hadoop within a same organization may want to share the resources), where as Kubernetes seems to focus on container applications using docker. In addition, Mesos implements dominant-resource-fairness (DRF) scheduling, which has some nice properties [0].

Lastly, Spark is just an application running on the top of Mesos or Kubernetes. Using my earlier example, Spark and Hadoop can run in a single datacenter on the top of Mesos without statically partitioning the clusters a priori each having an illusion that they own the entire datacenter.

[0] https://www.usenix.org/event/nsdi11/tech/full_papers/Hindman...

Re: Google Launches Managed Service for Running Docker Apps on Its Platform

#37
post #7

Earlier quoted context omitted.

confirmed I was able to do this (simply enable the API) on an existing project in the API Console

Oddly, I get a "only available for new customers" message, even after I enable the API.

That's because the link from the GKE page is for the free Google Cloud Platform trial ($300 credit), which is only available for new customers.

Re: Google Launches Managed Service for Running Docker Apps on Its Platform

#38
post #2

More info/docs here: https://cloud.google.com/container-engine/ I'm on the Kubernetes/GKE team and happy to answer any questions you all might have. We also all hang out on IRC at #google-containers on freenode.

Given that this is the alpha launch of Container Engine, and the Beta launch of Autoscaling and Managed VMs, what is the anticipated timeframe for this to be ready for production workloads?

I'm assuming that there'll be a beta of Container Engine in the near future, and then a stable 1.0 launch?

Re: Google Launches Managed Service for Running Docker Apps on Its Platform

#40
post #2

More info/docs here: https://cloud.google.com/container-engine/ I'm on the Kubernetes/GKE team and happy to answer any questions you all might have. We also all hang out on IRC at #google-containers on freenode.

Some google-managed base images would be helpful. The last time I checked, some of the major public docker images were still shellshock-vulnerable. Pre-installed GCE tools would be helpful. Perhaps automated environment variables about region, etc.

Which images are still shellshock vulnerable? Wasn't aware that was an issue if we stick to the docker-managed images.
Post reply on HN