Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #18852

Closed (moved)
(moved)
Open
Created Apr 20, 2016 by teor@teor

Directory mirrors should check accounting usage more frequently

After merging #12538 (moved) and #18616 (moved), Tor can wait up to 18 hours before checking whether the accounting usage has increase so much that we want to stop advertising DirPort and begindir support.

This is not great for relays with daily accounting periods.

I suggest we check every hour to see whether the result of router_should_be_directory_server() has changed. If so, we should mark_my_descriptor_dirty() with an appropriate message about deciding to advertise or stop advertising directory service support / DirPort.

This likely also means separating the calculation part of router_should_be_directory_server() from the logging, otherwise we will log duplicate messages each time we change our minds about our accounting.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking