Send a request to warmup services that are not yet externally receiving traffic.
Send a request to warmup services that are not yet externally receiving traffic.
- com.twitter.finagle.http.Request to send
- route the request to the HttpMuxer (e.g. needed for twitter-server admin endpoints that do not start with /admin)
- number of times to send the request
- callback called for every response where assertions can be made. NOTE: be aware that failed assertions that throws Exceptions could prevent a server from restarting. This is generally when dependent services are unresponsive causing the warm-up request(s) to fail. As such, you should wrap your warm-up calls in these situations in a try/catch {}.