Onionperf issueshttps://gitlab.torproject.org/tpo/network-health/metrics/onionperf/-/issues2022-10-31T19:47:40Zhttps://gitlab.torproject.org/tpo/network-health/metrics/onionperf/-/issues/40031Onionperf loses all state at midnight2022-10-31T19:47:40ZAna CusturaOnionperf loses all state at midnightWe have some experiments that keep or discard measurements based on the CBT state (whether the CBT is computed or not at the time of measurement). This is parsed from the logs at analysis time.
However, the logs are rotated at midnight....We have some experiments that keep or discard measurements based on the CBT state (whether the CBT is computed or not at the time of measurement). This is parsed from the logs at analysis time.
However, the logs are rotated at midnight. This means that if the CBT state changed in the logs for the previous day, this is not carried over - and measurements are discarded when they should not be. I've worked around this issue by making sure the instances which use guard rotation are started just after midnight, but a more robust idea is to keep some sort of state file for any values parsed from the logs that are used to filter measurements.