A Tale Of Two Batteries
MartinPacker 11000094DH Visits (4238)
I’m starting to write this on a train to London. (Not Paris.) When I get there I’m going to present the “New Improved” “Even More Fun With DDF” pitch to the UK GSE zCMPA user group.
I was done with the slides a few days ago - or so I thought.
Well, I got some “down time” earlier this week to work on my DDF code some more - which resulted in another slide in the deck, and now this blog post.
You might recall that I can - from SMF 101 (DB2 Accounting Trace) - discern the topology of machines connecting to DB2 via DDF. I wrote about it extensively in DDF Networking. One of the examples was a pair of groups of 32 contiguous IP addresses.
Each of the groups of 32 machines - as that is what they are - comprises machines connecting to a single application. The Platform Name is filled in - via the JDBC driver in this case - so I know the application name. Actually the Platform Name is not constant in this set of data but follows a clear naming convention.
Before I go on, I should say contiguous IP addresses aren’t necessary for this method; Just the naming convention. But contiguous IP addresses suggests a battery of machines deployed at the same time.
The Thought, Such As It Is
So, I got to thinking: If these really are batteries of middle-tier machines we can perform statistical analysis on them.
Some people might be confused by the term “battery”; I’m appealing to the original meaning - as in “gun battery” rather than the thing you lick to get a tingle on your tongue.
<<Serious Face Back On>>
I modified my code in the following way:
The “pro tip” is this: When passing a transient file consider if it wouldn’t be more useful to pass a CSV file. There is no need to squeeze any of the fields to get rid of blanks. Not squeezing is handy for any downstream DFSORT or ICETOOL processing.
I loaded the CSV file into Excel (which I actually find frustrating to use).
I then created graphs to show the CPU seconds of Class 1 time occasioned by each machine in the battery.
A Nice Test Case
So I took 3 hours of a customer’s data for a 4-way DB2 Data Sharing Group. For simplicity in what follows I’m only showing a single DB2 subsystem’s view.
In this example there were two batteries of 16 machines each. These are Websphere Application Server (WAS) machines, handling part of the customer’s Mobile workload.
I’m led to believe these two batteries of servers are meant to be balanced. So I would expect - certainly over the 3-hour interval - the Class 1 CPU in DB2 to be balanced. So look at the following two graphs:
This is Battery W2M.
And the following is Battery W3M.
Each graph has 16 bars. Each bar is DB2 Class 1 CPU seconds in the 3-hour data swag for a single WAS server.
So, there are a number of things to observe:
I think we can do useful work this way:
So, the “rich vein” of DDF so-called insights continues. And this post is yet another example of stuff you can do with SMF to bring conversations with architects and others to life.
So now you know - if you send me 101s - another rabbit hole I’m likely to go down.
I’m finishing writing this on the train home from London; We had a very lively discussion on DDF (and a great meeting overall). Of course the two graphs in this post featured - and played as I thought they would.
One particular aspect seemed to gain traction: In DB2 DDF Transaction Rates Without Tears I wrote about SMF30ETC - Enclave Transaction Count in SMF 30.
The context was trying to work out which DB2 subsystems and which time frame to analyze SMF 101 from. While it might only be possible to get and process 15 minutes to 1 hour of data (particularly if you’re a consultant as I am) you want to time it right. SMF30ETC might very well tell you where to dig. Of course, without complete coverage you never know if some other piece of DDF work from some other timeframe was important. Oh well, you can’t have everything.