hi all..
from todd..
> This is doable, we have two ldap servers load balanced as well, though
> we use the DR method instead of the Masq method. They work very well
> for us.
thanks todd..good to know that there is successful story about LDAP-LVS :)
let me start from beginning again..
my plan..
----- Client (im try to connect to ldap) -machine 1
| |
| |-XP os
| |-RIP 192.168.3.188
-----
|
|
| director.(machine 2)
| Linux (VMware) on Xp os
| RIP for xp:192.168.3.154
| RIP for linux: 192.168.3.196
| i choose VIP: 192.168.200.5 *?can i?
-----
| |
-------------| |--------------
| | | |
| ----- |
| |
| |
| |
-----LDAP1 (on machine 3) -----LDAP2 (on machine 4)
| |-xp os | |-xp os
| |-RIP 192.168.3.166 | |-RIP 192.168.36.170
| | | |
----- -----
NOTE:
-----
-all the test machine(1,2,3,4) are in my office.
-machine 2 is xp os then i install linux on VMware.
i got ip for xp and ip for linux(for further question).
-all 3 machine i got ldap installed except on director(linux).
-on my director, i got redhat(kernel 2.6.9.) & ipvsadm
my configuration..
*********************************
#ipvsadm
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
# ipvsadm -A -t 192.168.200.5:389 -s rr
# ipvsadm -a -t 192.168.200.5:389 -m -r 192.168.3.166:389
# ipvsadm -a -t 192.168.200.5:389 -m -r 192.168.3.170:389
# ipvsadm
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.200.5:ldap rr
-> 192.168.3.170:ldap Masq 1 0 0
-> 192.168.3.166:ldap Masq 1 0 0
then..
echo "1" > /proc/sys/net/ipv4/ip_forward
************************************************configure end
i just figure out that this is LVS-NAT(from todd email) and it just for
linux os only.then i should have LVS DR for my architecture works..because
my other machine not using linux os xcept the director.
???
---
0.is it other software that i hv to install on my director.
1.is it possible to enable Load Balancing base on my figure above.I think
DR or TUN is possible..is it possible.
2.do i have to install openldap on my linux(director),because i think the
director just distribute the request and not process the request from
client.
3.About VIP.
my RIP for director(linux) is 192.168.3.196. actually is it any rule for
choose director's VIP or i just choose on my own
e.g # ipvsadm -A -t 192.168.200.5:389 -s rr
4.My testing
base on figure above..im using LDAP BROWSER on machine 1(XP os) and try to
connect to any LDAP server available (machine 3 or 4).im using VIP to
connect to LDAP server- 192.168.200.5 port 389..can i?
-can i use machine 2(xp os, ip 192.168.3.154) as a client?
5.how can i setting backup if my VIP is fail?
6.based on above figure and whats todd hv said..i think DR is suitable for
this figure,because im using different os for other machine and linux for
my director.so from my figure above..can i have any comen or list for
-what step i miss
-what step do i have to add
-any software that im not installed
i want to try this..make it happen n maybe i can try this LDAP on
LVS_NAT/TUN/DR.if it would possible..i want to try to running all that
i just love it :)
thanks.
regards..
azhar
|