Automatic vs. Manual Seat Deactivation

Automatic vs. Manual Seat Deactivation

Manual seat deactivation was added in version 7.14.0.

Overview

By default, an instance attempts to automatically deactivate its floating license seat on shutdown. This behavior is ideal for a containerized environment, where container storage is typically ephemeral and is disposed of when the container ends – deactivating the seat immediately allows another container to use it right away.

In a non-containerized environment, manual seat deactivation may be a better option.

How Manual Deactivation Behaves

When an instance is configured for manual deactivation:

  • Activation data is stored locally - It is written to the local file system and updated after each communication with the licensing server;

  • Startup tolerates an outage - At instance start up time, the stored activation data can be used to activate licensed features, assuming the activation data is still current, even if the licensing server cannot be contacted at that moment – for example during an Internet service outage;

  • The seat stays claimed - It remains active as long as the instance heartbeat signal is received periodically;

  • Release is explicit - The CLI is used to deactivate the seat when needed.

Configuring Manual Deactivation

To configure an instance for manual seat deactivation, set the following environment variable:

PJS_FLOATING_DEACTIVATION=manual

Example: Visual Studio Code Launch Configuration

Set the variable in the env block of the launch configuration used to start the instance:

Example: IBM i STRTCPSVR Instance Configuration

Add an env directive to the instance configuration file (see Starting and Ending Profound.js Instances). Here the authorization code and the manual deactivation setting are both supplied as environment variables:

/profoundjs-base/instances/INSTANCE_NAME/conf
path=/home/bob/mypjs/start.js nodePath=/QOpenSys/pkgs/bin/node ccsid=37 autostart=1 logging=0 env=PJS_FLOATING_AUTHORIZATION=plls_api_xxx env=PJS_FLOATING_DEACTIVATION=manual