On Mar 11, 2013 10:41 PM, "Andy Parker" <
an...@puppetlabs.com (mailto:
an...@puppetlabs.com)> wrote:
> On Thu, Mar 7, 2013 at 1:39 PM, fatmcgav <
fatm...@gmail.com (mailto:
fatm...@gmail.com)> wrote:
> > Nan
> >
> > Cheers for confirming, I kinda guessed as much...
> >
> > Would it work if the module wasn't installed in the main lib dir, but in the
> > environment specific dirs?
> >
>
> No, there is a limitation in the way code gets loaded that makes
> environments not suited to keeping different implementations in
> different environments. To be safe and predictable you'll need to have
> different masters for each environment.
>
Or you could do some configuration so each worker process only does one compilation.
Which would involve splitting compilations and other requests like file_metadata to different pools of worker processes, the latter taking more then one request.
I haven't implemented this myself, but thinking about doing it soon.
Even having one master per environment isn't safe as some code isn't reloaded when it changes, for example functions.
>
> > Cheers
> > Gav
> >
> > On Mar 7, 2013 9:34 PM, "Nan Liu" <
nan...@gmail.com (mailto:
nan...@gmail.com)> wrote:
> >>
> >> On Thu, Mar 7, 2013 at 10:23 AM, devon <
devon....@gmail.com (mailto:
devon....@gmail.com)> wrote:
> >>>
> >>> I recall running into similar issues. I'm pretty sure that using
> >>> apache/passenger removed the need to restart the puppet master process, but
> >>> there was still a requirement of having the types/providers in the master's
> >>> module dir.
> >>>
> >>> Although, a quick search turned up
> >>>
http://projects.puppetlabs.com/issues/13858 - which looks to have solved the
> >>> later issue.
> >>
> >>
> >> Trying to use a custom type/provider is one thing, trying to use two
> >> different versions of a custom type/provider for development in two
> >> environment brings a whole other set of problems.
> >>
> >> Regarding the original issue, don't use environments for this workflow,
> >> you need another instances of the master running on a different port or
> >> server.
> >>
> >> Nan
> >>
> >> --
> >> You received this message because you are subscribed to a topic in the
> >> Google Groups "Puppet Developers" group.
> >> To unsubscribe from this topic, visit
> >>
https://groups.google.com/d/topic/puppet-dev/yPb8FxEbIoM/unsubscribe?hl=en.
> >> To unsubscribe from this group and all its topics, send an email to
> >>
puppet-dev+...@googlegroups.com (mailto:
puppet-dev%2Bunsu...@googlegroups.com).
> >>
> >> To post to this group, send email to
puppe...@googlegroups.com (mailto:
puppe...@googlegroups.com).
> > email to
puppet-dev+...@googlegroups.com (mailto:
puppet-dev%2Bunsu...@googlegroups.com).
> > To post to this group, send email to
puppe...@googlegroups.com (mailto:
puppe...@googlegroups.com).
> To unsubscribe from this group and stop receiving emails from it, send an email to
puppet-dev+...@googlegroups.com (mailto:
puppet-dev%2Bunsu...@googlegroups.com).
> To post to this group, send email to
puppe...@googlegroups.com (mailto:
puppe...@googlegroups.com).