|
From: Martin, J. S. <Jam...@di...> - 2001-07-26 13:16:24
|
The reason I bring this up is because if you haev 2 Web servers pointing to a database server and the Web Servers are sitting behind a Cisco Load Director (load balancing hardware). It seems as though it's almost an oversite in the code that the absoulte and relative dirs are hardcoded into the database. The absolute and root dirs should be generated by the perl scripts on the web server based on either a config file or generated by the "hostname" command. I've tried hardcoding the Utility.pm module to get this to work, as far as I can tell a constants hash is created with all the variables pulled from the vars table. I tried to modify the Utility.pm-- there is a subroutine called root2abs in which it retrieves the rootdir from the database and makes it into the relative dir--instead of it pulling it out of the DB I hardcoded it to the 2nd webserver and it still would not take. If I could just find where exactly that the code is pulling that information from the DB, I could hard code it on the 2nd machine so that it would work. Right now my crappy solution was to start the first server, modify the rootdir variable in the database to point to the 2nd server, and then start the 2nd server. It seems to work that way, but it's not favorable for obvious reasons. James -----Original Message----- From: Alvaro del Castillo [mailto:ac...@ba...] Sent: Thursday, July 26, 2001 5:00 AM To: sla...@li... Subject: Re: [Slashcode-general] Multiple Slash Servers El d_ 26 Jul 2001 10:47:57 +0300, Alessio Bragadini escribi_ > Alvaro del Castillo wrote: > > > I think that currently is not possible to have 2 different web server > > with different names pulling the data from the same database. Maybe you > > can use other schemas to share the load between the servers, but the > > name for the web server has to be the same, I think. > > Hhmmm... why not? In your DBIx::Password configuration, you could define > two different virtual users that uses the same connect string, username, > and password. As much as Slash is concerned, they are different > databases, but in fact they update the same tables. > > This could expose you to some race conditions because of the > symultaneous (spelling?!) access from two different engines, anyway - > but that's something that needs to be investigated in the code. Uhmm, yes, you are right. I haven't think about that. But you have the problemas that Martin has shown with the domain name, the cookie domain also ... Cheers -- Alvaro > -- > Alessio F. Bragadini al...@al... > APL Financial Services http://village.albourne.com > Nicosia, Cyprus phone: +357-2-755750 > > "It is more complicated than you think" > -- The Eighth Networking Truth from RFC 1925 > > _______________________________________________ > Slashcode-general mailing list > Sla...@li... > http://lists.sourceforge.net/lists/listinfo/slashcode-general > _______________________________________________ Slashcode-general mailing list Sla...@li... http://lists.sourceforge.net/lists/listinfo/slashcode-general |