Multi-Layer Caching and Content Server Aliases
The SAP system knows the locations of the connected content servers, cache servers, and client. The concepts of multi-layer caching and content server aliases work together to determine the optimal access path for client requests.
These servers are known as content server aliases (in the sense that they "represent" the content server).
A content server alias can be, for example, an IP filter on a firewall that forwards the requests unchanged to the content server. An alias can also be an instance of a distributed content server, provided that the content server in question supports this. This option is particularly intended for content server providers who can themselves organize distributed storage or content caching, or both.
The concepts of multi-layer caching and content server aliases mutually support each other. The main aim of multi-layer caching is to minimize access times. Also, URLs received via a content server alias can be handled in such a way that controlled content server accesses from the extranet can be allowed via a firewall.
Using Content Server Aliases
Using Multi-Layer Caching
To use multi-layer caching, the locations of the client, content server, and caches have to be known, just like with single-layer caching. You must also decide which path will be used to access the content server from a specific location. You have to maintain the following tables:
The table SDOKLOC defines the possible locations. Enter all the locations here.
The table SCMSIPNET allows you to define the location using the IP address. The sub-net is defined using the format XXX.XXX.XXX.XXX/YY. XXX.XXX.XXX.XXX is the usual format for IP addresses. /YY (/00 .. /32) defines how many bits, beginning from the left, are valid. If multiple sub-nets are assigned to one IP address, the smallest sub-net is the one that applies (that is, the one for which the most bits are defined). The location determined for the user in this way can be overwritten by the user parameter LCA.
The table SCMSHOST defines the location of hosts. Enter all hosts here that are used as content servers or cache servers. Make sure that you enter the host names correctly, including upper case and lower case letters.
The table SCMSCACHE defines the cache server. Enter all cache servers here. If a particular cache server is inactive, you can mark it accordingly.
To enable multi-layer caching, enter the path on which the cache server should be used. Do this for two locations at a time. The fields LOC_CLNT and LOC_DEST define the location of the client and the content server. The field LOC_INDX is numbered from 1 to N. The locations between the client and the server are entered in the field LOC_NODE. Do not enter the locations of the client and the server themselves. The location LOC_NODE = 1 is the closest to the client, while the location LOC_NODE = N is closest to the server.
If signed URLs are being used, the content server and the cache server have to closely interoperate. Therefore, caching can only work if the content server has the version number 0046, or if no signature is used for access.
Procedure for Read Access
Incorporating a Content Server Alias
You have to make the following Customizing settings:
The technical data of the alias is stored in this table. By specifying the technical data of the content server, you define which content server is represented. Ensure that you enter all the technical details correctly, including upper-case and lower-case characters. The individual fields have the following meanings:
PX_SERV |
Host name of the alias server |
PX_PORT |
Port of the alias server |
PX_SPORT |
SSL port of the alias server |
PX_SCRPT |
HTTP script of the alias server |
CS_SERV |
Host name of the content server |
CS_PORT |
Port of the content server |
CS_SPORT |
SSL port of the content server |
CS_SCRPT |
HTTP script of the content server |
NO_GET |
Alias is not used for ‘cacheable’ get requests |
INACTIVE |
Entry inactive |
This table contains other locations, besides those entered in table SCMSHOST, that can also be used for the alias server.
The data for the content server must be exactly the same as that in the Customizing for the repository (transaction OAC0).
This is useful if the caches can support the cacheable get requests better than the alias.
The field INACTIVE can be used to stop the alias in question being used.
Determining the Alias
Multi-layer caching and aliases can also be used in combination. The system always looks for an alias first. If it finds one, the technical data of the alias is used instead of the data of the content server. This means that the location of the server may change. This information is then taken into account when the cache server is being located.
Constraints
Caching and content server aliases are only used if the client location is known when the URL is being constructed. Usually, the client location is known if the Knowledge Provider processes the URL. If, on the other hand, the URL was requested by another application, and the Knowledge Provider does not know where the URL is going to be used, the system cannot find out the location of the client. In this case, the URL that points directly to the content server is always returned. The caches and the alias server do not, therefore, play any role.
This can often be the case with ArchiveLink.
Related Notes
0181696, Caching
0209478, SAP KPro Server Infrastructure Components 4.6C
0303278, SAP KPro Server Infrastructure Components 4.6D
0352518, Using the SAP Content Server Cache
0376033, Cache Server Knowledge Warehouse 5.1
0407520, Information on the Cache Server