Recommended resource requirements
CPU
The minimum requirement for the receiver is 1 CPU (Kubernetes requirement). With 1 CPU, a receiver can handle 2,000 CDRs per second. It is expected to scale linearly.
With 1 CPU, the sender reaches 1,000 CDRs per second with 1 receiver feeding files through S3. Given 2 receivers and 2 CPUs, the sender will reach 1,700 CDRs per second.
RAM
The minimum requirement for the receiver is 1 GB (Kubernetes requirement). With 1 GB RAM, a receiver can handle 2,000 CDRs per second.
The sender performance tests have always been performed for 4 GB RAM. Changing the number of processes used to send (one per S3 data file that a receiver creates) is possible without a restart. 4 GB RAM was always used to scale the number of processes without restarting.
The amount of RAM required for processing depends on how the operating system handles RAM as a disk cache.
CDR size
The content of CDRs is mostly optional and it is the configuration of SMC that decides how many of these optional items are present. SMC in production has almost 27 thousand CDRs stored in an approximately 100 MB file. This is 3.7 kB per CDR and this value is used throughout this document.
When stored in S3, the file with CDR is compressed by CDF. Compression reduces the file size to 4.25 MB.
KPI
The value used in the performance evaluation of CDF is 1,800,000 sessions. The number of CDRs generated depends on the interim interval. SMC in production sends charging data every 30 minutes per session. 1,800,000 sessions generating a CDR twice per hour makes 1,000 CDRs per second.
Together with the 3.7 kB of CDR size, 97 GB of local disk space per day is required for uncompressed files, A and 14 GB of S3 disk space per day for compressed files. And 14 GB disk space per day compressed (only in S3).
CDF receiver
A receiver must be able to store incoming charging data in uncompressed files until they can be transferred to S3. The required amount of disk space depends on the duration of a potential lost connectivity with S3. If it is always possible to restore the connection within 24 hours, one CDF receiver will need 97 GB. Two CDF receivers will share 1,000 CDRs per second and only need 48.5 GB each.
The actual size and number of files depend on the frequency of file creation. There is a size limit of 2 GB for CDF, which at 1,000 CDRs per second means a maximum latency of 540 seconds. This is a lot of latency. A more suitable value is 100 seconds, for an uncompressed file size of 370 MB.
S3
S3 must be able to store files for several days in the case of a lost connection to the CDF sender (or CGF). If 7 days of storage are required, S3 needs 100 GB.
Each CDF receiver sends one file to S3 every 100 seconds or more often. The frequency if configurable. The uncompressed file size depends on the arriving Rf content (configurable in SMC) and its rate. The file is compressed before sending. 1,000 CDRs per second with content such as SMC in production gives a compressed file size of 4 MB. In this case, S3 needs to be able to handle a 4 MB file arriving every 100 seconds. Splitting the 1000 CDRs per second over multiple CDF receivers will result in smaller files arriving more often.
CDF sender
The sender only asks for a file from S3 when it is able to send. The file size depends on how the receiver assembles CDRs. The possible file size is 370 MB.
The sender never has more than two such files. To archive CDRs, the sender builds files to send back to S3. These can be any size up to 2 GB. If they too have 370 MB, there will not be needed more than 3 * 370 MB. Since it is not possible for S3 to lose connection in one direction only, it will always be possible to send files if you can receive them.