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
  • #17625

Closed (moved)
(moved)
Open
Created Nov 17, 2015 by teor@teor

Reduce initial and ongoing RendPostPeriod for SOS

Initial descriptor uploads

Hidden services hide their start times by uploading their first descriptor after: now + rendinitialpostdelay + crypto_rand_int(2*rendpostperiod); which is currently 30 + rand(2*600) seconds minimum.

A RSOS doesn't need to hide its startup time, but should avoid a thundering herd. So we could change it to: now + rendinitialpostdelay + crypto_rand_int(1*rendpostperiod); (Or perhaps some fraction of RendPostPeriod, or perhaps a constant like 60 seconds.)

Ongoing descriptor uploads

If a RSOS site implements failover or high availability, it may need to post descriptors more often than the current minimum RendPostPeriod of 10 minutes.

For example, if a RSOS goes down, and another instance should replace it within 30 seconds, it would need: 600/30 = 20 redundant instances

Instead, if we want a small number of instances, say 4: 30 * 4 = 120 second RendPostPeriod. (This also helps with the initial post period above.)

This is perhaps mitigated by multiple HSDirs, with some having descriptors from one replica, and some from the other. (But this is not guaranteed - one replica could have just uploaded all the HSDirs, then gone down.)

This also needs a proposal update.

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