ITS#10363 - Implement a target connection time-to-live in asyncmeta and ITS#10308 - cn=monitor for back-asyncmeta

Implement a feature that limits the maximum time before a target connection is reset, even if it is not idle - conn-ttl. To avoid too many target connections timing out at once, a minimum reset interval per target should also be configurable. So, a configuration of: conn-ttl 5s 5s would mean connections have a 5 seconds time-to-live, but a connection should be reset no more frequently that once every 5 seconds per target. conn-ttl 0 5s would mean that the oldest connection to each target would be reset approximately every 5 seconds (could happen 1 to 2 seconds later depending on traffic load) conn-ttl is disabled by default. For test purposes, this patch also implements a cn=monitor tree for back-asyncmeta, which allows to check the state of all target connections. It is only visible if monitoring is on for the database. ITS#10308 was logged for implementing a cn=monitor for asyncmeta, so it can also be closed if this MR is approved. This feature was requested by a customer.

Merge request reports

Loading