Slow down restart rate for starterd
1 second delay is too short and results in cascading failures. Shutdown
isn't actually RT, so it can take down other parts of the system.
Change-Id: Iea364e05ef4547cb2a9755efbf98fb8d488d2f9d
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/starter/starterd_lib.cc b/aos/starter/starterd_lib.cc
index 1c32be3..526f1c8 100644
--- a/aos/starter/starterd_lib.cc
+++ b/aos/starter/starterd_lib.cc
@@ -156,8 +156,8 @@
void Application::QueueStart() {
status_ = aos::starter::State::WAITING;
- LOG(INFO) << "Restarting " << name_ << " in 1 second";
- restart_timer_->Setup(event_loop_->monotonic_now() + std::chrono::seconds(1));
+ LOG(INFO) << "Restarting " << name_ << " in 3 seconds";
+ restart_timer_->Setup(event_loop_->monotonic_now() + std::chrono::seconds(3));
start_timer_->Disable();
stop_timer_->Disable();
}