i cannot find document where i read. anyway, yes i believe it is expected behavior. the lifetime is counted from when entry is added into table.
// config
[root@ve11a:Active:In Sync] config tmsh list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
set cmd [string map {/ " "} [HTTP::path]]
log local0. "$cmd = [eval $cmd]"
HTTP::respond 200
}
}
// test
[root@ve11a:Active:In Sync] config tail -f /var/log/ltm
Aug 16 03:35:50 ve11a info tmm[29362]: Rule /Common/qux : table set -subtable test abc 123 indef 300 = 123
Aug 16 03:36:06 ve11a info tmm1[29362]: Rule /Common/qux : table lifetime -subtable test -remaining abc = 284
Aug 16 03:36:12 ve11a info tmm[29362]: Rule /Common/qux : table lifetime -subtable test abc 300 = 300
Aug 16 03:36:17 ve11a info tmm1[29362]: Rule /Common/qux : table lifetime -subtable test -remaining abc = 273
Aug 16 03:36:24 ve11a info tmm[29362]: Rule /Common/qux : table lifetime -subtable test abc 300 = 300
Aug 16 03:36:26 ve11a info tmm1[29362]: Rule /Common/qux : table lifetime -subtable test -remaining abc = 264
Aug 16 03:36:31 ve11a info tmm[29362]: Rule /Common/qux : table lifetime -subtable test abc 600 = 600
Aug 16 03:36:33 ve11a info tmm1[29362]: Rule /Common/qux : table lifetime -subtable test -remaining abc = 557