<div dir="ltr">Hi,<div><br></div><div>I'm calling stat-lease4-get but this doesn't seem to be updating when new leases are issued.</div><div>I have about 800 subnets configured, but omitted these from the sql results below.<br><br></div><div>I can confirm that the leases are in the lease4 db table and not reclaimed yet:<br><br>mysql> select * from lease4;<br><br>+-----------+----------------+----------------------+----------------+---------------------+-----------+----------+----------+----------+-------+--------------+<br>| address   | hwaddr         | client_id            | valid_lifetime | expire              | subnet_id | fqdn_fwd | fqdn_rev | hostname | state | user_context |<br>+-----------+----------------+----------------------+----------------+---------------------+-----------+----------+----------+----------+-------+--------------+<br>| 179437569 | 0x000C01020304 | 0x01000C01020304     |           4000 | 2021-01-14 13:51:03 |      4327 |        0 |        0 |          |     0 | NULL         |<br>| 179437570 | 0x000C01020305 | 0x01000C01020305     |           4000 | 2021-01-14 13:51:03 |      4327 |        0 |        0 |          |     0 | NULL         |<br><br>...<br><br>I can also see that lease4_stat contains the following: <br><br></div><div>mysql> select * from lease4_stat;<br>+-----------+-------+--------+<br>| subnet_id | state | leases |<br>+-----------+-------+--------+<br>|      4327 |     0 |    254 |<br>+-----------+-------+--------+<br>2 rows in set (0.00 sec)<br><br>The result of the API call "stat-lease4-get" returns the following: <br>"rows"=>[[4327, 253, 0, 0, 0]]<br><br>I'd expect the 3rd column "assigned-addresses" to match what's in the db tables.<br><br>I've tried running "statistic-reset-all" to see if this makes a difference but it's not recalculated the new statistics. <br><br>Are these statistics only kept in memory? Do you have any resources that could help me debug this issue?<br><br>Thanks,<br>Emile</div></div>