Sunday, June 23, 2013

How Does vCenter Operations Manager Collects Data from a vSphere Environment?

This article is to ensure that I document a discussion I had a few days back with some Gurus of vCenter Operations Manager. The discussion ignited from a customer requirement where they wanted to know:

"If they can ETL (Extract, Transform & Load) 2 years old data from the vCenter Server DB into their freshly installed vCenter Operations Manager Environment."

Needless to say, customers see a great value in the Performance Analytic and Capacity Planning engine of vCenter Operations Manager. They want to ensure that they can use the historical data from VC and get some intelligence from the vCOps about the performance and capacity trends in their infrastructure in the past. Alongside, giving a peek into the history, this can also become a strong historical base for vCOps to provide future predictions which is another strong area of the product.

The requirement above immediately raises a few questions about the process of data collection:-

  • Does vCOps talk to vCenter Database through the vCenter Adapter to collect the data? If yes, can I feed historical data to give vCOps a kick-start?
  • What is the impact of Data Collection on vCenter Database? Do I need to increase resources CPU/Memory/IOPS to ensure that the performance is fine?
  • Other questions are around Data Collection cycles, remote collection etc.

Well, to be honest there can be unique questions from each deployment. Therefore, instead of looking at the questions, let's look at the process of data collection.

To recap, let us first look at the architecture of vCOps vAPP which will give us a clear picture as to where does the collection happens. (I wrote an article a few months back about the architecture & sizing of vCOps in case you are interested.)























If you look at the red highlighted circle, you can see that the collector sits on the Analytics VM, from where is uses adapters to collect data from resources such as vCenter, vCloud Director, Configuration manager or even 3rd party sources.


Now if we look at the collection process specifically for the vCenter Adapter, this is how the data is collected:-


vCenter Operations Data Collection Process using vCenter Adapter























Well this explains how data is collected from a vSphere Environment by vCenter Operations Manager. Since this model does not talk to vCenter DB, it is quite clear that you cannot have an ETL approach which I discussed in the beginning of this article

To conclude the data gathering process of vCenter Operations Manager is completely through PerformanceManagerAPI where vCenter Server acts as a proxy and the data is pulled from the ESXi hosts.


Share and Spread the Knowledge. 

Saturday, June 8, 2013

VMware Cloud Credibility: One-Stop-Shop To Learn About Cloud!

A few days back I was listening to VMware Communities Roundtable Podcast hosted by John Mark Troyer who works for VMware as a Director for the social media evangelist group. The podcast was of great interest to me as it discussed the VMware vExpert 2013 rewardees.

In-fact, once the results were out here, I was extremely happy and excited to see that, I have been honored with this title for the year 2013. Yes, I am a vExpert 2013 :-) 

One of the great thing about VMware technology and community is that this is an ocean full of knowledge and there is no end to learning. One of the greatest example of this is the VMware Cloud Cred Program which was discussed by John, Eric and Corey during this podcast. As soon as I heard about the program, I logged into the Cloud Cred Website to check what's cooking.

Once I registered and created my team and added some of my fellow vExperts and VMware enthusiasts to my team, I was exposed to the great collaborative features of this program, which not only allows you to work as a team, but also enables you to learn together and understand both basic and advance concepts of Virtualization & Cloud Computing.

What's fantastic is that this program is not only for Virtual-Nerds (name of our cloud cred team) but also for individuals who want to get started with Virtualization & Cloud Computing. This portal acts as a gateway which exposes you to a number of great resources whether its influential people on twitter, some great blog articles on cloud computing or some amazing social evangelism tasks. Well, I guess this would be my go to place for my daily dose of news on Cloud Computing and Virtualization. 

To put the icing on the cake, this program not only makes you learn, but also earn :-)

With each task you and your team performs, you get brownie points which can be later redeemed for some awesome goodies. The complete list of awards can be found HERE

The GRAND prize from this program is a fully paid trip to VMware Barcelona. Here are the details.

Learn More

Well I am 2 days old into this program and I have already won a number of gifts :-) Here is the list of my goodies.



To learn more about this program, have a look at the details in the video below and enroll and be a part of this wonderful opportunity to learn.


As always, Don't forget to Share and Spread the Knowledge. 

Monday, June 3, 2013

Hardware considerations while using VMware Site Recovery Manager!

Today, I received a query from a VMware partner around hardware requirements for VMware Site Recovery Manager. Although the SRM solution is hardware agnostic in most of the cases, there are a number of things one must be careful of before implementing Site Recovery Manager in there vSphere infrastructure. I replied to the query and I thought I should share this with the community as well to ensure they can read this and make use of it.

Here is the Query

Can someone throw some light on SRM hardware requirements on both sites? Is there stringent requirements of matching CPUs at both end. While DR runs lesser capacity than DC, we want to plan lower performing CPUs. Can this different generation CPUs will be taken care by SRM??

Here was my Response


While your query holds good for traditional physical DR, with SRM the entire equation of hardware dependency changes drastically. Site Recovery Manager is a disaster recovery solution which is completely hardware agnostic as it operates at the software layer of the data-center which is vSphere.


To make it more simple, you can have any brand/model/make/CPU of server running in the Protected Site, and fail-over your virtual machines from this Protected site to Recovery site on a ESXi hosts which is of a completely different make, model or CPU from the Protected site. The only requirement is that both these server types should be supported with the vSphere version which you are running on them, hence they should be on our HCL (Hardware Compatibility List) for servers. 



Next, you need to look at the capacity of the DR site. As you mentioned, the DR site can be made up of less expensive hardware, however, at the same time, you should have appropriate capacity calculations to ensure that the Virtual Machines, if failed over to the DR site during a disaster or if powered on at the DR site in a Test Recovery Mode, should have sufficient Compute and Storage resources to operate normally and support the respective business functions.



Last and the most important dependency on hardware is for storage. As you are aware, SRM with version 5.0 and above supports both Storage Based Replication(SBR) and  Host Based Replication (HBR or vSphere Replication), you have a choice here. If you chose SBR, you need to have an identical storage array on both the sites and a storage replication software which will enable this replication. In this case, you need to check our  HCL (Hardware Compatibility List), to ensure that you a supported SRA (Storage Replication Adapter) available for that storage array. In case you go with the built in HBR or VR, you do not have to worry about the storage hardware again, since the replication happens from the VMkernel layer from source to destination host over the Networking Protocols. Also remember that you need to select the right version of SRM to go with the version of vSphere which you are running. Look at the Product Interoperability matrix for this.



To summarize, since SRM is an Active/Passive DR solution, it does not need you to run identical hardware and you can run any supported hardware for server configuration. For storage you have 2 options HBR and SBR. To read more about vSphere Replication and searching VMware Hardware Compatibility Lists, you can refer to the following articles I wrote a few days back:-








As always, Don't forget to Share and Spread the Knowledge. 


Wednesday, May 22, 2013

Showcasing Virtual Datacenter Capacity using vCenter Operations Manager Dashboards.

A few months back, I wrote about the capabilities of vCenter Operations Manager around Capacity Management in this article - vCenter Operations Manager - Solving Performance, Capacity and Configuration Problems!!. With this article I wanted to take a step further and showcase how you can use vCOps in a real world scenario to monitor the capacity of your Virtual Datacenter in an automated manner.

If you read my last 2 articles on vCenter Operations Manager, you would notice that custom dashboards in vCenter Operations is an amazing way to showcase a lot of important data which is collected,analysed & computed by vCOps Patented Analytics and Capacity engine. In this article I will share a Custom Dashboard which in a single pane can showcase multiple facets of Capacity & Consolidation in your Virtual Datacenter. 

To begin with let's have a look at the dashboard and then we will break down the discussion on how to create it using the custom dashboard widgets.

Executive Capacity Dashboard

Well that is colorful, isn't it. As complex as it looks, if your approach towards creating this dashboard is correct, this should be a matter of few minutes. I will not go into step by step of how I created it, I would rather ask you to get your hands dirty and learn how to create such dashboards.

Here are a few pointers on this dashboard, which will help you create one on your own:-

a) The over all dashboard is a 2 column and 8 widget dashboard.
b) Each widget used is a Score Board Widget.
c) No super-metric used here. Each widget uses metrics which are already populated by default vCOps collection.

Let's look at each part horizontally.

Part 1 - Datacenter Capacity and Consolidation Ratios

Here the widget on the left uses a scoreboard widget to show the capacity of 2 data-centers  DC 1 and DC2.  I have used the Datacenter as the Resource tags here shown the "Summary" of each Datacenter such as number of Clusters, Datastores, ESXi Hosts and Virtual machines in a DC.

The widget on the right uses the scoreboard widget to show the consolidation ratios of both the virtual data-centers by using the Datacenter as the resource tag and  "Density" ratios to populate the following vCPU to pCPU, VMs to Hosts and vMem to pMem. This can give you the density of your Datacenter in a snap.



Part 2 - Capacity & Time Remaining in Each DC/Cluster 
This takes the capacity information to the next level. This section talks about, how many VMs can be deployed, how many VMs are deployed currently and the number of days remaining for VMs to be deployed (from left to right). I have done this for one cluster in each Datacenter as this is what I have in my lab. I used Score Board Widgets, Datacenter/Cluster as Resource Tags and "Capacity Remaining", "Time Remaining" and "Summary" as the metric providers for these scoreboards.

Note:- The number of days are a weird looking number since there has been no deployment in this cluster after installing vCOps. vCOps does not have a deployment pattern in this case, using which it can suggest you the approximate amount of days remaining.


Part 3 - Resource Wise Capacity Remaining

This part also uses 2 scoreboard widgets for each Datacenter/Cluster and this breaks down the part 2 of this dashboard further down to tell which which is the most constraining resource due to which you have given number of virtual machines which you can deploy in your Datacenter/Cluster. Again I have selected Datacenter as the "Resource Tag" and used "Capacity Remaining" resource wise such as CPU, Disk Space, Disk I/O, Memory and Network and showcased, ho many VMs you can deploy as per each individual resource.



Part 4 - Resource Wise Time Remaining







Coming to the last part of the dashboard. This again is made by using the Scoreboard widget and tells you how many days would a resource last with your deployment pattern of creating new Virtual Machines in each Datacenter/Cluster. Again I have selected Datacenter as the "Resource Tag" and used "Time Remaining" resource wise such as CPU, Disk Space, Disk I/O, Memory and Network and showcased, how many VMs you can deploy as per each individual resource.

Note:- The number of days are a weird looking number since there has been no deployment in this cluster after installing vCOps. vCOps does not have a deployment pattern in this case, using which it can suggest you the approximate amount of days remaining.

Having said this before, it is your creativity & need which can take you to heights with vCOps customization. I prefer this way of dash-boarding rather than seeing what is available out of the box in a lot of other products, as this gives the power to create in my hands, rather that being dependent on the manufacturer of the product.

I will close this article now, feel free to reach out if you have questions around the discussed topic. 


Don't forget to Share and Spread the Knowledge. 


Wednesday, May 1, 2013

Part 2 - Using vCOps Super Metrics & Custom Dashboards to Display Datastore Usage % !!

This post speaks about creating a Custom Dashboard in vCOps using Super Metrics. Please read  the Part 1 of this series to ensure that you know the context.

Here is the link - 

Part 1 - Using vCOps Super Metrics & Custom Dashboards to Display Datastore Usage % !!



Now since we have the Super Metric from the previous post, we will go ahead and use it to create a Custom Dashboard which reflects this metric and helps you to monitor the Datastore Usage %. Here is how you do it:-

1- Login to vCOps Custom UI with a user with appropriate access rights.

2- Click on Dashboards -> Add









3 - Drag and Drop a Heat-map widget from the left pane to the right pane. (To know more about custom dashboards in vCOps, read this Guide.)

4- Give a Name to the Dashboard, Select the number of Columns as 1 and click on OK. (refer to screen shot below.)




















5- Now lets configure this widget. Re-size the widget as per your viewing requirement and then click on Edit widget to configure the heat map.















6- Here is how you will configure the Heatmap.






















7- And once you click on OK, you have you Heat Map which you can start monitoring to ensure you never run out of space on your datastores.




















You can hover over these objects and you will see 2 metrics for each object - Total Capacity & Usage in %age

Here you can clearly see that some of my datastores in my primary DC are actually reaching the 100% usage  and I have some work to do to ensure I have enough free space to keep them green. Since this heat map is auto refreshing, it will ensure that your datastores are continuously monitored for the thresholds you have set for utilizing space on datastores.

If you want to see me present other tips and tricks on vCOps at VMworld 2013, please vote the session which I have submitted. 









For more details refer to - VMworld 2013 - Call for Papers Voting is Now Open. Cast your vote to see your favorite sessions!!


Don't forget to Share and Spread the Knowledge. This will help others!!