TNS
VOXPOP
You’re most productive when…
A recent TNS post discussed the factors that make developers productive. You code best when:
The work is interesting to me.
0%
I get lots of uninterrupted work time.
0%
I am well-supported by a good toolset.
0%
I understand the entire code base.
0%
All of the above.
0%
I am equally productive all the time.
0%
CI/CD / Cloud Native Ecosystem / Containers / Kubernetes / Microservices / Observability

Is Your Infrastructure Ready for a Decoupled Deployment?

Nov 2nd, 2016 9:02am by
Featued image for: Is Your Infrastructure Ready for a Decoupled Deployment?
This is the latest entry in a series of essays from participants of the upcoming  KubeCon and CloudNativeCon conferences, being held November 8-9 in Seattle.

Swarna Podila
Swarna Podila heads the product marketing function at Avi Networks, where she is responsible for creating messaging, marketing content, and product evangelism. Prior to Avi Networks, Swarna led product marketing functions at organizations including Mocana, Citrix, and Symantec. Swarna earned a Bachelor's degree in Electronics and Communications Engineering and an MBA from Santa Clara University.

As Brendan Burns once explained eloquently, Kubernetes was built on the premise of decoupling a whole slew of microservices from being highly connected, interdependent problems so that one minor change does not result in a ripple effect and bring the entire application down.

As Kubernetes adoption picks up, I set out to know if my friends on Twitterville shared the same concerns that we (our customers) have. I put out a Twitter poll on problems/concerns encountered with Kubernetes deployments. Deployment Automation followed by Load Balancing were the top answers.

The industry is moving from a monolithic app architecture to a microservices architecture to deliver continuous innovation with hundreds of microservices apps. While k8s can help with automating deployment, scaling, and management of containerized applications, it was interesting (and validating) to see the results of my recent poll.

Deployment Automation

When delivering continuous updates to hundreds of microservices, there are several aspects to keep in mind to ensure that one change does not break the application.

Service Discovery

Once you have multiple instances of a microservice application, the primary question to answer is “How do I connect to a particular microservice?” or “How does another service consume the service provided by a particular microservice?” Whether the target instance resides within the pod or in a different pod, the service must be able to successfully locate it and send requests as required to ensure a seamless user experience.

Load Balancing

The next major challenge to address is load balancing application traffic for these microservices. Any load balancing solution can help you handle north-south traffic; you just need to ensure you work with your networking team to set up routing rules to follow traffic from public IP instances to the load balancers and ensure that these routes always point to the right load balancer. If the load balancer fails-over in a high-availability setup, you may need to manually update, or write a script to update routing rules to change the next hop from one host to the other. However, these microservices generate a large volume of east-west traffic across pods in a Kubernetes cluster. You will need a solution that can handle traffic intelligently across the pods.

Multi-Cloud Traffic Management

A subsequent challenge to load balancing is the ability to deploy applications in a multi-cloud environment. For example, we should be able to deploy apps in OpenShift clusters running on different data center sites or public cloud regions. The handoff across these sites should be seamless and be able to automatically scale-up both application and load balancing resources. Traffic management strategies have to support infrastructure heterogeneity and abstract complexity from IT operations while offering a consistent experience no matter where the apps get deployed.

Application Analytics for Autoscaling

Once you have setup all the application services and deployed your Kubernetes clusters, the next step is to monitor application traffic and performance. Some of the metrics you need to measure are the number of connections, transactions per second, user types, user behavior, among others. The more granular the insights you get, the more efficient your Kubernetes deployment. Containers, microservices, and CI/CD initiatives gained popularity because they automate service delivery. Hence, scaling microservices applications should also be automatic and should not require manual intervention. You need insights into traffic patterns to define autoscaling triggers for microservice instances or load balancers to plan for peak usage.

These analytics also help you understand the specific source of failure or a particular microservice that triggered the ripple effect. This will also help your troubleshooting be a lot less like the “searching for a needle in pods (haystacks)” nightmare!

Conclusion

Rolling out your microservices deployment should not become an ordeal. Kubernetes delivers all the tools you will need to automate your deployment. We look forward to seeing you at KubeCon 2016 to chat more about your experiences and concerns.

Feature image: train couplers, photo by Daniel Schwen, CC BY-SA 4.0.

Group Created with Sketch.
TNS owner Insight Partners is an investor in: Kubernetes.
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.