In the simple testing I did I found that they were an order of magnitude
faster. But in general these are requests Puppet only does on the first run
for that host, so it won't be a big speedup of Puppet in general. More like
cutting 0.5 seconds from the first run or so :)

But in our case we wanted to update the CRL when it had changed on the
server, so this allowed us to have a curl with the -z option run before
puppet that downloads it only if it is changed. Puppet itself doesn't
support caching headers, but Apache does of course when serving static
files.

I can see if I can make a proper benchmark though.


On 15 January 2014 09:48, Matthias Saou <[email protected]> wrote:

> On Tue, 14 Jan 2014 16:31:40 +0100
> Erik Dalén <[email protected]> wrote:
>
> > I did a bit of a hack to serve the static files in the Puppet CA
> > directly using Apache instead of going through the Ruby layer and
> > indirector. It speeds things up quite a lot and also allows use of
> > HTTP caching headers like IfModifiedSince etc.
> >
> > So here's some instructions on how to do it:
> > https://gist.github.com/dalen/8419913
> >
> > Works for me, but no guarantees etc :)
>
> This is a simple and interesting change. Care to share some numbers
> about the "speeds things up quite a bit" part? :-)
>
> Matthias
>
> --
>             Matthias Saou                  ██          ██
>                                              ██      ██
> Web: http://matthias.saou.eu/              ██████████████
> Mail/XMPP:  [email protected]             ████  ██████  ████
>                                        ██████████████████████
> GPG: 4096R/E755CC63                    ██  ██████████████  ██
>      8D91 7E2E F048 9C9C 46AF          ██  ██          ██  ██
>      21A9 7A51 7B82 E755 CC63                ████  ████
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/20140115094835.28088937%40r2d2.marmotte.net
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Erik Dalén

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAAAzDLej1Xjr-QHwpFcD3QVwxJyL7KbpeDox3A7jT9NAUVsi1w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to