Speed up cluster startup in GCE

This commit is contained in:
wojtekt 2018-06-05 15:12:02 +02:00
parent 7496c64b46
commit e50c0b904f

View File

@ -93,6 +93,10 @@ func (s *sourceFile) run() {
listTicker := time.NewTicker(s.period)
go func() {
// Read path immediately to speed up startup.
if err := s.listConfig(); err != nil {
glog.Errorf("Unable to read config path %q: %v", s.path, err)
}
for {
select {
case <-listTicker.C: