aboutsummaryrefslogtreecommitdiff
path: root/proposals/108-mtbf-based-stability.txt
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-06-26 21:48:42 +0000
committerNick Mathewson <nickm@torproject.org>2007-06-26 21:48:42 +0000
commit2e1b4a4db03b41f5faaad9675587e1a54c414160 (patch)
tree821ad26d080f8f31fb68ba8eecc217883f779271 /proposals/108-mtbf-based-stability.txt
parent09ffc85a97fd4a3ad5eea9b36622269c7884b7b3 (diff)
downloadtorspec-2e1b4a4db03b41f5faaad9675587e1a54c414160.tar.gz
torspec-2e1b4a4db03b41f5faaad9675587e1a54c414160.zip
r13524@catbus: nickm | 2007-06-26 17:48:39 -0400
Update 108 based on conversation with Roger. I think this is the version to build. svn:r10684
Diffstat (limited to 'proposals/108-mtbf-based-stability.txt')
-rw-r--r--proposals/108-mtbf-based-stability.txt34
1 files changed, 19 insertions, 15 deletions
diff --git a/proposals/108-mtbf-based-stability.txt b/proposals/108-mtbf-based-stability.txt
index 597dded..964fd53 100644
--- a/proposals/108-mtbf-based-stability.txt
+++ b/proposals/108-mtbf-based-stability.txt
@@ -29,22 +29,16 @@ Spec changes:
known to drop circuits stupidly. (0.1.1.10-alpha through 0.1.1.16-rc
are stupid this way.)
- Stability shall be defined as the mean length of the runs observed by a
- given directory authority. A run begins when an authority decides
- that the server is Running, and ends when the authority decides that
- the server is not Running. In-progress runs are counted when
- measuring Stability.
+ Stability shall be defined as the weighted mean length of the runs
+ observed by a given directory authority. A run begins when an authority
+ decides that the server is Running, and ends when the authority decides
+ that the server is not Running. In-progress runs are counted when
+ measuring Stability. When calculating the mean, runs are weighted by
+ $\alpha ^ t$, where $t$ is time elapsed since the end of the run, and
+ $0 < \alpha < 1$. Time when an authority is down do not count to the
+ length of the run.
-Issues:
-
- How do you define a clipped MTBF? If the current month begins with one
- day at the end of a one-year uptime, and then has 29 days of uptime, do we
- average one day and 29 days? Or do we average one year and 29 days? Or
- take 29 days on its own and discard the year?
-
- Surely somebody has done this kinds of thing before.
-
-Alternative:
+Rejected Alternative:
"A router's Stability shall be defined as the sum of $\alpha ^ d$ for every
$d$ such that the router was not observed to be unavailable $d$ days ago."
@@ -82,3 +76,13 @@ Implementation:
For now, the easiest way to store this information at authorities
would probably be in some kind of periodically flushed flat file.
Later, we could move to Berkeley db or something if we really had to.
+
+ For each router, an authority will need to store:
+ The router ID.
+ Whether the router is up.
+ The time when the current run started, if the router is up.
+ The weighted sum length of all previous runs.
+ The time at which the weighted sum length was last weighted down.
+
+ Servers should probe at random intervals to test whether servers are
+ running.