LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-31-2013, 10:59 PM   #1
binary_0011
Member
 
Registered: Apr 2006
Location: Singapore
Distribution: RHEL4,FC4,FC5
Posts: 89

Rep: Reputation: 15
HAproxy and Exchange OWA/Outlook anywhere


Before I describe my problem, here is the configuration of my haproxy :

Public IP : 202.X.X.X
LB ip : 10.100.3.30
[root@VM-LB1 ~]# cat /etc/haproxy/haproxy.cfg
global
log /dev/log local0 debug
maxconn 4096
#chroot /usr/share/haproxy
pidfile /var/run/haproxy.pid
uid 99
gid 99
daemon
debug
#quiet
stats socket /var/run/haproxy.stat

defaults
log global
retries 3
maxconn 1000
contimeout 5000
clitimeout 86400000
srvtimeout 86400000

listen stats :7777
mode http
stats enable
stats hide-version
stats uri /haproxy
stats auth admin:123456
stats realm HAProxy\ Statistics
stats admin if TRUE

frontend CAS-WEB
mode tcp
bind :80,:443
default_backend cas-web-servers
option tcplog

frontend CAS-pop3
mode tcp
bind :110,:993,:995
default_backend CAS-pop3-servers
option tcplog

frontend HT-SMTP
mode tcp
bind :25,:587
default_backend ht-servers

backend cas-web-servers
balance leastconn
option redispatch
option abortonclose
stick on src
stick-table type ip size 10240k expire 240m
#option ssl-hello-chk
option httpchk HEAD / HTTP/1.0
server cas1 10.200.1.32 check port 443 check-ssl inter 5000 rise 2 fall 2
server cas2 10.200.1.42 check port 443 check-ssl inter 5000 rise 2 fall 2

backend CAS-pop3-servers
stick-table type ip size 10240k expire 60m
stick on src
option redispatch
option abortonclose
balance leastconn
server cas1 10.200.1.42 weight 1 check port 110 inter 2000 rise 2 fall 3 on-marked-down shutdown-sessions

backend ht-servers
option redispatch
option abortonclose
balance leastconn
server ht1 10.200.1.33 check port 25 inter 5000 rise 2 fall 2
server ht2 10.200.1.43 check port 25 inter 5000 rise 2 fall 2


Problem :

I have 2 backend servers running Exchange OWA. connection speed is excellent if 10.200.1.32 is up. If it is down, traffic will point to 10.200.1.42 and it will start to crawl. OWA will be VERY slow, Outlook(connect using outlook anywhere technology, which is also dependent on 443) will also take forever to connect.

But, I if nat the public ip directly to 10.200.1.42(meaning without going through haproxy), OWA and Outlook can load very fast!.

Question is :

why 10.200.1.32 is fast and why 10.200.1.42 is slow? something wrong with my haproxy config? and why there is not problem if i NAT directly to 10.200.1.42

Thanks in advance.

Last edited by binary_0011; 01-31-2013 at 11:01 PM.
 
Old 03-12-2013, 07:34 AM   #2
Aaron@loadbalancer.org
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Rep: Reputation: Disabled
It could be related to health check failures?

I would personally check the logs or HAProxy stats page and look for error and dwntime.

Hope that helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL + Exchange and/or Outlook Micro420 Linux - Server 1 11-20-2008 10:36 PM
Configure Evolution with Exchange OWA leupi Linux - Desktop 2 07-19-2007 10:33 PM
Exchange Client w/o OWA on Mandriva stccrd Linux - Software 1 08-16-2006 10:11 PM
evolution outlook exchange configuration sailajabhandaru Linux - Software 0 12-08-2005 06:14 AM
Outlook and exchange server PAB Linux - Newbie 3 11-08-2003 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration