Session Management

OpenTwin provides four services that handle the session management:

  1. Global Session Service (GSS)

  2. Local Session Service (LSS)

  3. Global Directory Service (GDS)

  4. Local Directory Service (LDS)

These services handle the startup logic for each session, monitor the running services and try to balance the CPU & GPU load on each node.

The Directory Services (GDS and LDS) handle the service management itself. They are responsible for starting, monitoring and shutting down services.

The Session Services (GSS and LSS) handle the session management itself. They are use to create a session, request services from the GDS and broadcast messages in a session.

Service Information Overview

The following diagram shows which Session and Service related information is known in the four session management related services.

../_images/service_information_overview.svg

Create a Session

The session creation can be initiated from any service. Since currently the Frontend Application is the only “Service” that can be started by a user, it is the only possible way to start a Session.

../_images/service_start_logic_sequence.svg

Close a Session

Any service can initiate a session close.

../_images/session_close_sequence.svg