Opened 5 years ago

Last modified 12 months ago

#11430 assigned enhancement

Add new field last_running for "seen in a network status with the Running flag" in addition to last_seen for "seen in a network status"

Reported by: karsten Owned by: metrics-team
Priority: Medium Milestone:
Component: Metrics/Onionoo Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

There are two fields in relay details documents:

last_seen: UTC timestamp (YYYY-MM-DD hh:mm:ss) when this relay was last seen in a network status consensus.
first_seen: UTC timestamp (YYYY-MM-DD hh:mm:ss) when this relay was first seen in a network status consensus.

And there are similar two fields in bridge details documents:

last_seen: UTC timestamp (YYYY-MM-DD hh:mm:ss) when this bridge was last seen in a bridge network status.
first_seen: UTC timestamp (YYYY-MM-DD hh:mm:ss) when this bridge was first seen in a bridge network status.

Turns out that these definitions are confusing. We're not really interested in whether a relay or bridge was seen in a network status, but whether the directory authorities or the bridge authority thought it was running. So, whether the relay or bridge had the Running flag.

For relays this doesn't matter, because the consensus only contains running relays. (It will matter though once we add votes to Onionoo, because those include relays that don't have the Running flag.)

But for bridges it matters. Tonga includes all bridges in its network status that send it descriptors, including those without the Running flag.

Once we change the meaning of last_seen, we'll also stop giving out bridges that haven't been running for a week but that kept sending descriptors to Tonga. Should be fine.

This is going to fix #11410.

Child Tickets

Change History (4)

comment:1 Changed 5 years ago by karsten

Summary: Change the meaning of [first|last]_seen from "seen in a network status" to "seen in a network status with the Running flag"Add new field last_running for "seen in a network status with the Running flag" in addition to last_seen for "seen in a network status"

Turns out there are bridges which don't open their OR port on purpose, but only open their pluggable transport ports. These bridges are working fine and serving bridge clients, so we should list them.

New plan: leave the semantics of last_seen unchanged and add a new field last_running which Globe can use to calculate downtime.

comment:2 Changed 4 years ago by karsten

Type: defectenhancement

Sounds like an enhancement to me, not a defect.

comment:3 Changed 16 months ago by karsten

Owner: changed from karsten to metrics-team
Status: newassigned

Handing over to metrics-team, because I'm not currently working on this.

comment:4 Changed 12 months ago by teor

Severity: Normal

Set all open tickets without a severity to "Normal"

Note: See TracTickets for help on using tickets.