[metrics-bugs] #28137 [Metrics/Statistics]: Modify "Total consensus weights across bandwidth authorities" graph to only include relays that end up in the consensus

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Nov 22 13:29:46 UTC 2018


#28137: Modify "Total consensus weights across bandwidth authorities" graph to only
include relays that end up in the consensus
--------------------------------+------------------------------
 Reporter:  karsten             |          Owner:  metrics-team
     Type:  enhancement         |         Status:  new
 Priority:  Medium              |      Milestone:
Component:  Metrics/Statistics  |        Version:
 Severity:  Normal              |     Resolution:
 Keywords:                      |  Actual Points:
Parent ID:                      |         Points:
 Reviewer:                      |        Sponsor:
--------------------------------+------------------------------

Comment (by karsten):

 Replying to [comment:6 teor]:
 > Can you do each consensus separately?

 I think that's a database optimization question in this case. I suspect
 that we're somehow matching vote entries with ''all'' consensus entries in
 the database, not just those entries that are connected via the same
 valid-after time, at least in an intermediate step. Maybe we'd have to do
 something with subselects here in order to assist the database.

 > If this is going to take a lot of effort, then don't worry about it: the
 difference isn't important in this case.

 Right.

 > > The red line is what's currently on the Tor Metrics website: it
 contains measured bandwidths of all relays in a vote, regardless of
 whether a relay made it into the consensus. The blue line only contains
 those relays in a vote that also appeared in the consensus. I'd say that
 the difference is almost negligible.
 >
 > I agree: we could account for it with some documentation.

 Okay.

 > > What I'd like to try out is add a third line "Running in vote", which
 would at least kick out relays in a vote that the authority didn't find to
 be running. I'd expect that line to show up between red and blue. However,
 a relay that doesn't have the Running flag in one vote can still go into
 the consensus if the others think it's running. And a relay that has the
 Running flag from one authority can still not show up in the consensus if
 the others disagree. So, I'm unclear whether this really helps. Worth
 trying, and a much smaller change, because it doesn't require us to match
 vote entries with consensus entries.
 >
 > Let's see the results for Running, then decide.

 It's here:

 [[Image(totalcw-2018-11-22a.png, 500px)]]

 I had to increase line size and make lines transparent in order to make
 the green line visible at all: it almost always overlaps with the blue
 line. One exception is maatuska at the beginning of November; possibly
 related to its own reachability testing not working very well? Another
 minor exception is Faravahar on the 4th and 10th, though the difference
 there is really small.

 I tend towards green, because it adds way less code and delivers basically
 the same result.

 I'd also break down vote totals by Guard/Exit flag combination (#28328).
 Note, however, that these Guard and Exit flags would also be taken from
 the vote, not from the consensus. Mostly a documentation issue again.

 And I'd include consensus totals (#28352). Just mentioning those for
 completeness.

 How does this sound?

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


More information about the metrics-bugs mailing list