> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/tposs/6.14/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/tposs/6.14/use-cases/load-cases/tposs-hsn.md).

# High session number

This document lists requirements and configuration needed to run TPOSS with only network sessions attachments (RADIUS only communication) for 20 million sessions.

## Request load

Based on the performed tests, the following TPOSS resources for 20 million subscribers and about 300 attachments per second incoming to the TPOSS cluster are expected:

| Request type | Requests/s |
| --- | --- |
| RADIUS Access-Request | 300 |
| RADIUS Accounting-Start | 300 |
| RADIUS Accounting-Update | ~6.000 (after all devices are attached) |

## Requirements

### TPOSS and RPR requirements

Considering the TPOSS cluster consisting of 3 instances, the following resource usage is expected:

| Resource type | Usage |
| --- | --- |
| TPOSS memory | 3 GB (1 GB per TPOSS intance) |
| TPOSS CPU | 9 cores (3 per TPOSS instance) |

There was a single RPR instance used in this test. The following resource were consumed:

| Resource type | Usage |
| --- | --- |
| RPR memory | 600 Mb |
| RPR CPU | 6 cores |

Additional experimental configuration options were used for TPOSS to optimize and reduce the number of database queries:

| Option | Value | Description |
| --- | ---|--- |
| ccs.cache.enabled | true | Cache charging data during service session establishment |
| sessions.global_lock_enabled | false | Disable global lock per session ID within the cluster |
| sessions.store_ip_within_network_sessions | true | Do not store allocated Framed-IP-Address(es) in separate table |
| sessions.idle_timer_enabled | false | Enable idle timer per session |

All other used options were similar to those described in the [High availability](https://docs.cennso.com/components/tposs/6.14/use-cases/availability-cases/tposs-ha.md) scenario.

### Database requirements

The following database setup was used:

| | |
| --- | --- |
| MySQL version | 8 |
| Number of MySQL instances | 3 |
| Active (write) MySQL instances | 1 |
| Node memory | 32GB |
| Memory usage | 32GB |
| Node CPU | 8 cores |
| CPU usage | ~60% |
| Node disk | 1 Tb |
| Disk usage | ~60GB |

The configuration of the MySQL server is default, except the following configuration options:

| Option | Value |
| --- | --- |
| innodb_buffer_pool_size_percentage | 75% |
| innodb_log_buffer_size=512M | 512M |
| innodb_log_file_size | 1G |

These are the approximate numbers of queries per second executed by TPOSS instances during the test:

| Resource type | Usage |
| --- | --- |
| MySQL Insert | ~ 600/s |
| MySQL Update | ~ 300/s |
| MySQL Select for Access-Request | 1200/s |
| MySQL Select for Accounting-Start | 300/s |
| MySQL Select for Accounting-Update | ~11,000/s  (after all sessions are established) |
