[tor-bugs] #19776 [Metrics/CollecTor]: Make minor improvements to scheduler

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jul 28 18:46:38 UTC 2016


#19776: Make minor improvements to scheduler
-----------------------------------+-----------------------------
     Reporter:  karsten            |      Owner:
         Type:  enhancement        |     Status:  new
     Priority:  Medium             |  Milestone:  CollecTor 1.0.0
    Component:  Metrics/CollecTor  |    Version:
     Severity:  Normal             |   Keywords:
Actual Points:                     |  Parent ID:
       Points:                     |   Reviewer:
      Sponsor:                     |
-----------------------------------+-----------------------------
 While running some local performance tests of the bridge descriptor
 sanitizer I noticed a few possible improvements:

  - I noticed that the default configuration changed some paths, like, move
 multiple directories under `out/`.  Can we undo that change, so that
 CollecTor uses the exact same paths in the new default configuration as
 previously?

  - The `recent/` directory is not truly configurable.  I can change that
 along with the other bugfixes to the bridge descriptor sanitizer, if you
 want.

  - It seems like the scheduler calculates how many minutes it needs to
 sleep from the current system time to start the next run with `x` minutes
 offset from the period of `y` minutes.  Example: system time is
 20:43:15.123, period is 60 minutes, offset is 44 minutes, the scheduler
 will start the next run at 20:44:15.123, but really it should start it at
 20:44:00.000.

  - Can we add a mode to run a given module immediately, skipping the
 scheduler entirely?  That would be quite useful for testing, batch-
 processing, and maybe other purposes.  Onionoo has such a mode with
 `--single-run` (or however it's called).  But please don't break the
 design too much to make this work, if it's too ugly, skip this.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/19776>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list