> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/cdf/latest/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/cdf/latest/releases/3.0.2.md).

# Charging Data Function 3.0.2

Charging Data Function (CDF) in version 3.0.2 provides a split architecture with a sender and a receiver.
This way, the sender can be reconfigured without stopping any CTF sending to the receiver.
There are also new metrics and improved usability for metrics.
Additionally, the Kubernetes integration with Kubernetes liveness and readiness probes has been improved.
A number of bugs was fixed.

## Features

### Split architecture

CDF consists of two separate processes: one receiving Rf events (CDF receiver) and one sending CDRs over Ga to CGF (CDF sender).
There may be more than one receiver however there is always only one sender.
This architecture allows upgrades of CDF sender without any downtime.
It is fully backward compatible at the network interfaces for both Rf and Ga.

CDF sender and CDF receiver coordinate the information in transit through an S3-compliant storage.
This storage also holds a variable amount of CDRs:

- In the case the CGF is down and cannot receive CDRs
- For archival purposes once CDRs have been sent and acknowledged

The CDRs are stored compressed to optimise disk usage.
How and when they are deleted from S3 is up to the user, as this action is not automatic.

### New metrics

The `ercdf_cdr_pending` metric used a gauge to show how many CDRs were waiting to be sent to CGF.
Since it was not possible to preserve the accuracy of this gauge during heavy load operation, it has been removed.
It is replaced by two counters, for received CDRs and sent CDRs.

There are also new metrics for S3 up/down load.

### Kubernetes probes

CDF answers now Kubernetes liveness and readiness probes targeted at `/livez` and `/readyz` as described [here](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/).

## Configuration update

The APN configuration option `{zero_volume, remove}` has been removed.
This behaviour is now always active.
Any service data container with zero data volume is always removed.

## Bug fixes

- Optimize secondary RAT usage reporting
- Recovery from corrupted DETS files (corrupted DETS files renamed/deleted)
