 (defn lb-healthy-retries
   "Number of times to retry when waiting for the LB to become healthy. Defn so it can be rebound w/ midje"
   []
-  (* 3 12))
+  10)
 
 (defaction wait-for-healthy []
   {:name "wait for nodes LB healthy"}

  (:use [clojure.tools.logging :only (infof)])
  (:use [circle.backend.action :only (defaction abort!)])
  (:use [circle.util.except :only (throw-if-not)])
  (:use [circle.model.build :only (build-log)])
  (:use [robert.bruce :only (try-try-again)])
  (:use [circle.api.client.system :only (graceful-shutdown)])
  (:require [circle.backend.load-balancer :as lb])
  (:require [circle.backend.ec2 :as ec2])

  (fn [build]
    (try
      (let [lb-name (-> @build :lb-name)
            _ (throw-if-not lb-name "build LB name must not be null. Is it in your DB?")
            instance-ids (-> @build :instance-ids)
            _ (doseq [i instance-ids
                      :let [az (ec2/get-availability-zone i)]]
