@DevOpsSummit Authors: Yeshim Deniz, Zakia Bouachraoui, Liz McMillan, Pat Romanski, Elizabeth White

Related Topics: @DevOpsSummit, Microservices Expo

@DevOpsSummit: Blog Feed Post

Microeconomics For Application Performance By @Ruxit | @DevOpsSummit [#DevOps]

About 15 years ago I gave an application performance presentation to some storage guys

Using Microeconomics to Think About Application Performance

About 15 years ago I gave an application performance presentation to some storage guys. Since I was a database jock at the time and didn’t “speak” I/O very well, I had to try a different approach. Rather than speaking over their heads in my own language, or faking it using their language, I tried to pick something neither of us were experts in – microeconomics. What’s interesting is that that presentation became my modus operandi for tuning systems. As I went from customer to customer, each with a different application or architecture, I needed a normalized approach so I didn’t get lost in the technology.

Apologies in advance to people who really know economics – I use microeconomics as a communication tool; this is not a strict interpretation…

Most people are familiar with the concept of supply and demand, and the impact of these forces on relative price. High demand and low supply for a desirable good or service drive prices up, while low demand and high supply drive prices down. Over the long term, as influences on supply and demand normalize, price equilibrium or “stabilization” occurs.


Which leads me to my simple mantra for performance management: If you want something to run faster, you can either ask for less stuff (i.e., decrease demand), or deliver results faster (i.e., increase supply). Whichever factor in this equation you have influence over dictates your next step. In other words: work on what you can fix.

There’s one catch: Supply doesn’t automatically equate to capacity. A bigger shoe does not make you run faster, just like a full tank of fuel doesn’t make you drive faster.

Here’s an example of a true supply-side issue. Note that all the illustrated virtual machines, processes, and services depend on the processors of a single ESXi host, and these processors can’t handle the load.

Finding root cause

One impact of this supply-side shortage is a service slowdown. Notice the big delay in CPU…

Execution Time Break Down

But have a look at the processor metrics for the same time period. There’s still plenty of capacity here:

CPU time is low

So supply can be thought of as capacity or speed, depending on the situation. To solve the first supply-side issue you need more processors. To solve the second supply-side issue you need faster processors.

But there are ways to solve such problems from the demand side of the equation. Reducing demand may make sense from a performance perspective, but who wants less? Think of any important, business-facing application: stakeholders always want to deliver more, not less. More traffic. More page views. Bigger shopping carts. More orders. Mo’ money, ya’ll.

So throttling down user demand is a big no-no. This means that, for performance purposes at least, your focus should be on the supply side, satisfying demand requests via the efficient execution of commands. Why make two trips when one will do? Why fetch a row 10 times when you can get all 10 in in a single go?

Check out this classic problem pattern in the image below. The issue is that, in order to service the user request, the application makes way too many calls to the database. Rather than being efficient, it creates unnecessarily high demand and results in a poorly performing application.

Too many statements

The last consideration in my efficient execution of commands approach to supply is that the approach needs to be applied recursively. For every tier, layer, service, or infrastructure component in your environment, review is needed to confirm that supply efficiently meets demand:

  • Do you have enough supply (capacity) on the front end?
  • Is the server side code that supports the front end efficient (demand)?
  • Do you need faster (supply/speed) or more (supply/capacity) CPU cycles?
  • Is your network healthy (demand/re-transmissions) or do you need additional bandwidth (supply/capacity)?

This model has served me well for years across a range of systems. Plan well, monitor often, deliver faster, and demand less.

The post Using microeconomics to think about application performance appeared first on The ruxit blog.

Read the original blog entry...

More Stories By Dynatrace Blog

Building a revolutionary approach to software performance monitoring takes an extraordinary team. With decades of combined experience and an impressive history of disruptive innovation, that’s exactly what we ruxit has.

Get to know ruxit, and get to know the future of data analytics.

@DevOpsSummit Stories
The best way to leverage your Cloud Expo presence as a sponsor and exhibitor is to plan your news announcements around our events. The press covering Cloud Expo and @ThingsExpo will have access to these releases and will amplify your news announcements. More than two dozen Cloud companies either set deals at our shows or have announced their mergers and acquisitions at Cloud Expo. Product announcements during our show provide your company with the most reach through our targeted audiences.
Enterprises are universally struggling to understand where the new tools and methodologies of DevOps fit into their organizations, and are universally making the same mistakes. These mistakes are not unavoidable, and in fact, avoiding them gifts an organization with sustained competitive advantage, just like it did for Japanese Manufacturing Post WWII.
When building large, cloud-based applications that operate at a high scale, it's important to maintain a high availability and resilience to failures. In order to do that, you must be tolerant of failures, even in light of failures in other areas of your application. "Fly two mistakes high" is an old adage in the radio control airplane hobby. It means, fly high enough so that if you make a mistake, you can continue flying with room to still make mistakes. In his session at 18th Cloud Expo, Lee Atchison, Principal Cloud Architect and Advocate at New Relic, discussed how this same philosophy can be applied to highly scaled applications, and can dramatically increase your resilience to failure.
DevOpsSummit New York 2018, colocated with CloudEXPO | DXWorldEXPO New York 2018 will be held November 11-13, 2018, in New York City. Digital Transformation (DX) is a major focus with the introduction of DXWorldEXPO within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term.
With more than 30 Kubernetes solutions in the marketplace, it's tempting to think Kubernetes and the vendor ecosystem has solved the problem of operationalizing containers at scale or of automatically managing the elasticity of the underlying infrastructure that these solutions need to be truly scalable. Far from it. There are at least six major pain points that companies experience when they try to deploy and run Kubernetes in their complex environments. In this presentation, the speaker will detail these pain points and explain how cloud can address them.