Quantcast

Master slave problem

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Master slave problem

varghese


  I am having one jenkins running on tomcat6. i wanted to have my web application to run on differenct tomcat6 instance. For that i need a master slave approach?
How to run jenkins on one tomcat as master and application as slave on another tomcat?

Please reply..
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Master slave problem

varghese


Some body please tell about this whether i can use master and slave on same machine?. when i try to run my application and jenkins on same tomcat..database aceess gets locked.
So it's affects my build process..so i want to put jenkin and application in differenct tomcat. for that i need any master slave?..what is the approach for it?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: Master slave problem

Mandeville, Rob

You can certainly have several slaves running on the same host as the Jenkins server, but it sounds like something else is going on.

 

Is your slave trying to do things to the Tomcat instance that your server is on?  Whether that will work or not depends on Tomcat more than it does on Jenkins.

 

The slave itself doesn’t run on a Tomcat instance, it’s a standalone JVM.  You can give it a job to do something to a Tomcat instance, but that’s something else entirely.

 

What database is getting locked?  Neither Tomcat nor Jenkins have a database in the relational sense of the word.

 

Finally, if you think that the problem is that your slave is interfering with the Tomcat instance that your Jenkins server is on, consider moving your Jenkins server.  The page at <a href="https://wiki.jenkins-ci.org/display/JENKINS/Starting&#43;and&#43;Accessing&#43;Jenkins">https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins shows you how to launch Jenkins as a standalone server (it ships with its own winstone app server); all you have to do is move either your Tomcat instance or Jenkins off of port 8080.

 

--Rob

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Varghese Renny
Sent: Wednesday, June 27, 2012 6:38 AM
To: [hidden email]
Subject: Re: Master slave problem

 



Some body please tell about this whether i can use master and slave on same machine?. when i try to run my application and jenkins on same tomcat..database aceess gets locked.
So it's affects my build process..so i want to put jenkin and application in differenct tomcat. for that i need any master slave?..what is the approach for it?

The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle & Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle & Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Master slave problem

varghese
i wil explain it..
i have Openbravo application(web) and jenkins running on same tomcat.
While i am doing build job , it will access postgres database..that time build will fail due to session on hold.
This occur because application internally accessing database..eventually my build get failed.

So what i think is run jenkins on one tomcat and application on other tomcat.
my question is jenkin on one tomcat as master which is doing build task and only for application which use different tomcat as slave??

i don't whether i needed to include master slave concept to solve this problem?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Master slave problem

Les Mikesell
On Wed, Jun 27, 2012 at 7:34 AM, Varghese Renny
<[hidden email]> wrote:

> i wil explain it..
> i have Openbravo application(web) and jenkins running on same tomcat.
> While i am doing build job , it will access postgres database..that time
> build will fail due to session on hold.
> This occur because application internally accessing database..eventually my
> build get failed.
>
> So what i think is run jenkins on one tomcat and application on other
> tomcat.
> my question is jenkin on one tomcat as master which is doing build task and
> only for application which use different tomcat as slave??
>
> i don't whether i needed to include master slave concept to solve this
> problem?


The question won't make sense to anyone else because your postgress
database access must be something specific to your build job and not
related to either jenkins or the web container.   Postgres normally
allows concurrent access, so if it is blocking you it is something
specific to the way you are using it, and probably not related to
which process is connecting to it.

Also, jenkins slaves aren't normally associated with a tomcat instance
at all, so again that must be something within your build job. But, it
is simple enough to use jenkins with the embedded winstone if you
think tomcat is a problem.

--
   Les Mikesell
     [hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Master slave problem

Sami Tikka
In reply to this post by varghese
It probably makes sense to run Jenkins in a separate servlet container and not inside the same container you use for your testing. Like has been pointed out already, you do not even need tomcat for running Jenkins because Jenkins can be run with just: java -jar jenkins.war

-- Sami

Varghese Renny <[hidden email]> kirjoitti 27.6.2012 kello 15.34:

> i wil explain it..
> i have Openbravo application(web) and jenkins running on same tomcat.
> While i am doing build job , it will access postgres database..that time build will fail due to session on hold.
> This occur because application internally accessing database..eventually my build get failed.
>
> So what i think is run jenkins on one tomcat and application on other tomcat.
> my question is jenkin on one tomcat as master which is doing build task and only for application which use different tomcat as slave??
>
> i don't whether i needed to include master slave concept to solve this problem?
Loading...