Hi,
> I have operated a web sevrer which is based on jsp+mysql on solaris.
Wow, this is going to suck a lot!! A lousy I/O performance and one of the worst
tools on top of it. :)
> I would like to load balancing 2 web server(80 traffic) using lvs-NAT(I
> can't modify jsp program).
> What is the best way in the poinf of performance?
I'd like to know the same like Joe.
> 1. default persistence time(300) using "ipvsadm -p"
> 2. low timeout like "ipvsadm -p 30"
Lowest possible is 120 secs.
> 3. long timeout like "ipvsadm -p 3000"
Why do you need persistency? You haven't told us about your architecture.
> 4. with netmask like "ipvsadm -p -M 255.255.255.0 or 255.255.0.0"
I'd leave the netmask to its default.
> 5. persistence with fwmark
no bearing on the performance level considering persistency.
> What is the best way in the poinf of performance?
Replace your Solaris machine with a x86 running Linux and put in some good HT P4
CPU with loads of RAM for the money you save by selling the SUN HW. :)
Ok, seriously: A longer persistency timeout can lead to severe load imbalance
due to the dynamics of the Internet and thus have an impact on the performance
of your RS. I suggest you get some good RS HW and tune mysql and the jsp's for
maximal performance iif you're expecting a high amount of traffic to your site.
Regards,
Roberto Nibali, ratz
--
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc
|