|By Sven Hammar||
|November 1, 2012 09:33 AM EDT||
Creating highly targeted load tests for your web server doesn’t have to be complicated. And it won’t be, at least not if you know what to look for.
The secret is to approach a load test with the mind of a developer. You’re not going to run a test just to punish your web server. You’re trying to gather valuable data that will aid you in keeping your web applications fast and responsive. To do this, let’s look at two simple steps to create a scientifically sound load test.
1. To plan your test, think like a user.
The first step is to outline exactly what type of web experience you’re testing for. Are you expecting users to log onto your site and remain for hours at a time? Or are a large number of users entering and leaving the site in short spurts? Or, are you expecting your about-to-be-released video to go viral, and you want to be sure your server can handle the load? No two websites are identical, and the same goes for the user experience on your site.
Let’s take a look at an example. An online shop might find it best to define the number of visits and purchases per hour that its servers must be able to handle. With this information, the shop can calculate it down to a value of each new visit and/or purchase per second. An example of this could be an hour-long test configured to send five new visitors to the site per second, simulate them surfing the product catalog, and have them start a new purchase every second.
2. Find the data that really matters.
Now that your load test is up and running, your next step is to comb through the mountain of incoming data to understand what’s happening on the server. During the load test for our hypothetical online shop, new simulated users are coming to the site and old simulated users are leaving the site. To judge the response time of the web server, we need to look at the number of parallel users. If the web server is slow, you’ll have a large number of virtual users, and if it’s fast, that number will be smaller.
When the results of a load test show unacceptable response times, it is often assumed that the network is the cause of the problem. In reality, this is seldom the case. Fortunately, it is quite easy to check this using test measurement data. Simply compare the response time for a static image (such as JPEG, GIF, or PNG) with the response time for a dynamically created HTML page of approximately the same size.
Consider this example:
A) The response time for a static GIF image of 200 kB is measured at 60 milliseconds.
B) The response time for a dynamically created HTML page with a size of 400 kB is measured at three seconds.
Assuming the response time of the static image depends solely on the network bandwidth (which is not always the case, but is useful for our purposes in this example), the dynamically created HTML page should have a response time of 120 milliseconds since it is only twice the size of the image. Since the actual response time of the HTML page is three seconds, the web application uses at least 2880 milliseconds (3000 minus 120) to produce and send the page.
However, one successful test does not guarantee a perfect application. You should be running load tests after any modification is made to the web server or application (i.e. new software release, upgrading database, etc.). These tests should run for at least 30 minutes, because often a web server does not crash instantly when it’s overloaded. Many can handle a large load for a few minutes, but might crash later after 15 or 20.
With these tips in mind, you’ll be on track to pinpointing your application’s performance issues. Perfection takes time, but as you tweak your tests to emulate your real-world traffic, your response times should gradually improve.
"SAP had made a big transition into the cloud as we believe it has significant value for our customers, drives innovation and is easy to consume. When you look at the SAP portfolio, SAP HANA is the underlying platform and it powers all of our platforms and all of our analytics," explained Thorsten Leiduck, VP ISVs & Digital Commerce at SAP, in this SYS-CON.tv interview at 15th Cloud Expo, held Nov 4-6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
Dec. 28, 2014 11:00 AM EST Reads: 2,720
SAP is delivering break-through innovation combined with fantastic user experience powered by the market-leading in-memory technology, SAP HANA. In his General Session at 15th Cloud Expo, Thorsten Leiduck, VP ISVs & Digital Commerce, SAP, discussed how SAP and partners provide cloud and hybrid cloud solutions as well as real-time Big Data offerings that help companies of all sizes and industries run better. SAP launched an application challenge to award the most innovative SAP HANA and SAP HANA...
Dec. 28, 2014 11:00 AM EST Reads: 3,076
Connected devices and the Internet of Things are getting significant momentum in 2014. In his session at Internet of @ThingsExpo, Jim Hunter, Chief Scientist & Technology Evangelist at Greenwave Systems, examined three key elements that together will drive mass adoption of the IoT before the end of 2015. The first element is the recent advent of robust open source protocols (like AllJoyn and WebRTC) that facilitate M2M communication. The second is broad availability of flexible, cost-effective ...
Dec. 28, 2014 11:00 AM EST Reads: 3,359
How do APIs and IoT relate? The answer is not as simple as merely adding an API on top of a dumb device, but rather about understanding the architectural patterns for implementing an IoT fabric. There are typically two or three trends: Exposing the device to a management framework Exposing that management framework to a business centric logic Exposing that business layer and data to end users. This last trend is the IoT stack, which involves a new shift in the separation of what stuff happe...
Dec. 28, 2014 11:00 AM EST Reads: 3,396
Scott Jenson leads a project called The Physical Web within the Chrome team at Google. Project members are working to take the scalability and openness of the web and use it to talk to the exponentially exploding range of smart devices. Nearly every company today working on the IoT comes up with the same basic solution: use my server and you'll be fine. But if we really believe there will be trillions of these devices, that just can't scale. We need a system that is open a scalable and by using ...
Dec. 28, 2014 11:00 AM EST Reads: 3,496
An entirely new security model is needed for the Internet of Things, or is it? Can we save some old and tested controls for this new and different environment? In his session at @ThingsExpo, New York's at the Javits Center, Davi Ottenheimer, EMC Senior Director of Trust, reviewed hands-on lessons with IoT devices and reveal a new risk balance you might not expect. Davi Ottenheimer, EMC Senior Director of Trust, has more than nineteen years' experience managing global security operations and asse...
Dec. 28, 2014 10:00 AM EST Reads: 3,409
SYS-CON Events announced today that Gridstore™, the leader in hyper-converged infrastructure purpose-built to optimize Microsoft workloads, will exhibit at SYS-CON's 16th International Cloud Expo®, which will take place on June 9-11, 2015, at the Javits Center in New York City, NY. Gridstore™ is the leader in hyper-converged infrastructure purpose-built for Microsoft workloads and designed to accelerate applications in virtualized environments. Gridstore’s hyper-converged infrastructure is the ...
Dec. 28, 2014 10:00 AM EST Reads: 3,059
What do a firewall and a fortress have in common? They are no longer strong enough to protect the valuables housed inside. Like the walls of an old fortress, the cracks in the firewall are allowing the bad guys to slip in - unannounced and unnoticed. By the time these thieves get in, the damage is already done and the network is already compromised. Intellectual property is easily slipped out the back door leaving no trace of forced entry. If we want to reign in on these cybercriminals, it's hig...
Dec. 28, 2014 09:45 AM EST Reads: 2,724
SYS-CON Events announced today that Cloudian, Inc., the leading provider of hybrid cloud storage solutions, will exhibit at SYS-CON's 16th International Cloud Expo®, which will take place on June 9-11, 2015, at the Javits Center in New York City, NY. Cloudian, Inc., is a Foster City, California - based software company specializing in cloud storage software. The main product is Cloudian, an Amazon S3-compliant cloud object storage platform, the bedrock of cloud computing systems, that enables c...
Dec. 28, 2014 09:00 AM EST Reads: 2,181
15th Cloud Expo, which took place Nov. 4-6, 2014, at the Santa Clara Convention Center in Santa Clara, CA, expanded the conference content of @ThingsExpo, Big Data Expo, and DevOps Summit to include two developer events. IBM held a Bluemix Developer Playground on November 5 and ElasticBox held a Hackathon on November 6. Both events took place on the expo floor. The Bluemix Developer Playground, for developers of all levels, highlighted the ease of use of Bluemix, its services and functionalit...
Dec. 28, 2014 08:30 AM EST Reads: 3,415
The 3rd International Internet of @ThingsExpo, co-located with the 16th International Cloud Expo - to be held June 9-11, 2015, at the Javits Center in New York City, NY - announces that its Call for Papers is now open. The Internet of Things (IoT) is the biggest idea since the creation of the Worldwide Web more than 20 years ago.
Dec. 28, 2014 08:30 AM EST Reads: 3,661
The 4th International DevOps Summit, co-located with16th International Cloud Expo – being held June 9-11, 2015, at the Javits Center in New York City, NY – announces that its Call for Papers is now open. Born out of proven success in agile development, cloud computing, and process automation, DevOps is a macro trend you cannot afford to miss. From showcase success stories from early adopters and web-scale businesses, DevOps is expanding to organizations of all sizes, including the world's large...
Dec. 28, 2014 08:00 AM EST Reads: 3,793
P2P RTC will impact the landscape of communications, shifting from traditional telephony style communications models to OTT (Over-The-Top) cloud assisted & PaaS (Platform as a Service) communication services. The P2P shift will impact many areas of our lives, from mobile communication, human interactive web services, RTC and telephony infrastructure, user federation, security and privacy implications, business costs, and scalability. In his session at @ThingsExpo, Robin Raymond, Chief Architect...
Dec. 28, 2014 05:45 AM EST Reads: 3,207
"ElasticBox is an enterprise company that makes it very easy for developers and IT ops to collaborate to develop, build and deploy applications on any cloud - private, public or hybrid," stated Monish Sharma, VP of Customer Success at ElasticBox, in this SYS-CON.tv interview at DevOps Summit, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
Dec. 28, 2014 05:30 AM EST Reads: 2,806
DevOps is all about agility. However, you don't want to be on a high-speed bus to nowhere. The right DevOps approach controls velocity with a tight feedback loop that not only consists of operational data but also incorporates business context. With a business context in the decision making, the right business priorities are incorporated, which results in a higher value creation. In his session at DevOps Summit, Todd Rader, Solutions Architect at AppDynamics, discussed key monitoring techniques...
Dec. 28, 2014 05:30 AM EST Reads: 3,072
Explosive growth in connected devices. Enormous amounts of data for collection and analysis. Critical use of data for split-second decision making and actionable information. All three are factors in making the Internet of Things a reality. Yet, any one factor would have an IT organization pondering its infrastructure strategy. How should your organization enhance its IT framework to enable an Internet of Things implementation? In his session at Internet of @ThingsExpo, James Kirkland, Chief Ar...
Dec. 28, 2014 04:00 AM EST Reads: 3,583
The 3rd International @ThingsExpo, co-located with the 16th International Cloud Expo - to be held June 9-11, 2015, at the Javits Center in New York City, NY - announces that it is now accepting Keynote Proposals. The Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devices - computers, smartphones, tablets, and sensors - connected to th...
Dec. 28, 2014 03:45 AM EST Reads: 4,184
In her General Session at 15th Cloud Expo, Anne Plese, Senior Consultant, Cloud Product Marketing, at Verizon Enterprise, focused on finding the right mix of renting vs. buying Oracle capacity to scale to meet business demands, and offer validated Oracle database TCO models for Oracle development and testing environments. Anne Plese is a marketing and technology enthusiast/realist with over 19+ years in high tech. At Verizon Enterprise, she focuses on driving growth for the Verizon Cloud platfo...
Dec. 28, 2014 03:30 AM EST Reads: 3,653
The Internet of Things will greatly expand the opportunities for data collection and new business models driven off of that data. In her session at @ThingsExpo, Esmeralda Swartz, CMO of MetraTech, discussed how for this to be effective you not only need to have infrastructure and operational models capable of utilizing this new phenomenon, but increasingly service providers will need to convince a skeptical public to participate. Get ready to show them the money!
Dec. 28, 2014 03:00 AM EST Reads: 3,267
"Matrix is an ambitious open standard and implementation that's set up to break down the fragmentation problems that exist in IP messaging and VoIP communication," explained John Woolf, Technical Evangelist at Matrix, in this SYS-CON.tv interview at @ThingsExpo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
Dec. 27, 2014 07:45 PM EST Reads: 3,297