Following are the web cache related commands:
set client [new Http/Client sim c-node]
This creates an instance of a Http client at the given <c-node>.
set cache [new Http/Cache sim e-node
This command creates a cache.
set pgp [new PagePool/type-of-pagepool]
This creates a pagepool of the type specified. The different types of pagepool
currently implemented are:
PagePool/Math, PagePool/CompMath, PagePool/ProxyTrace and PagePool/Client.
See section 32.4 for details on Otcl interface for
each type of Pagepool.
$server set-page-generator pgp
$server log handle-to-log-file
The above commands consist of server configuration. First the server is
attached to a central page pool <pgp>. Next it is attached to a log file.
client set-page-generator \These consist configuration of the Http client. It is attached to a central page pool <pgp>. Next a random variable <ranvar> is attached to the client that is used by it (client) to generate intervals between two consecutive requests. Lastly the client is attached to a log file for logging its events.\$client set-interval-generator \ \$client log \
$cache log log-file
This is part of cache configuration that allows the cache to log its
events in a log-file.
$client connect cache
$cache connect server
Once the client, cache, and server are configured, they need to be
connected as shown in above commands.
$client start-session cache server
This starts sending request for a random page from the client to the
<server> via <cache>.