Opened 8 months ago

Last modified 5 weeks ago

#28667 new defect

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

Reported by: juga Owned by:
Priority: Medium Milestone: sbws: unspecified
Component: Core Tor/sbws Version:
Severity: Normal Keywords: tech-debt, refactor, scanner, relays
Cc: Actual Points:
Parent ID: Points: 1
Reviewer: Sponsor:

Description (last modified by teor)

The network status and descriptors are obtained every 5min https://gitweb.torproject.org/sbws.git/tree/sbws/lib/relaylist.py#n144.
Is there any reason for that?.
I think 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

Child Tickets

TicketStatusOwnerSummaryComponent
#29716closedChange the way the consensus is receivedCore Tor/sbws

Change History (8)

comment:1 Changed 8 months ago by teor

Milestone: sbws: unspecified

This is a useful refactor, but we can deploy sbws without it.

comment:2 Changed 4 months ago by juga

Cc: juga teor removed
Parent ID: #28684

Add the refactor parent.
Remove unneded CC.
Part of #28547 is also this.

comment:3 Changed 4 months ago by juga

Keywords: tech-debt refactor added

Add keywords

comment:4 Changed 4 months ago by juga

Points: 1

Set points at least to minimum

comment:5 Changed 4 months ago by juga

Keywords: scanner relays added

comment:6 Changed 7 weeks ago by teor

Parent ID: #28684#30733

We are actually keeping very stale descriptors, see #30733.

comment:7 Changed 5 weeks ago by teor

Description: modified (diff)

comment:8 Changed 5 weeks ago by teor

Parent ID: #30733

This is a major design change: we won't be doing it as a bugfix on 1.1.0.

Note: See TracTickets for help on using tickets.