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.
- type of the com.twitter.scrooge.ThriftMethod
- com.twitter.scrooge.ThriftMethod to send request through
- com.twitter.scrooge.ThriftMethod.Args to send
- 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 {}.