The hosting.config file lets you assign cache partitions to specific origin servers and domains so that you can manage your cache space more efficiently and restrict disk usage.
After you modify the hosting.config file, run
content_line -x from the Content Gateway
bin directory to apply the changes. When you apply the changes to a node in a cluster, Content Gateway automatically applies the changes to all nodes in the cluster.
Each line in the hosting.config file must have one of the following formats:
hostname is the fully qualified hostname of the origin server whose content you want to store on a particular partition (for example, www.myhost.com).
domain_name is the domain whose content you want to store on a particular partition (for example, mydomain.com).
partition_numbers is a comma-separated list of the partitions on which you want to store the content that belongs to the origin server or domain listed. The partition numbers must be valid numbers listed in the
partition.config file (see
partition.config).
When configuring the hosting.config file, you must assign a generic partition to use for content that does not belong to any of the origin servers or domains listed. If all partitions for a particular origin server become corrupt, Content Gateway uses the generic partition to store content for that origin server.
where partition_numbers is a comma-separated list of generic partitions.
The following example configures the proxy to store content from the domain mydomain.com in partition 1 and content from
www.myhost.com in partition 2. The proxy stores content from all origin servers in partitions 3 and 4.