diff --git a/fe/http.go b/fe/http.go index f73344856f70191ad5cabbe85fdf6d5df319a9c1..3383ec69d7992913b23f163891061a5f4dc3d40d 100644 --- a/fe/http.go +++ b/fe/http.go @@ -259,6 +259,10 @@ func (h *HttpRedirector) serveStatusPage(w http.ResponseWriter, r *http.Request) // Run starts the HTTP server on the given addr. Does not return. func (h *HttpRedirector) Run(addr, staticDir, templateDir string) { + // Start the background goroutine that updates the + // LoadBalancer asynchronously. + go h.lbUpdater() + h.template = template.Must( template.ParseGlob( filepath.Join(templateDir, "*.html")))