Hi Muhammad, I assume DHCPv4 from your mention of a /8. That is an extremely large single subnet. It might be a better test to with several smaller subnets unless you have some situation where you will actually serve clients from such a large subnet. If you have not changed the allocator, then it is likely to be slow (especially with a database backend). The default lease allocator is the Iterative Allocator: https://kea.readthedocs.io/en/kea-2.4.1/arm/dhcp4-srv.html#iterative-allocator This could result in many SQL queries while it searches for a free lease to allocate. You may want to investigate the random allocator, which may give better performance https://kea.readthedocs.io/en/kea-2.4.1/arm/dhcp4-srv.html#random-allocator Also, sometimes the bottleneck is on the test machine itself. With such a large subnet you must be specifying some truly large values for perfdhcp. You might have more luck if you split perfdhcp across several machines with smaller values. A final point would be about your packet-queue and thread-pool settings. See here: https://kea.readthedocs.io/en/kea-2.4.1/arm/dhcp4-srv.html#multi-threading-settings-with-different-database-backends where your thread-pool-size might be better if it were at least 12 (probably no more than 16 since you have 16 CPUs).and your packet-queue-size set be 66 * the thread-pool-size So 12 and 792, for example.
Hope this helps! Thank you, Darren Ankney On Sat, Jun 1, 2024 at 7:43 AM Muhammad Zain <engr.za...@gmail.com> wrote: > > Hi all, > > I am benchmarking a kea-dhcp server (2.4.1) installed on ubuntu. > > Test Setup: > 1. Kea 2.4.1 installed on ubuntu vm 16(vpcu) 8 GB ram. Backend Galera cluster > with haproxy writes on a single master at a time. > 2. /8 subnet. Multithreading enabled packet-queue size 2000 thread-pool-size > 10 > 3. Perf machine is connected via a relay to dhcp. > > Expected Result to achieve 2k-4k leases/seconds > I am getting 600-700 with drop ratio 4 to 5% > > Can you please help me with this?. > Is it possible to configure buffers/ queueing in Kea > > Thank you > Muhammad Zain > -- > ISC funds the development of this software with paid support subscriptions. > Contact us at https://www.isc.org/contact/ for more information. > > To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. > > Kea-users mailing list > Kea-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/kea-users -- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users