The new Java-based web site contains basic e-Commerce features such as the following:
The new site has some features the TriMont team hopes will give them an edge over their competition:
Site RequirementsHere are a few site requirements the TriMont team shares on your first consulting visit:
Initial AssessmentWhat do you know about the site at this point, and what do you need to create a more complete plan? Surprisingly, even at this point, you know a great deal about the site's key performance stress points. The e-Commerce ProfileThe TriMont Mountain site fits the pattern of the classic e-Commerce site covered in Chapter 5. You assume the TriMont performance test needs to focus on the following performance pressure points:
Also, as we discussed in Chapter 5, e-Commerce sites typically generate large pages, which usually contain lots of gifs, jpegs, and other static elements. Peak Site UsersTriMont doesn't provide much detailed information about its peak loading. At this point, we recommend using the information you have to generate some rough estimates. This first estimate gives you a frame of reference for any other numbers you might receive during the planning phase. For example, you often receive peak load estimates from different sources inside the company. The marketing team might develop one projection for the peak hour , while the web master for the existing CGI web site might produce completely different numbers . A rough estimate gives you a starting point for comparing disparate requirements. We'll fill in the Capacity Sizing worksheet from Appendix A as we go along. Table 10.1 shows the data that is currently available. Begin by obtaining a rough estimate of the peak load relative to the average daily load. For example, you might estimate the user arrival rate in the peak hour at five times the rate in an average hour: 100,000 users/day / 8-hour day 3.5 users/second (average load) 3.5 users/sec * 5 (peak versus average load) = 17.5 users/second (peak adjusted) Normally we'd recommend a "three times" estimate for an e-Commerce peak hour. However, the previous TriMont web site experienced serious performance problems. The company wants to be very conservative with its estimates because of these problems and allow plenty of what seems to be excess capacity. Notice also that the example uses 8 hours for the load distribution, not 24, despite the customer's stated expectations. Few web sites actually receive large volumes of traffic overnight. You need to confirm this with the customer at your planning meeting, but 8 hours results in a more conservative estimate. Given these assumptions, the example leads you to the following peak hour traffic: 17.5 users/second * 60 seconds/minute * 60 minutes/hour = 63,000 users/hour Table 10.1. Capacity Sizing Worksheet, Initial Input Data
In other words, almost two- thirds of the daily traffic arrives during the peak hour. In our experience, this seems high for this type of site, but again, given the problems with the old site, this might be a reasonable peak estimate. Using the peak users per hour, you next determine how many users are on the system during any seven-minute interval (this is the average user visit): 17.5 users/second * 60 seconds/minute * 7 minutes (average user visit) = 7,350 users At the peak hour, you estimate the site contains about 7,350 concurrent users. Note this number does not account for HTTP session timeout. This merely tells us how many people interact with the system during the time of an average user visit. Table 10.2 shows the peak calculations using the worksheet. Table 10.2. Capacity Sizing Worksheet, Peak Load Calculations
Next StepsYou need additional information to build a good performance test with this customer. You make plans to visit the customer again to discuss the test plan with the team leaders and their management. Prior to your visit, you request the following information from the customer:
Also, now is a good time to discuss issues like high availability for the web site. Should you plan for session failover? What about redundant hardware and networks? |