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.15, an older release. The newest release is 6.20. Go to 6.20

Database server requirements and settings

TPOSS may work with the following versions of these databases:

  • MariaDB 10.3 to 10.5
  • MySQL 5.7, including the latest 5.7.33

Note

MySQL 8 is supported in the context of compatibility, but performance issues with insert operations may occur.

TPOSS is compatible to run with the MariaDB Galera cluster and MySQL NDB cluster, and it does not have any specific limitations according to the MySQL NDBOpens in a new tab and MariaDB Galera clusterOpens in a new tab documentation.

To operate on MySQL, TPOSS must have a database created. Create a UTF-8 encoded database named tposs and a user with all permissions for this database:

sql

Tables partitioning

If TPOSS is configured to have the CDR table partitioned, enable the MySQL event schedulerOpens in a new tab:

sql

If there is more than one MySQL instance used in the deployment, disable the events on the secondary MySQL instances:

sql

Connection pooling

The size of a connection pool configured in the database must match the expectation of the applications. For example, a database connected to two TPOSS instances with a configured pool size of 100 must be able to handle at least 200 connections. You can check the possible number of connections using the max_connections MySQL variable:

sql

It is worth to set max_connections to a value higher than the pool size of all TPOSS instances to have a separate access through the standard MySQL client to the database.

Note

To execute each query, TPOSS uses prepared statementsOpens in a new tab. The default limit of the maximum number of the prepared statements might not be suitable for production. It is worth to set max_prepared_stmt_count to 50000.