Forum Discussion

Brian_Thompson's avatar
Brian_Thompson
Icon for Nimbostratus rankNimbostratus
May 21, 2009

Calculating Hits per Second for each Virtual Server

Is there a way for a given time period, lets say 24hrs, 1hr, to calculate hits per second for each virtual server?

 

I'm trying to figure out which particular virtual server is causing my http requests/second graph to increase so much, but unfortunately the statistics pages that come with the F5 do not allow you to select time periods
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    You can view the stats from the command line using 'b virtual all stats'. You can run 'b virtual all stats reset' from the command line and then check back in whatever interval you want. If you want to do this programmatically, you could create a shell script which writes out the stats to a file and then clears them. You could call this script from the crontab every X minutes/hours/days.

     

     

    Aaron
  • Or if you have $ you can purchase an off the shelf product like Packeteer or Cisco NAM (if you have Cisco 6500) that the F5 attaches off of. Both of these products are a bit more polished and can provide you bytes in/out, packets in/out. They can drill down beyond layer 7. Of course there are other free tools like Cacti or something similiar.

     

     

    CB
  • if you want more hands off approach, you could use Cacti or similar. All the data is stored in rrdtool files, so you can check your virtuals in relation to each other as far back as you configure the rrd's to store data.