[lug] Docker

George S. georges at mhsoftware.com
Tue Jul 24 17:47:48 MDT 2018



On 7/24/2018 11:20 AM, Bear Giles wrote:
> ​The image starts quickly, it's the services on the image that may 
> take a while to come up. Single node Hadoop clusters may take several 
> minutes to fully launch.​ Ditto appservers (jboss, tomcat) with a fair 
> number of webapps. The parameter is tunable but 60s is the default.

An untuned Tomcat installation usually takes on the order of 30 seconds 
or so to come up. They do a lot of jar scanning for annotations.

Spring boot can vary, but 10 seconds is the fastest I've ever seen.

>
> If you're launching a webservice there's an alternative - the library 
> can hit a REST call wait for it to come up instead of waiting a blind 
> amount of time. If it becomes a problem we can probably fork the 
> library and do something similar with other services, e.g., not return 
> until the library can establish a JDBC connection instead of waiting 
> for a fixed amount of time.
>
> On Tue, Jul 24, 2018 at 10:24 AM, Zan Lynx <zlynx at acm.org 
> <mailto:zlynx at acm.org>> wrote:
>
>     On 07/24/2018 06:37 AM, Bear Giles wrote:
>     > Maintaining a docker image is much more manageable. Unfortunately
>     > there's nearly always a 60s delay to allow time for the server
>     to come
>     > up. We need to look into modifying our tests so they can run in
>     parallel.)
>
>     There's something very wrong in your Docker storage setup. You need to
>     be using aufs or btrfs. Some filesystem that does overlays or
>     snapshots.
>     60s sounds like it's doing file copies.
>
>     We do a lot of Docker where I work and starting a docker container
>     that's already downloaded is *instant*. No noticeable delay at all.
>
>     -- 
>                     Knowledge is Power -- Power Corrupts
>                             Study Hard -- Be Evil
>     _______________________________________________
>     Web Page: http://lug.boulder.co.us
>     Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>     <http://lists.lug.boulder.co.us/mailman/listinfo/lug>
>     Join us on IRC: irc.hackingsociety.org
>     <http://irc.hackingsociety.org> port=6667 channel=#hackingsociety
>
>
>
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety

-- 
George S.
*MH Software, Inc.*
Voice: 303 438 9585
http://www.mhsoftware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20180724/c79316d4/attachment.html>


More information about the LUG mailing list