Waziup / WaziCloud

WAZIUP Cloud and local platform
31 stars 28 forks source link

Garbage collection for unused sensors and data #200

Open cdupont opened 5 years ago

cdupont commented 5 years ago

This issue is for discussing the data policy regarding cleaning the database from stale sensors. The idea is to remove the sensors that was created just for experimenting, Some data are not valuable, such as sensors created from the dashboard but without any data and sensors created for a hackathon.

Possible policies for deleting stale/unused sensors:

  1. sensors without data: delete 1 month after creation
  2. guest sensors: delete after 6 month (?)

For 1., a sensor without any data is never valuable as it is easy too re-create. So it is safe to delete. For 2., guest sensors are created by unconfigured/default gateways. I'm not sure we should delete them because the data might still be valuable. E.g. Waziup pilots are still using guest account right now.

cdupont commented 5 years ago

@CongducPham @ARBISWAS