Hi Mohan,

If you mean that you want to have two different orion instances running,
you just have to copy the configuration files to some other directory,
modify the paths and ports appropriately so they don't collide and then
start orion with the option "-config [NEW_CONFIG_DIRECTORY]/server.xml"
where [NEW_CONFIG_DIRECTORY] must be substituted with the directory
where you put your new configuration files.

We have about 9 different instances running with 1-2 web applications
per instance. Why? Because this way when we have to upgrade an
application and we have to tinker with one of the instances, we are
pretty sure nothing is going to happen to the other applications. We
also have different logging directories per instance, blah, blah so
debugging is easier. Now that hot-deployment is becoming a reality, we
might start gathering applications in common instances but in the mean
time, we feel safer with separate instances and development and
production should definitely be in different ones.
The biggest drawback of this solution is that you need more HTTP ports
and the only standard one is 80. We have solved it by using an Apache
instance as a proxy in the 80 port and redirect from there to the
appropriate host/port. This also allows us to show an appropriate
"Application is being manteined" message automatically when an instance
fails, instead of the browser answering "server could be down or not
responding". Another added benefit is that we can distribute our
applications among different hosts just by changing the proxy
configuration: no html links have to be changed, no users have to be
told "the URL was X but now is Y". We know that this means a second trip
but as we proxy all non-dynamic content in the Apache server and our
problem is not traffic and speed but number of applications and
flexibility, then it's a price we are willing to pay.
Just my 2c,
Dan



mohan krishna wrote:
> 
> Hello,
> I am interested to run orion on multiple ports...
> 
> Consider the following scenario :
> 
> There is only one single server for production and development.
> Production sites are represented by virtual hosts, each one runs a
> single web site. Each sites of these only runs it's own "default" web
> application.
> Development is handled by default web site which runs under port 8080.
> Now i want to run one site on 8080 and other one on different port say 80.
> What are the things i have to do to achieve this....
> 
> Any input would be greatly appreciated
> Thanks
> Mohan Krishna

Reply via email to