Yes, I got that idea.  But, since I am new to puppet, its bit
confusing for me about where should I install that library, how to
make puppetmaster initiate the connection at the start.  If there is
some developer documentation, that would be really helpful.  I did not
find the developer documentation in http://reductivelabs.com.

On Oct 11, 6:24 am, Luke Kanies <[email protected]> wrote:
> If that's what you're doing, then I recommend creating a library that  
> the function uses to do its work, and that library would do the  
> connection pooling.
>
> Of course, this will only really work if the compiling is happening on  
> the server -- if it's on the client, then each client will still have  
> its own db connection.
>
> On Oct 9, 2009, at 8:17 PM, Sunil_mlec wrote:
>
>
>
>
>
> > Hi Luke,
>
> > Thanks for your reply.  I have written a puppet function which
> > connects to a database and executes queries and returns results.  All
> > puppet clients sends queries via puppet function to puppet master.
> > The puppetmaster, connects to the database, and returns the results.
> > But, the connection to a database needs to be done only for one time
> > (for the first puppet client).  Once the connection is established,
> > the same connection should be re-used to execute queries from
> > different clients.
> > So basically, all the puppet clients should be served from a single
> > database connection.
>
> > On Oct 9, 10:30 pm, Luke Kanies <[email protected]> wrote:
> >> On Oct 9, 2009, at 12:43 AM, Sunil_mlec wrote:
>
> >>> Hi all,
>
> >>> I am new to puppet development.  I have a requirement in which I  
> >>> need
> >>> to share a database connection between all the clients connecting  
> >>> to a
> >>> single puppet master.  Could someone please point me out in the  
> >>> right
> >>> direction to do so.  Perhaps, a short example will help.
>
> >> I don't understand what you mean here -- you want all of the agents  
> >> to
> >> share a socket or something?
>
> >> --
> >> The trouble with the rat race is that even if you win, you're still a
> >> rat. -- Lily Tomlin
> >> ---------------------------------------------------------------------
> >> Luke Kanies |http://reductivelabs.com|http://madstop.com
>
> --
> 'Tis better to be silent and be thought a fool, than to speak and
> remove all doubt. --Abraham Lincoln
> ---------------------------------------------------------------------
> Luke Kanies |http://reductivelabs.com|http://madstop.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to