Kubernetes: Industry use case
Kubernetes :
Kubernetes is an open-source container orchestration platform designed to automate the deployment, scaling, and management of containerized applications. It makes a cluster to automate all our application on the container platform.
Kubernetes management:
> k8s control resources by application.
> k8s does automatically load balancing among many of the containers.
> Monitoring resource consumption and resource limits to automatically stop applications from consuming too many resources and restarting the applications again.
> start any container automatically when any one of the goes down and monitors them.
> Automatically leveraging additional resources made available when a new host is added to the cluster.
how Kubernetes works?
now a days application are running over the container platform to get ready it very soon. lots of container works together but no one to check them. Because if any container goes down due to any circumstances, so many customers would not be able to reach our application. so to keep on checking them Kubernetes works over all the containers. and if any one of them goes down k8s automatically other and the flow of the application never fails.
Kubernetes cluster:
Kubernetes clusters are comprised of one master node and a number of worker nodes. These nodes can either be physical computers or multiple containers depending on the cluster. in this cluster we have two types of nodes , master node and worker nodes.
master node :A master node manages whole cluster .Master node assign the tasks to respective container, and it decide when to start or stop the container.
It coordinates processes such as:
- Scheduling and scaling applications
- Maintaining a cluster’s state
- Implementing updates
worker node: worker node performs the task assign by the master node. these are the main containers that run application. in one cluster min one master and one worker node is necessary to have.
POKEMON GO:
POKEMON GO is free mobile game that combine gaming with the real world . they create a Augmented reality (AR) with location and mapping technology . so that player can catch and train the game character in real location.
Problem faced:
Pokemon Go is developed by Niantic. within 15 min of launch of game in Australia and New Zealand, player traffic surged well past Niantic’s expectations. This was the first indication to Niantic’s product and engineering teams that they had something truly special on their hands. on next day they had a launch of game in US also , so to keep everything faster Niantic was not so ready because they really didn’t expect so much growth of the game in short period.
Niantic team targeted 1X player traffic, with a worst-case estimate of roughly 5X this target. Pokémon GO’s popularity quickly surged player traffic to 50X the initial target, ten times the worst-case estimate.
solution:
Being so much traffic on its launch day , even the engineers of the Pokemon go was not ready , how could they manage it. the answer was kubernetes.
The solution was in the magic of containers. The application logic for the game ran on Google Container Engine (GKE) powered by the open source Kubernetes project. Niantic chose GKE for its ability to orchestrate their container cluster at planetary-scale, freeing its team to focus on deploying live changes for their players. In this way, Niantic used Google Cloud to turn Pokémon GO into a service for millions of players, continuously adapting and improving. This gave them more time to concentrate on building the game’s application logic and new features rather than worrying about the scaling part. with the help of GKE they fastly launched their server.
Thanks for reading this blog…