Prevent idle SAS® Enterprise Guide sessions from disconnecting from SAS® Viya® workspace servers


Starting with SAS Enterprise Guide 8.2, integration with SAS Viya 3.5 was introduced. See SAS Enterprise Guide: Welcome to SAS Viya? for additional details.

To prevent idle disconnects from occurring, you can set the KEEPALIVE option within the spawner.sh file. This enables you to set time-span packets to be sent to the SAS Enterprise Guide, which prevents firewalls from viewing the connections as inactive. Complete these steps:

  1. Make a backup copy of the /opt/sas/viya/config/etc/spawner/default/spawner.sh file.
  2. Add the following line to the Object Server Definition located in the spawner.sh file:
    sasobjectserverparms: keepalive=<value in seconds>

    object server definition.png
  3. Restart the spawner service:
    sudo systemctl restart sas-viya-spawner-default
  4. After restarting the spawner, the new /opt/sas/viya/config/etc/spawner/default/spawner.cfg file should contain the KEEPALIVE parameter to be set on the workspace server:

    SecondImageSN68449KB0058469.png