12.07.2015 Views

Dell Power Solutions

Dell Power Solutions

Dell Power Solutions

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NEW-GENERATION SERVER TECHNOLOGYTable Columns Number of rowsCustomers CUSTOMERID, FIRSTNAME, LASTNAME, ADDRESS1, 200 millionADDRESS2, CITY, STATE, ZIP, COUNTRY, REGION,EMAIL, PHONE, CREDITCARD, CREDITCARDEXPIRATION,USERNAME, PASSWORD, AGE, INCOME, GENDER,PROD_ID_IDX, PROD_ID1, PROD_ID2, PROD_ID3,PROD_ID4, PROD_ID5, PROD_ID6, PROD_ID7,PROD_ID8, PROD_ID9, PROD_ID10Orders ORDERID, ORDERDATE, CUSTOMERID, NETAMOUNT, 120 millionTAX, TOTALAMOUNTOrderlines ORDERLINEID, ORDERID, PROD_ID, QUANTITY, 600 millionORDERDATEProducts PROD_ID, CATEGORY, TITLE, ACTOR, PRICE, 1 millionQUAN_IN_STOCK, SPECIAL, COMMON_PROD_ID1,COMMON_RATING1, COMMON_PROD_ID2,COMMON_RATING2, COMMON_PROD_ID3,COMMON_RATING3, SALESReorder PROD_ID, DATE_LOW, QUAN_LOW, DATE_REORDERED, VariableQUAN_REORDERED, DATE_EXPECTEDCategories CATEGORY, CATEGORYNAME 16Figure 5. Database schema for the online DVD storeonline stores, such as reporting previous purchases to the user andrecommending titles enjoyed by others.The database, which is about 100 GB and represents an onlineDVD store with 1 million DVD titles, was driven by a ProC-languageprogram simulating users logging in to the online store; browsingfor DVDs by title, author, and category; and then submitting orders.The driver program measured the number of orders per minute(opm) that the database could handle as well as the total responsetime as seen by the simulated end users.The database schemaThe DVD store comprised five main tables and one additional table(see Figure 5). The Customers table was prepopulated with 200 millioncustomers: 100 million U.S. customers and 100 million customersfrom the rest of the world. The Orders table was prepopulatedwith 10 million orders per month for a full year. The Orderlinestable was prepopulated with an average of five items per order.The Products table contained 1 million DVD titles. In addition, theCategories table listed the 16 DVD categories.When the QUAN_IN_STOCK value for each product in theProducts table fell below a specified value, the database applicationwas triggered to write information about the product to the Reordertable. A separate process (not modeled) monitored this table toinitiate reordering of needed titles.The stored proceduresThe DVD store database was managed using six stored procedures.The first two were used during the login phase. If the customer wasa returning customer, Login was used to retrieve the customer’sinformation, in particular the CUSTOMERID. If the customer was anew customer, New_customer was used to create a new row in theCustomers table with the customer’s data. Following the login phase,the customer might search for a DVD by category, actor, or title usingBrowse_by_category, Browse_by_actor, and Browse_by_title, respectively.Finally, after the customer had made a selection, the Purchasestored procedure was called to complete the transaction. Visit <strong>Dell</strong><strong>Power</strong> <strong>Solutions</strong> online at www.dell.com/powersolutions to see theDS2 stored procedures build scripts.The stored procedures of the application include features thatmodel today’s online stores. During login, for example, the user’sprevious order (up to 10 titles) is reported, along with titles recommendedby other customers who liked those titles. Browse_by_category returns those titles in the specified categories thatare currently on sale. The Purchase stored procedure checks theQUAN_IN_STOCK field from the Products table to determinewhether a title is available. This is done using a database transaction;therefore, if insufficient quantity exists to fill the order, theQUAN_IN_STOCK data is not updated, nor is a new record writtento the Orders table.The OLTP driver applicationA multithreaded driver program was written to model an onlinetransaction processing (OLTP) or order-entry workload. Each threadof the OLTP driver application connected to the database and madea series of stored procedure calls that simulated customers loggingin, browsing, and purchasing. Because no simulated customerParameter Description Value(s) used in testn_threads Number of simultaneous connections See Figure 7to the databasewarmup_time Warmup time before statistics are kept 1 minuterun_time Runtime during which statistics Variedare keptpct_returning Percent of customers who are returning 80%pct_new Percent of customers who are new 20%n_browse_category Number of searches based on category Range: 1–3Average:2n_browse_actor Number of searches based on actor Range: 1–3Average:2n_browse_title Number of searches based on title Range: 1–3Average:2n_line_items Number of items purchased Range: 1–9Average:5net_amountFigure 6. OLTP driver application parametersTotal amount of purchaseRange: $0.01–$400.00Average: $200.0044POWER SOLUTIONS Reprinted from <strong>Dell</strong> <strong>Power</strong> <strong>Solutions</strong>, February 2005. Copyright © 2005 <strong>Dell</strong> Inc. All rights reserved. February 2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!