In my experience about five seconds is doable for a _moderately_ complex startup, with more time-consuming initialization pushed off to a ScheduledExecutor.
On Friday, May 27, 2016 at 12:05:55 AM UTC-4, Ryan Kennedy wrote: > > That depends a lot on how you've configured your server and what Managed > instances you have running. There's the shutdownGracePeriod > <https://github.com/dropwizard/dropwizard/blob/49ea3ed32b01c3990f00a878d665f2cbf384d00f/dropwizard-core/src/main/java/io/dropwizard/server/AbstractServerFactory.java#L178-L185>, > > which is basically how long a server is allowed to take to shut down. This > defaults to 30 seconds. If you haven't adjusted that, I'd expect your > server to shut down in 30 seconds or less. > > As for starting, again that depends on your configuration and what you're > doing during initialize() and run(). I've seen barebones servers start in a > couple seconds at the most. I've seen other servers with bundles and > Managed objects take considerably longer to start (Yammer's BDB-based data > service could take minutes or more depending on what state BDB had been > left in during the prior execution). > > Ryan > > On Thu, May 26, 2016 at 11:55 AM, S Ahmed <[email protected] > <javascript:>> wrote: > >> Hi, >> >> Assuming you have pushed the jar to your server, how long should it >> usually take to stop the old jar and start the new one? >> >> >> Thanks. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "dropwizard-user" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
