Re: Decoupling RADIUS Auth/Acct and Moving Toward SQL-less Accounting
Alan DeKok via Freeradius-Users <[email protected]> Tue, 13 Jan 2026 07:53:22 -0500
| Newsgroups | gmane.comp.freeradius.user |
|---|---|
| Message-ID | <[email protected]> |
On Jan 13, 2026, at 7:27 AM, Erdal Emlik via Freeradius-Users <[email protected]> wrote: > In our current setup, we have 8 RADIUS instances handling both Authentication (Auth) and Accounting (Acct) on the same server, utilizing PostgreSQL as the storage backend. We are planning to migrate to a scenario where we decouple these responsibilities into dedicated RADIUS instances for Auth and Acct. That's a reasonable design. > Currently, we store only the latest sessions in RadAcct to support functions like simultaneous-use. The rest of the accounting data is generally forwarded through RADIUS to a Kafka server. OK. > My goal is to eliminate SQL from the accounting process entirely. Why? > Ideally, I want to forward incoming accounting packets directly to Kafka and immediately return a response. I can find a workaround for maintaining session states without writing them to SQL, but I am stuck on how to manage IP pool (ippool) operations efficiently. Kafka is really a logging framework. It's not a database. Maintaining session state requires a database. Maintain IP pools requires a database. > It seems there might be no way to avoid using a database for IP management, and it might not even be logical to do so, but I wanted to hear your perspective on this. Use a database. If you don't like SQL, switch to Redis. But it's hard to maintain a database of IP pool without using an actual database. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEIUl02elqcIsf1zM0v3SJ0h7dTTMFAmlmQEIACgkQv3SJ0h7d TTOCbBAApNx00FtFU/ykKYdh4Zt/V5UdNjnWx0vp5WdGdsWX0gXwWBy2UMwJExDF a6O+bsSrxF9aVeQLR2Md8olqVfgaxeksNOyz5ooE4NsGl2yCkbl64m8eaUT6YFuE FDJ3NnAOydPkr/9uh6nWGmTeSfVmI4vp2sBSPQihTcQDv1PKqQ+WLaJhfEv0l4ZG gjbAq5dMp51jkYeM/x3Ze3Jys/FYemw/94w6KNtVvOKyCS66mmru7RPsQfxac5cr NwOc9VX/d5bct2RYk6g2ilWJs7MTeSEXiIu3ft1XgY1EDQZ8vZwuHPEzJO8bi8H5 UtmkqlsDU9JU6YsbSkzUv77DIzhlDk5dY7IZ1mFNIXVq2UBNskuIeaR08ocBJFBH LqfCjyl4L8RIhy1S6ihnsqGwM91c7ZeFnUcp2b2hGuoCaj+u9dli3vg2pLzJqFX6 ctSVcHkgLne2AS5tig6gy7qDI/icC7+H3ABDW5q7qHdEpudtZhRuZ/SydYWuJqV0 86xCiEtwdeFONdc/Y1Uffy08ssJeBuNyaIudo1JjBKFRbKgggGbmIXEngwjvq0YI 0ZvM6klBgtW0fwTtGdVC6iU6O9cmd/DLVLTOlE4icXa5umhUrGsiKtP6ewf/W6HK nowCQQY1qdYBXOz1RLJFSy+wl9be5ecGrBeinK/+HhNBIfx5DOs= =lXCe -----END PGP SIGNATURE-----