Fortinet black logo

Handbook

Cache service

6.0.0
Copy Link
Copy Doc ID 4afb0436-a998-11e9-81a4-00505692583a:168080
Download PDF

Cache service

The config wanopt cache-service command is used to configure cache-service clusters between multiple FortiGates. The result is that the cache-service daemons of the different FortiGates can collaborate together for serving web cache entries.

To configure the wanopt cache-service

config wanopt cache-service

set prefer-scenario

set collaboration

set device-id

set acceptable-connections

config dst-peer

edit <dst-peer-name>

set auth-type

set encode-type

set priority

set ip

config src-peer

edit <src-peer>

set auth-type

set encode-type

set priority

set ip

Option Description
prefer-scenario

Set the preferred cache behavior to the appropriate balance between latency and hit ratio

Options:

  • balance - Balance between speed and cache hit ratio.
  • prefer-speed - Prefer response speed at the expense of increased cache bypasses.
  • prefer-cache - Prefer improving hit-ratio through increasing latency tolerance.
collaboration enable/disable cache collaboration between cache-service clusters
device-id Set identifier for this cache device
acceptable-connections

Set strategy when accepting cache collaboration connection

Options:

  • any - The cache-service can accept any cache collaboration connection.
  • peers - The cache-service will only accept connections that are already in src-peers.
auth-type

Set authentication type for this peer

Value is integer from 0 to 255

encode-type

Set encode type for this peer

Value is integer from 0 to 255

priority

Set priority for this peer

Value is integer from 0 to 255. Default = 1

ip Set cluster IP address of this peer

Cache service

The config wanopt cache-service command is used to configure cache-service clusters between multiple FortiGates. The result is that the cache-service daemons of the different FortiGates can collaborate together for serving web cache entries.

To configure the wanopt cache-service

config wanopt cache-service

set prefer-scenario

set collaboration

set device-id

set acceptable-connections

config dst-peer

edit <dst-peer-name>

set auth-type

set encode-type

set priority

set ip

config src-peer

edit <src-peer>

set auth-type

set encode-type

set priority

set ip

Option Description
prefer-scenario

Set the preferred cache behavior to the appropriate balance between latency and hit ratio

Options:

  • balance - Balance between speed and cache hit ratio.
  • prefer-speed - Prefer response speed at the expense of increased cache bypasses.
  • prefer-cache - Prefer improving hit-ratio through increasing latency tolerance.
collaboration enable/disable cache collaboration between cache-service clusters
device-id Set identifier for this cache device
acceptable-connections

Set strategy when accepting cache collaboration connection

Options:

  • any - The cache-service can accept any cache collaboration connection.
  • peers - The cache-service will only accept connections that are already in src-peers.
auth-type

Set authentication type for this peer

Value is integer from 0 to 255

encode-type

Set encode type for this peer

Value is integer from 0 to 255

priority

Set priority for this peer

Value is integer from 0 to 255. Default = 1

ip Set cluster IP address of this peer