Johan Isacsson wrote:
> I'm new to this list so here comes a little introduction.
> My name is Johan Isacsson and i'm the CTO of MGON International AB, based in
> MGON creates and maintains websites about computer games, traffic is about
> 25 million impressions/month.
Is impressions==connection requests?
> Almost all pages are dynamic, so we need to distribute the load over several
> servers. We're running Linux 2.2 with Apache+PHP and MySQL on all
> realservers, about 16 in total.
And you never got rooted? ;)
> We use custom/scp script for file mirroring but are looking for better ways
> of doing that (any suggestions are welcome).
You might have a look at http://www.linux-ha.org and check out the
links on the first page about Filesystem technologies.
> Currently we use LVS/DR to distribute the load and it works very well for
> Before that we used IBM Network Dispatcher which i think worked the same way
> as LVS/DR do, but it costs lots of money! :P
> Well, enough about me, on to the questions!
I'm glad you switched to LVS :)
> 1. Is the redirect approach working (well) on 2.4, and if so, are there any
> drawbacks using that method compared to the hidden arp method in 2.2?
Yes, it is working well, no, no drawbacks so far, but the difference is
not redirect <-> hidden arp for 2.4.x <-> 2.2.x. The difference IMHO is
the place where the LVS hooks in and the trespassing of the chains. BTW,
why do you intent to change to 2.4.x if you setup is working fine? And I
reckon that you run your db on a Linux box with fast SCSI controller or
even a RAID. If so I would not advise you to use the 2.4.x kernel since
there are still some issues not solved with RAID and SCSI at least back
here, where I still try to get it running for more then 10 hours. :(
> 2. Is it a very bad idea to just have 1 NIC on the LVS machine to receive
> and forward the requests?
This actually would be the standard approach for LVS-DR.
> It's a DR setup.
> We have another server location with a 4Mbit connection that we don't use
> much. We have some servers there serving static files, but i'd like to load
> balance them between that location and our main location. Like this:
> Location 1 (Max 4Mbit)
> Static file servers
> Location 2
> Static file servers
> Virtual server
> VFS1 (FS1,FS2,FS3,FS4 LVS/TUN)
> I'd like to use as much as possible of the bandwidth in location 1 (up to
> 4Mbit) and after that start using the fileservers at location 2. The
> bandwith usage can be taken from the router at location 1 using snmp.
> If anyone have suggestions about how to set up scheduling for this i'd love
> to hear them :)
Try it with the lblcr scheduler. Although I actually don't understand
your setup correctly, honestly. Maybe someone else understands it better
than me or you could draw a sketch.
> Thanks for your time,
No problem, I hope I could give you some more information than you already
Roberto Nibali, ratz
mailto: `echo NrOatSz@xxxxxxxxx | sed 's/[NOSPAM]//g'`