Recently I received a question about the Performance tab within vCenter which intrested me. Looking at the available Chart Options we can see that there are two distinctive performance streams:
- Real-time data
- Historical data
Real-time Data
The Real-time data is displayed for the last hour only and is directly queried from the ESX Host (vpxa) every 20 seconds.
Because the ESX Host stores the performance data locally for the last hour you can have a vCenter outage for up to one hour without getting any gaps in the historical data.
Historical Data
The process outlined below described the steps that are taking place to collect and store the Historical Data.
- Every 5 minutes 1/6th of the total amount of ESX Hosts (vpxa) is queried for performance data;
- The vpxa sends its data to vCenter (vpxd) which stores the data in the VPX_HIST_STAT1 table.
This process happens every 5 minutes which means that every ESX Host is queried once every 30 minutes.
Let’s take a look at a 10 ESX Host cluster for example:
10.00am: ESX01, ESX02 are queried
10.05am: ESX03, ESX04 are queried
10.10am: ESX05, ESX06 are queried
10.15am: ESX07, ESX08 are queried
10.20am: ESX09, ESX10 are queried
10.25am: ESX11, ESX12 are queried
10.30am: ESX01, ESX02 are queried again.
Etc.
Every 30 minutes the final statistics data rollup and purge store procedures will run. These database roll-up jobs are either controlled by the SQL Agent (in both MS SQL and Oracle) or by vCenter (vpxd) internally. The vpxd internal scheduler is only used with Microsoft SQL Express Editions.
The corresponding database tables that are used to store the rollup data are outlined below:
VPX_HIST_STAT1 | stores integral values at the lowest level of granularity (daily level) |
VPX_HIST_STAT2 | Weekly Stats Rollup Job – repeats every 30 minutes – performing rollups at weekly level. |
VPX_HIST_STAT3 | Monthly Stats Rollup Job – repeats once per 2 hours – performing rollups at monthly level |
VPX_HIST_STAT4 | Yearly Stats Rollup Job – repeats twice a day – performing rollups at yearly level |
The interval duration for the stored data is a configurable item from within vCenter as you can see in the screenshot below.
Please note that changing the Interval durations can have a major impact on the database size and vCenter performance due to excessive load.
To conclude, knowing the difference between the Real-time and Historical Data querying and the way the data is processed might benefit you during troubleshooting.
Nick
/ March 2, 2011Hi vKen.
Since you’re working with Virtual Connect and ESX(i?), have you encountered the same problem that I currently have?
Running ESXi 4.1 on BL460G6, with Flex-10, if I load the performance charts to look at the network of a host, I don’t see Any statistics; every column, for every vmnic is 0. The guest’s are running and vmotion etc works, but none of the traffic shows up. It’s a bit of a mystery to me, and I wondered if you had already conquered this issue?
Kenneth van Ditmarsch
/ March 3, 2011Hi Nick,
I’m not onsite anymore at the Flex-10 project. I’m wondering however if this is a specific problem to Flex-10 in combination with ESXi 4.1 / vCenter.
I will send the guys at the site an e-mail to ask if they are experiencing the same things.
Thanks
Kenneth
Nick
/ March 7, 2011Hi Kenneth,
I really appreciate you taking the time to answer; I haven’t managed to get any response out of the HP or vmware forums with the same question. If your contacts answer, it would be great to know.
Nick
Kenneth van Ditmarsch
/ March 11, 2011Hi Nick,
I’ve verified it on the “other” environment and same issues apply, all vmnic’s display 0.
ESX 4.1.0 – 260247
Cheers,
Kenneth
Nick
/ March 20, 2011Hi Kenneth,
Thanks for following that up. At least it’s not just me!
Nick
Marcel_P4500
/ March 21, 2011Hi,
Same apllies in my environment, P4500 SAN + c3000 + vcenter + vsphere esxi 4.1 260247 – all 8 flex-nics show 0 …
TheJimmy
/ August 23, 2011What happens if the interval is custom? How do you determine what interval/stat table is being used? Thanks.
Emiliano De Simoni
/ October 21, 2011Try to update the HP Broadcom Nextreme II driver.
You can do grab from here:
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=3709945&prodSeriesId=3884098&prodNameId=3884099&swEnvOID=4091&swLang=8&mode=2&taskId=135&swItem=MTX-ef49cdb11d084ed0a993bf76a7
It seems that bundled driver doesn’t work with statistics.
That solved the issue for me.
Bye