For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

You are reading Travelping Open Subscriber Server 6.19, an older release. The newest release is 6.20. Read this page in 6.20

Global lock service

You may configure and use the NATSOpens in a new tab-based Cennso Data Mesh (CDM) servers to support the global lock for handling PCS sessions in TPOSS.

To do this, you need to specify the name of the pre-configured service in the sessions configuration. For example:

yaml

Also, you must configure the global-lock-provider service using the following configuration:

yaml

To enable the session locking that uses a NATS-based Cennso Data Mesh server, you must set nats-services.{SERVICE_NAME}.enabled to true and specify nats-services.{SERVICE_NAME}.server with the endpoint of the NATS server. If nats-services.{SERVICE_NAME}.enabled is set to true and the sessions.global_lock.algorithm is equal to the {SERVICE_NAME}, the TPOSS Helm chart starts the init containerOpens in a new tab that checks the available NATS server specified in nats-services.{SERVICE_NAME}.server. The TPOSS container itself starts only after the init container successfully checks the availability of the specified NATS instance.

The nats-services.{SERVICE_NAME}.stream parameter specifies the name of the streamOpens in a new tab. TPOSS instances use the stream to acquire the lock based on the NATS messages sent for the specific topic. TPOSS creates multiple streams at start-up if they do not exist at the NATS server. The value of nats-services.{NATS_SERVICE}.stream is used as a prefix to the topics accepted by the stream.

You can configure each stream to be used by multiple connections using the nats-services.{SERVICE_NAME}.connections_per_stream configuration option. If TPOSS detects that the number of connections is insufficient during high load, it creates additional connections. You can control the maximum number of connections using the nats-services.{SERVICE_NAME}.max_connections configuration option. The total number of connections is the number of streams multiplied by the nats-services.{SERVICE_NAME}.connections_per_stream value. By default, TPOSS creates seven streams. After TPOSS sends a message to the given stream, it is not stored there permanently, but is either purged by TPOSS itself or by the TTL timeout. The TTL timeout is configured with the nats-services.{SERVICE_NAME}.ttl configuration option.

The nats-services.{SERVICE_NAME}.storage_type configuration option controls the JetStream streams used by TPOSS. If the NATS server is configured with the file storage backend, TPOSS also must have this configuration option set to file. Otherwise, memory is also suitable.

TPOSS provides a metric to observe RTT (round-trip time) for requests towards NATS. You can configure the histogram buckets using the nats-services.{SERVICE_NAME}.request_histogram_buckets configuration option. For more information, see the Metrics document.

The recv_timeout configuration option specifies how long TPOSS waits for a response from the NATS server. The send_timeout configuration option specifies how long TPOSS waits for the underlying TCP stack to accept a send operation. If any timeout is reached, TPOSS closes the NATS connection and tries to create a new one. Any incoming RADIUS, Diameter, SBI, or CDMP requests for this session are rejected until a new NATS connection is ready.