Google Answers Logo
View Question
 
Q: Cache Warm Up ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: Cache Warm Up
Category: Computers > Internet
Asked by: tornell-ga
List Price: $5.00
Posted: 21 Aug 2004 05:03 PDT
Expires: 20 Sep 2004 05:03 PDT
Question ID: 390733
Hi, 

I have heard that some companies do something that is called "cache
warm-up" to speed up their web sites. What is this and what does it
bring?

Regards, tornell
Answer  
Subject: Re: Cache Warm Up
Answered By: maniac-ga on 21 Aug 2004 08:03 PDT
Rated:5 out of 5 stars
 
Hello Tornell,

Background:

The basic approach is to add one or more cache servers as follows:

  Clients <-> Cache Server <-> Back End Servers

Each http request to a site will be handled by the cache server. For
static content that is already present at the cache server, the
results will be returned immediately. For the dynamic content (or
static content not yet loaded), the cache server makes requests from
one or more back end servers to provide the latest data to the client
system. This results in:

 - What the user on each client sees is faster page loads
 - The load on the back end servers goes down, providing faster look
up of dynamic data
 - There is some additional complexity in system set up and maintenance

Specific Answer:

When you start using a cache server - its cache (local copy of web
pages) will be empty. You "warm up" the cache by either:
 - preloading the static pages from the back end systems
 - do nothing; the clients making requests will load pages and
naturally fill the cache with the static data
In the second case, performance will start relatively poorly but
improve rapidly as the cache is filled with frequently used pages.

Commercial Products / Explanations:

Several vendors provide products. Here are a few technical
descriptions / marketing pages to provide further information.

http://www1.us.dell.com/content/topics/global.aspx/power/en/ps2q00_power?c=us&cs=555&l=en&s=biz
Has several good illustrations of the network connections / how
requests are made when putting a Dell caching server into a web farm.

http://www.microsoft.com/technet/prodtechnol/cms/evaluate/cmsperft.mspx
Results of measuring Microsoft's Content Management Server - showing
scalability (by adding front end servers / load balancing) and
improved performance under relatively heavy loads.

http://www.oracle.com/technology/products/ias/web_cache/OracleAS-Web-Cache-10g-904-faq.html
A FAQ for Oracle's web cache product. Note several additional
capabilities that are provided by this product (beyond basic caching
of static content). You may find similar capabilities in other
companies products.

Related Information:

Not necessarily specific to a server side cache / warm up, but can be
used to help improve performance of web pages or explain related
concepts.

http://www.web-polygraph.org/
A group offering free benchmarks including tests for web caches (WebAxe-1).

http://www.web-caching.com/proxy-caches.html
See also proxy caches - which provide similar performance improvements
on the client side. This site has a number of links to other products
- some can be used as client or server side caches.

http://www.icewalkers.com/Linux/Software/520590/Turck-MMCache.html
This is a PHP accelerator - providing several optimizations of PHP
based server pages. In part, does caching. Runs on the server
providing dynamic content.

http://www.cs.utexas.edu/users/dahlin/Classes/WebOS/hw/cache-simulator.html
A course at the University of Texas describing use of simulation to
measure cache performance, warm up, etc.

Search phrases included:
  web site performance cache warm up
  web cache
  web cache -proxy
  web cache "warm up"

If you need further explanation of how cache warm up is done or the
operation of cache servers, please make a clarification request.

  --Maniac

Request for Answer Clarification by tornell-ga on 21 Aug 2004 14:38 PDT
Hi,

thanks for a short and well written answer!

I just have one short clarification for now: 
if I understand this right, the cache warm up makes the most sense for
web sites with deep dynamic content and where the answers from the
back-end system is slow (complex queries or performance issues).

Regards,
tornell

Clarification of Answer by maniac-ga on 21 Aug 2004 19:04 PDT
Hello Tornell,

I generally agree with your statement, but there are other workloads
that use caching servers and the related cache warm up process.

For example large companies such as Microsoft and Apple use Akamai
  http://www.akamai.com/
to help distribute the load of client requests to servers "close" to
the clients trying to access the main sites. For example, I checked on
my system and found that
  www.apple.com is at address 17.254.0.91 (www.apple.com.akadns.net)
yet when I do a similar look up at 
  http://www.network-tools.com
I get a different answer stating
  17.112.152.32 [www.apple.com]
which is a completely different machine.

This is done to minimize network traffic on the large internet
backbone connections.

Basically - you have to do the analysis to determine if caching at
some intermediate location will provide a performance benefit that is
worth the cost. Note also that the answer can change due to a number
of factors. Large commercial sites such as www.amazon.com have much
higher load during holiday periods than other times of the year. They
may actually add / remove servers to meet the demand in a cost
effective manner.

  --Maniac
tornell-ga rated this answer:5 out of 5 stars and gave an additional tip of: $2.00
A fast and well structured answer, that gives a very good introduction to the area!

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy