Configuring the Session Store Feature
You can configure three things for the session store feature:
- Configuring Session Store Parameters for a Device Driver
- Configuring Global Session Store Parameters
- Reducing the Size of Objects for the Session Store Feature
Configuring Session Store Parameters for a Device Driver
Use the following configuration statements to configure session store parameters within a device driver configuration:
- shared sae configuration driver ( aaa | junos | junose
| pcmm | simulated | third-party ) session-store {
- maximum-queue-age maximum-queue-age ;
- maximum-queued-operations maximum-queued-operations ;
- maximum-queue-size maximum-queue-size ;
- maximum-file-size maximum-file-size ;
- minimum-disk-space-usage minimum-disk-space-usage ;
- rotation-batch-size rotation-batch-size ;
- maximum-session-size maximum-session-size ;
- disk-load-buffer-size disk-load-buffer-size ;
- network-buffer-size network-buffer-size ;
- retry-interval retry-interval ;
- communications-timeout communications-timeout ;
- load-timeout load-timeout ;
- idle-timeout idle-timeout ;
- maximum-backlog-ratio maximum-backlog-ratio ;
- minimum-backlog minimum-backlog ;
- }
To configure session store parameters within a device driver configuration:
- From configuration mode, access the configuration statement that configures the session store for your device driver. In this sample procedure, the session store for a JUNOS device driver is configured in the se-region group.
- (Optional) Specify the maximum age that a queue of buffered store operations (such as adding a session to the store or removing a session from the store) can reach before the queue is written to a session store file.
- (Optional) Specify the number of buffered store operations that are queued before the queue is written to a session store file.
- (Optional) Specify the maximum size that a queue of buffered store operations can reach before the queue is written to a session store file.
- (Optional) Specify the maximum size of session store files.
- (Optional) Specify the percentage of space in all session store files that is used by live sessions.
- (Optional) Specify the number of sessions that are rotated from the oldest file to the newest file at the same time that the oldest session store file is rotated.
- (Optional) Specify the maximum size of a single subscriber or service session.
- (Optional) Specify the size of the buffer that is used to load all of a session store’s files from disk at startup.
- (Optional) Specify the size of the buffer that holds messages or message segments that are waiting to be sent to passive session stores.
- (Optional) Specify the time interval between attempts by the active session store to connect to missing passive session stores.
- (Optional) Specify the amount of time that a session store waits before closing when it is blocked from reading or writing a message.
- (Optional) Specify the time that an active session store waits for a passive session store or a passive session store waits for an active session store to load its data from disk before it closes the connection to the session store.
- (Optional) Specify the time that a passive session store waits for activity from the active session store before it closes the connection to the active session store.
- (Optional) Specify when the active session store closes the connection to a passive session store because of a backlog of messages waiting to be sent.
- (Optional) Verify your configuration.
[edit shared sae group se-region configuration driver junos session-store] user@host# show maximum-queue-age 5000; maximum-queued-operations 50; maximum-queue-size 51050; maximum-file-size 25000000; minimum-disk-space-usage 25; rotation-batch-size 50; maximum-session-size 10000; disk-load-buffer-size 1000000; network-buffer-size 51050; retry-interval 5000; communications-timeout 60000; load-timeout 420000; idle-timeout 3600000; maximum-backlog-ratio 1.5; minimum-backlog 5000000;
Configuring Global Session Store Parameters
This topic describes how to configure global session store parameters that are shared by all session store instances (active or passive) on the SAE. You can also configure session store parameters within a device driver configuration. See Configuring the Session Store Feature.
Use the following configuration statements to configure global session store parameters.
- shared sae configuration driver session-store {
- ip-address ip-address ;
- port port ;
- root-directory root-directory ;
- }
To configure global session store parameters:
- From configuration mode, access the configuration statement that configures the global session store parameters. In this sample procedure, the global session store is configured in the se-region group.
- (Optional) Specify the IP address or hostname that the session store infrastructure on this SAE uses to listen for incoming TCP connections from active session stores.
- (Optional) Specify the TCP port number on which the session store infrastructure on this SAE listens for incoming connections from active session stores.
- (Optional) Specify the root directory in which the session store creates files.
- (Optional) Verify your configuration.
[edit shared sae group se-region configuration driver session-store] user@host# show ip-address 10.10.70.0; port 8820; root-directory var/sessionStore;
Reducing the Size of Objects for the Session Store Feature
You can use serialized data compression to reduce the size of sessions objects that the SAE sends across the network for the session store feature. Enabling this property reduces the size of objects, but increases the CPU load on the SAE.
Use the following configuration statement to specify whether or not session objects are compressed.
- shared sae configuration {
- compress-session-data;
- }
To specify whether or not session objects are compressed:
- From configuration mode, access the sae configuration. In this sample procedure, data compression is configured in the se-region group.
- Enable reducing the size of session objects (subscriber and service sessions) that the SAE sends across the network for the session store feature.
- (Optional) Verify your configuration.
[edit shared sae group se-region configuration] user@host# show compress-session-data compress-session-data;
