Opened 7 years ago

Closed 7 years ago

#6329 closed enhancement (implemented)

Write script to aggregate relay weights by country, AS, or relay family

Reported by: karsten Owned by: karsten
Priority: Medium Milestone:
Component: Metrics Utilities Version:
Severity: Keywords:
Cc: lunar, gsathya Actual Points:
Parent ID: #6460 Points:
Reviewer: Sponsor:

Description

lunar is interested in adding pie charts about relays/capacity per AS network and similar statistics to Atlas. In order to do this, Onionoo should provide these data in a convenient way. These data would be based on the very last consensus and would not incorporate any history.

We should probably wait for the Python Onionoo to implement this and not extend the Java Onionoo. Setting priority to minor.

Child Tickets

Attachments (1)

stats.py (662 bytes) - added by lunar 7 years ago.
PoC to get percentages of consensus weight of running relays by country

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by lunar

Attachment: stats.py added

PoC to get percentages of consensus weight of running relays by country

comment:2 Changed 7 years ago by karsten

Parent ID: #6460

This ticket is related to metrics to measure the safety of the Tor network, too.

comment:3 Changed 7 years ago by karsten

Component: OnionooMetrics Utilities
Owner: set to karsten
Priority: minornormal
Status: newassigned
Summary: Make Onionoo provide aggregate data based on the current consensusWrite script to aggregate relay weights by country, AS, or relay family

The original ticket description isn't as accurate anymore. We have a script that downloads Onionoo's details document and aggregates weights locally. There's no need to add another document type to Onionoo only to provide the same data in a more compact format. Changing the description to something that focuses on the script using Onionoo's existing data. Also changing the component to something more general and setting priority back to normal.

The "relay family" part is still in progress. There's a patch on tor-relays that needs reviewing, and maybe Onionoo needs a new field to facilitate filtering/aggregating by relay family.

Once the relay family part is implemented, we'll probably want to add the script's functionality to Atlas. But that requires a new ticket then.

comment:4 Changed 7 years ago by gsathya

Cc: gsathya added

comment:5 in reply to:  3 Changed 7 years ago by karsten

Resolution: implemented
Status: assignedclosed

Replying to karsten:

The "relay family" part is still in progress. There's a patch on tor-relays that needs reviewing, and maybe Onionoo needs a new field to facilitate filtering/aggregating by relay family.

There's #6662 for grouping by family now. Turns out it's not trivial to group by family, so we'll have to agree on one of a few definitions. That's an argument against adding a new field to Onionoo, and a reason to put this in whichever Onionoo client wants to group by relay family.

Once the relay family part is implemented, we'll probably want to add the script's functionality to Atlas. But that requires a new ticket then.

Instead of extending Atlas, we created Compass as web interface for this script.

That concludes this ticket. Closing.

Note: See TracTickets for help on using tickets.