Record smaller stat timespan to reduce db load

This commit is contained in:
Dominik Heidler 2016-07-26 22:16:33 +02:00
parent 7845b007b5
commit 797b67ee40
2 changed files with 3 additions and 3 deletions

View File

@ -6,4 +6,4 @@ client = MongoClient()
db = client.freifunk
# create capped collection
db.create_collection("stats", capped=True, size=16*1024*1024, max=4320)
db.create_collection("stats", capped=True, size=10*1024*1024, max=4320)

View File

@ -20,8 +20,8 @@ CONFIG = {
"vpn_netif_l2tp": "l2tp2",
"vpn_netif_aux": "fffauxVPN",
"offline_threshold_minutes": 20,
"orphan_threshold_days": 100,
"router_stat_days": 15,
"orphan_threshold_days": 60,
"router_stat_days": 7,
}
def import_nodewatcher_xml(mac, xml):