Record smaller stat timespan to reduce db load
This commit is contained in:
parent
7845b007b5
commit
797b67ee40
|
@ -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)
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue