English 中文(简体)
Two Hudson Masters on the same Windows Server
原标题:

I want to setup two Hudson Masters on the same Hardware. This will make administering Hudson easier, since both servers are used by two different (and independent) teams.

So far I tried to install one server as a service. I verified the installation and it is running ok. I than copied the installation into another path and changed the service information (different service Name and description) and the httpPort. I then create the service, once using sc.exe create and once using hudson.exe install. In both cases the server started. However, the configuration page acted goofy. So this approach is either not working at all or I missed another configuration file.

Does anyone has an idea how to accomplish this?

最佳回答

I tried the same approach as documented in the question but avoided the copying of the original installation. So I created two folders and put a copy of hudson.war in it. Then I performed the following steps for both folders.

  1. Start Hudson with java -jar hudson.war
  2. Installed Hudson as a service using the web UI
  3. went into the Hudson Base Dir and ran hudson uninstall
  4. modified the port and the Service information in hudson.xml
  5. installed the service through command line hudson install

Now I have two services and the first quick test looks promising.

问题回答

May I suggest:

  1. run two instances of Tomcat
  2. have each Tomcat running on its own HTTP port
  3. deploy HUDSON.WAR in each Tomcat
  4. set CATALINA_OPTS for each Tomcat to point to a different HUDSON_HOME




相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签