High request rate
This document describes requirements and configuration needed to achieve a session churn test (sessions setup + sessions termination) with different rates.
All the network interfaces - Diameter Gx, Gy, NASREQ, and RADIUS - are enabled. The load state is stable when on average one million network sessions and 250,000 service sessions are active.
Three different sets of load are described in this document:
- 250 sessions setup and session terminations per second
- 500 sessions setup and session terminations per second
- 1000 sessions setup and session terminations per second
All the tests described in the document are executed with a similar configuration. The only difference is the number of incoming RADIUS and Diameter requests described above. If there are any differences, they are described in the test descriptions accordingly.
Test setup
The test represents the session churn test with the TPOSS, RADIUS Proxy (RPR), and Diameter Proxy (DPR) components. Three TPOSS instances are used combined into a single cluster. Both RADIUS and Diameter Proxy components are connected to all of them.
The following versions of the components are used:
TPOSS settings
The test uses TPOSS cluster with 3 instances. The configuration options needed for TPOSS cluster are described in the high availability document. The generic configuration is described in the installation document.
The only features not used during the test are:
RPR and DPR settings
Both RPR and DPR proxies are configured to communicate with TPOSS to forward RADIUS and Diameter requests to both sides. For more information on how to configure RADIUS and Diameter relays, go to the official RPR documentationOpens in a new tab and official DPR documentationOpens in a new tab.
If the RADIUS Proxy relay is specified as a hostname, the RADIUS Proxy client tries to resolve it before sending the request. To avoid DNS requests at each RADIUS request, you can use TPOSS Kubernetes headless serviceOpens in a new tab ({TPOSS-HELM-RELEASE-NAME}.{NAMESPACE}.svc.cluster-domain.example) to specify RADIUS Proxy relays towards TPOSS. In general, it is recommended to use the TPOSS Kubernetes headless service to communicate with TPOSS. However, for the purpose of these tests, the IP address of the special TPOSS {TPOSS-HELM-RELEASE-NAME}-radius Kubernetes service is used. RPR versions higher than v2.2.0 already provide support for DNS responses caching. With DNS responses caching, you can continue to use the recommended tposs-{TPOSS-HELM-RELEASE-NAME} headless service.
MySQL settings
MySQL in version 8.0.21 is used without any external plugins. This is the configuration of the MySQL server used during the test:
50 database connections at each TPOSS instance are used during the test. Thus, the value of the max_connectionsOpens in a new tab MySQL configuration option must be set to at least 151 to connect all TPOSS instances and one extra connection for administrative purposes.
One of the crucial MySQL database option in these tests is max_prepared_stmt_countOpens in a new tab. Since TPOSS executes each database query as a prepared statementOpens in a new tab, the MySQL server must be able to create the necessary number of them. The default value of this option is 16382, but it might not be enough. The required value highly depends on the two following parameters:
- The number of incoming RADIUS and Diameter requests arriving to TPOSS
- The average latency of database queries
The lower latency of the database queries, the more connections from the TPOSS database connection pool are reused. Since the prepared statements are created per database connection, it is worth increasing the default value of the max_prepared_stmt_count to 50,000.
Since only a single MySQL instance is used for the tests, the binary logOpens in a new tab is disabled.
250 attachments per second
The table presents the number of incoming RADIUS and Diameter requests TPOSS receives during the sessions attachment:
The table presents the number of incoming RADIUS and Diameter requests TPOSS receives during the sessions update:
The Validity-Time (the scg.diameter.rating_groups_validity_time configuration option) is set to 900 seconds. The RADIUS Interim-Update requests period is 1800 seconds.
The table presents the number of incoming RADIUS and Diameter requests TPOSS receives during the sessions termination:
The table presents the number of sessions that were active during the test:
The table presents the number of database queries executed by TPOSS during the test:
The number of IOPS on the node with database is around 10,500.
Resource usage
Based on the performed test, the following resource usage is expected:
The second column of the table describes resource consumption under normal conditions. The actual resource usage can differ in different environments. One of the main condition that may bring the highest impact is the average latency of database queries. In the case when the normal conditions are violated and any type of edge case happens, TPOSS may require more resources. If the number of incoming requests does not change too much, the CPU usage of TPOSS is stable under any conditions.
If the database queries latency start to grow, the memory consumption of TPOSS start to grow as well. The recommended values are represented in the third column of the table. The values in the third column are presented in the format of the Kubernetes Pod resources definition. For more information, go to the official Kubernetes documentationOpens in a new tab.
Note
MySQL memory usage is conditional and highly depends on the configuration of MySQL in-memory buffers.
500 attachments per second
The same setup and configuration of TPOSS and proxies is used in the test for 500 attachments per second.
The only difference in the configuration is the shorter interim period for update requests. The Validity-Time (the scg.diameter.rating_groups_validity_time configuration option) is decreased to 450 seconds. With this value, each service session can receive at least one update request. The RADIUS Interim-Update requests period is 900 seconds.
The table presents the number of incoming RADIUS and Diameter requests TPOSS receives during the sessions attachment:
The table presents the number of incoming RADIUS and Diameter requests TPOSS receives during the sessions update:
The table presents the number of incoming RADIUS and Diameter requests TPOSS receives during the sessions termination:
The table presents the number of database queries executed by TPOSS during the test:
The number of IOPS on the node with database is around 20,000.
Resource usage
Based on the performed test, the following resource usage is expected:
1000 attachments per second
The same test was run for 1000 attachments per second but with the increased number of incoming requests.
The only difference in configuration is the shorter interim period for update requests. The Validity-Time (the scg.diameter.rating_groups_validity_time configuration option) is decreased to 225 seconds. With this value, each service session can receive at least one update request. The RADIUS Interim-Update requests period is 450 seconds.
The table presents the number of incoming RADIUS and Diameter requests TPOSS receives during the sessions attachment:
The table presents the number of incoming RADIUS and Diameter requests TPOSS receives during the sessions update:
The table presents the number of incoming RADIUS and Diameter requests TPOSS receives during the sessions termination:
The table presents the number of database queries executed by TPOSS during the test:
The number of IOPS on the node with database is around 25,000.
Resource usage
Based on the performed test, the following resource usage is expected: