[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Configuring the Session Store Feature

You can configure three things 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 ( 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:

  1. 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.
  2. user@host# edit shared sae group se-region configuration driver junos 
    session-store 
    
    
    
  3. (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.
  4. [edit shared sae group se-region configuration driver junos session-store]
    
    user@host# set maximum-queue-age maximum-queue-age 
    
    
    
  5. (Optional) Specify the number of buffered store operations that are queued before the queue is written to a session store file.
  6. [edit shared sae group se-region configuration driver junos session-store]
    
    user@host# set maximum-queued-operations maximum-queued-operations 
    
    
    
  7. (Optional) Specify the maximum size that a queue of buffered store operations can reach before the queue is written to a session store file.
  8. [edit shared sae group se-region configuration driver junos session-store] 
    
    user@host# set maximum-queue-size maximum-queue-size 
    
    
    
  9. (Optional) Specify the maximum size of session store files.
  10. [edit shared sae group se-region configuration driver junos session-store] 
    
    user@host# set maximum-file-size maximum-file-size 
    
    
    
  11. (Optional) Specify the percentage of space in all session store files that is used by live sessions.
  12. [edit shared sae group se-region configuration driver junos session-store]
    
    user@host# set minimum-disk-space-usage minimum-disk-space-usage 
    
    
    
  13. (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.
  14. [edit shared sae group se-region configuration driver junos session-store]
    
    user@host# set rotation-batch-size rotation-batch-size 
    
    
    
  15. (Optional) Specify the maximum size of a single subscriber or service session.
  16. [edit shared sae group se-region configuration driver junos session-store]
    
    user@host# set maximum-session-size maximum-session-size 
    
    
    
  17. (Optional) Specify the size of the buffer that is used to load all of a session store's files from disk at startup.
  18. [edit shared sae group se-region configuration driver junos session-store]
    
    user@host# set disk-load-buffer-size disk-load-buffer-size 
    
    
    
  19. (Optional) Specify the size of the buffer that holds messages or message segments that are waiting to be sent to passive session stores.
  20. [edit shared sae group se-region configuration driver junos session-store]
    
    user@host# set network-buffer-size network-buffer-size 
    
    
    
  21. (Optional) Specify the time interval between attempts by the active session store to connect to missing passive session stores.
  22. [edit shared sae group se-region configuration driver junos session-store]
    
    user@host# set retry-interval retry-interval 
    
    
    
  23. (Optional) Specify the amount of time that a session store waits before closing when it is blocked from reading or writing a message.
  24. [edit shared sae group se-region configuration driver junos session-store]
    
    user@host# set communications-timeout communications-timeout 
    
    
    
  25. (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.
  26. [edit shared sae group se-region configuration driver junos session-store]
    
    user@host# set load-timeout load-timeout 
    
    
    
  27. (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.
  28. [edit shared sae group se-region configuration driver junos session-store]
    
    user@host# set idle-timeout idle-timeout 
    
    
    
  29. (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.
  30. [edit shared sae group se-region configuration driver junos session-store]
    
    user@host# set maximum-backlog-ratio maximum-backlog-ratio 
    
    
    
    [edit shared sae group se-region configuration driver junos session-store] 
    
    user@host# set minimum-backlog minimum-backlog 
    
    
    
  31. (Optional) Verify your configuration.
  32. [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;
    

Related Topics

Configuring Global Session Store Parameters

This section 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 Session Store Parameters for a Device Driver.

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:

  1. 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.
  2. user@host# edit shared sae group se-region configuration driver session-store 
    
    
    
  3. (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.
  4. [edit shared sae group se-region configuration driver session-store]
    
    user@host# set ip-address ip-address 
    
    
    
  5. (Optional) Specify the TCP port number on which the session store infrastructure on this SAE listens for incoming connections from active session stores.
  6. [edit shared sae group se-region configuration driver session-store]
    
    user@host# set port port 
    
    
    
  7. (Optional) Specify the root directory in which the session store creates files.
  8. [edit shared sae group se-region configuration driver session-store]
    
    user@host# set root-directory root-directory 
    
    
    
  9. (Optional) Verify your configuration.
  10. [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;
    

Related Topics

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:

  1. From configuration mode, access the sae configuration. In this sample procedure, data compression is configured in the se-region group.
  2. user@host# edit shared sae group se-region configuration 
    
    
    
  3. Enable reducing the size of session objects (subscriber and service sessions) that the SAE sends across the network for the session store feature.
  4. [edit shared sae group se-region configuration]
    
    user@host# set compress-session-data 
    
    
    
  5. (Optional) Verify your configuration.
  6. [edit shared sae group se-region configuration]
    
    user@host# show compress-session-data 
    
    compress-session-data;
    

Related Topics


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]