 #
 # How to set metadata for list of web servers from admin node:
 #
-# time gcloud compute project-info add-metadata --metadata incoming_whitelist_hosts=smc1dc5,smc2dc5,smc3dc5,smc4dc5,smc5dc5,smc6dc5,smc1dc6,smc2dc6,smc3dc6,smc4dc6,smc5dc6,smc6dc6,devel1dc5
+# time gcloud compute project-info add-metadata --metadata incoming_whitelist_hosts=smc0-us-central1-c,smc1-us-central1-c,smc2-us-central1-c,smc0-europe-west1-d,smc1-europe-west1-d,smc2-europe-west1-d,smc1dc5,smc2dc5,smc3dc5,smc4dc5,smc5dc5,smc6dc5,smc1dc6,smc2dc6,smc3dc6,smc4dc6,smc5dc6,smc6dc6,devel1dc5
 #
 init_firewall = (cb) ->
     dbg = (m) -> winston.debug("init_firewall: #{m}")

                misc.retry_until_success
                    f           : f
                    start_delay : 500
                    max_time    : 15000
                    cb          : (err) =>
                        if err
                            m = "failed to get status -- project not working on #{@host} -- initiating automatic move to a new node -- #{err}"

###


# obviously don't want to trigger this too quickly, since it may mean file loss.
AUTOMATIC_FAILOVER_TIME_S = 30

SERVER_STATUS_TIMEOUT_S = 5  # 5 seconds

