Opened 5 years ago

Last modified 3 years ago

#16636 needs_information enhancement

Add AccountingSetBytesRead/Written

Reported by: teor Owned by:
Priority: Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: tor-relay, accounting needs-design, lorax, easy tor-control
Cc: Actual Points:
Parent ID: Points: medium
Reviewer: Sponsor:


A relay operator asked for the ability to reset the state file's AccountingBytesReadInInterval and AccountingBytesWrittenInInterval values.

While a workaround is to edit or delete the state file, perhaps command-line arguments AccountingSetRead and AccountingSetWritten could be useful.

See also #15989 for AccountingRule in and out, as well as the AccountingEnableDirPort override.

Child Tickets

Change History (7)

comment:1 Changed 5 years ago by teor

See for a user request for AccountingSetRead 0 and AccountingSetWritten 0.

comment:2 Changed 5 years ago by nickm

Keywords: needs-design added
Points: medium
Severity: Normal
Status: newneeds_information

This seems more like a controller thing to me? I don't like having config arguments that you would never actually want to put in your config file. (Or do I misunderstand?)

comment:3 Changed 5 years ago by teor

You're right, I don't think a torrc config is the best way to do this.

There's an easy workaround for resetting the accounting bytes: "remove your state file".
As for setting them to a particular value, that's getting rather obscure, but "edit your state file" works.

comment:4 Changed 4 years ago by teor

Milestone: Tor: 0.2.???Tor: 0.3.???

Milestone renamed

comment:5 Changed 4 years ago by nickm

Keywords: tor-03-unspecified-201612 added
Milestone: Tor: 0.3.???Tor: unspecified

Finally admitting that 0.3.??? was a euphemism for Tor: unspecified all along.

comment:6 Changed 3 years ago by nickm

Keywords: tor-03-unspecified-201612 removed

Remove an old triaging keyword.

comment:7 Changed 3 years ago by nickm

Keywords: accounting tor-control added
Priority: MediumLow
Note: See TracTickets for help on using tickets.