Merge pull request #65692 from wojtek-t/speedup_cluster_startup

Automatic merge from submit-queue (batch tested with PRs 65648, 65700, 64976, 65692, 65667). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Read manifest directory in Kubelet immediately to speed up cluster startup in GCE

This eliminated unnecessary 20s on cluster startup.
This commit is contained in:
Kubernetes Submit Queue 2018-07-02 19:46:19 -07:00 committed by GitHub
commit 81269b3716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: