← Back to team overview

dhis2-devs team mailing list archive

Re: Multiple DHIS2 instances on Windows

 

I am disoriented with this. So I have tried to set dhis2.home on web.xml and
the second war continues to use the DHIS2_HOME.

Setting tomcat to listen different ports means to waist machine resources
that I do not have and the second instance will be used for tests.

What is the recommendation now?

Caveman


On Fri, Aug 19, 2011 at 5:09 PM, Bob Jolliffe <bobjolliffe@xxxxxxxxx> wrote:

> On 19 August 2011 11:40, Knut Staring <knutst@xxxxxxxxx> wrote:
> > Thanks for all the input - it has been very useful. I have come to
> realize
> > that this current setup should be considered temporary (until the end of
> the
> > year) and thinking&resources should probably now rather be dedicated
> towards
> > setting up two national production machines by the end of the year (one
> for
> > the national repository/dashboard, one for the HMIS), and these should
> align
> > as much as feasible with the description in the link Ola sent:
> > http://dhis2.org/doc/snapshot/en/implementer/html/ch08.html#d5e415
>
> I see that this description stops short of describing the automatic
> startup and shutdown scripts.  Does anyone have some good examples to
> contribute?
>
> > In fact, we already also have a Linode, so far with only 4 GB, but that
> can
> > of course be increased as needed.
> > Knut
> >
> > On Fri, Aug 19, 2011 at 12:28 PM, Bob Jolliffe <bobjolliffe@xxxxxxxxx>
> > wrote:
> >>
> >> dhis-live is not really designed to be run as a service and I wouldn't
> >> really recommend trying.  Given that it has a user interaction element
> >> in the toolbar etc.  Running as a service is sort of the opposite of
> >> its defining use case which is to have a minimally configured
> >> clickable app to run on a desktop.
> >>
> >> I think there are lots of tips on the web regarding running tomcat as
> >> a service.  Also HISP India has some previous experience in running
> >> many tomcat's on a single windows server for different states.  Maybe
> >> Bharath or John might chip in how they have set up the service.
> >> Assuming that is, that they ran tomcat as a windows service.  Possibly
> >> they logged in and manually started and stopped them.
> >>
> >> I always find it interesting when looking at the merits of windows vs
> >> linux servers that the argument is usually given that windows is more
> >> familiar and the hurdle to move to linux is too great.  But when one
> >> scrapes the surface it seems that windows server skills are actually
> >> very scarce.  People think they understand windows server because it
> >> looks just like windows.  But you'll actually find much more
> >> knowledgeable support in our community for setting up a
> >> dhis+tomcat+postgres+ubuntu.  Just my two cents :-)
> >>
> >> Re displaying different text on hover, its not a bad idea, but not one
> >> that anyone is likely to prioritize immediately.  Maybe create a
> >> blueprint so the idea is not lost.  From a zero-configuration
> >> perspective there is not much to go on mind you.  We have the options
> >> of server port, database name or dhis home directory to distinguish
> >> between them, but using something mangled from those would at least
> >> provide something.  A more nicely named instance would require an
> >> additional config parameter or a small dialog on startup.
> >>
> >> Cheers
> >> Bob
> >>
> >> On 19 August 2011 11:06, Knut Staring <knutst@xxxxxxxxx> wrote:
> >> > On Thu, Aug 18, 2011 at 2:59 PM, Bob Jolliffe <bobjolliffe@xxxxxxxxx>
> >> > wrote:
> >> >>
> >> >> On 18 August 2011 13:56, Knut Staring <knutst@xxxxxxxxx> wrote:
> >> >> > On 8/18/11, Knut Staring <knutst@xxxxxxxxx> wrote:
> >> >> >> As Ola pointed out, the remaining and important issue is the
> >> >> >> automated
> >> >> >> startup after a power cut.
> >> >> >
> >> >> > In fact, this is really easy, just place shortcuts to the two
> >> >> > dhis2-live.exe files in the Windows Startup folder:
> >> >> >
> >> >> >
> >> >> >
> http://windows.microsoft.com/en-US/windows-vista/Run-a-program-automatically-when-Windows-starts
> >> >>
> >> >> Are talking about startup or logging in?
> >> >
> >> > Good point - that method does require the manual step of going to the
> >> > machine and logging in.
> >> >
> >> > Ideally, we would create our own three services that start
> automagically
> >> > on
> >> > boot. Found the following link, but have not tried it yet:
> >> > http://support.microsoft.com/kb/251192
> >> > Knut
> >> >>
> >> >> >
> >> >> > Knut
> >> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Cheers,
> >> > Knut Staring
> >> >
> >
> >
> >
> > --
> > Cheers,
> > Knut Staring
> >
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References