Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S sbws
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 5
    • Issues 5
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Network Health
  • sbws
  • Issues
  • #28667
Closed
Open
Created Nov 29, 2018 by juga@jugaMaintainer

Obtain the new descriptors and network status documents by signals instead of every hour

The network status and descriptors are obtained every hour https://gitlab.torproject.org/tpo/network-health/sbws/-/blob/maint-1.1/sbws/lib/relaylist.py#L308.

Torflow obtain them as they come.

It could be done with stem using:

controller.add_event_listener(
            listener_fn, EventType.NS, EventType.NEWDESC)

Also, instead overwriting those values, Relay could have a dictionary (key would be the timestamp) with a subset of the attributes of document, in case we might need to calculate median/mean of those attributes

Edit: fix typo, fix that it was changed to 1h, not 5min and actual link to the code.

Edited Mar 12, 2021 by juga
Assignee
Assign to
Time tracking