mass commit. updates for the new db schema in findbad, findbadpcu, nodequery,
[monitor.git] / monitor / const.py
diff --git a/monitor/const.py b/monitor/const.py
new file mode 100644 (file)
index 0000000..9495c0a
--- /dev/null
@@ -0,0 +1,25 @@
+
+TECH=1
+PI=2
+USER=4
+ADMIN=8
+
+TECHEMAIL="tech-%s@sites.planet-lab.org"
+PIEMAIL="pi-%s@sites.planet-lab.org"
+SLICEMAIL="%s@slices.planet-lab.org"
+PLCEMAIL="support@planet-lab.org"
+
+#Thresholds (DAYS)
+SPERMIN = 60
+SPERHOUR = 60*60
+SPERDAY = 86400
+PITHRESH = 7 * SPERDAY
+SLICETHRESH = 7 * SPERDAY
+# Days before attempting rins again
+RINSTHRESH = 5 * SPERDAY
+
+# Days before calling the node dead.
+DEADTHRESH = 30 * SPERDAY
+# Minimum number of nodes up before squeezing
+MINUP = 2
+