taskcluster / ec2-manager

Mozilla Public License 2.0
2 stars 14 forks source link

API to dump and reset internal state #10

Open jhford opened 7 years ago

jhford commented 7 years ago

We should have an API method which deletes all information from the state database and repopulates it. This should be as simple as running the DELETE FROM instances; DELETE FROM spotrequests query immediately before running the HouseKeeper.sweep() method which repopulates it.

There should /v1/internal/clear-state, /v1/internal/reset-state and /v1/internal/force-housekeeping