[prev in list] [next in list] [prev in thread] [next in thread]
List: haproxy
Subject: Haproxy resource consumption
From: "Avinash Gaonkar" <agaonkar () gmail ! com>
Date: 2010-11-25 11:44:58
Message-ID: A9BA5FA81E014EAE95E5E2B6F577C470 () netdom ! loc
[Download RAW message or body]
Dear All,
I just wanted to know how can I calculate memory consumption per session, for my \
haproxy VM.
Please find the details of my build which is an instance on Vmware:
O.S: CentOS release 5.5 (Final) x86_64
HA-Proxy version 1.4.9 2010/10/28
System memory: 1GB
Processor: 1 core E5520 @ 2.27GHz
Further please let me know if I allocate 1 more core will it utilize both the cores \
or will I need to add some parameters in my haproxy.cfg, I have attached my haproxy \
configuration for your reference.
###### Global section. Generally you don't need to change it.################
global
maxconn 32000 # Total Max Connections.
log 127.0.0.1 local0 # log traffic events with facility local0
log 127.0.0.1 local1 notice # log important events with facility local1
chroot /usr/haproxy
user haproxy
group haproxy
daemon #Makes the process fork into background.
#################END OF GLOBAL SETTINGS######################
######## HTTP Default values for all entries till next defaults section############
defaults
option http-server-close # set Connection: close to inspect all HTTP traffic
option dontlognull # Do not log connections with no requests
option redispatch # Try another server in case of connection failure
option contstats # Enable continuous traffic statistics updates
retries 3 # Try to connect up to 3 times in case of failure
timeout connect 5s # 5 seconds max to connect or to stay in queue
timeout http-keep-alive 1s # seconds max for the client to talk
timeout http-request 15s # seconds max for the client to talk
timeout queue 30s # seconds max for the server to respond
timeout tarpit 1m # tarpit hold tim
backlog 10000 # Size of SYN backlog queue
#####################END OF HTTP DEFAULT############################
######## TCP Default values for all entries till next defaults \
section################ defaults
option dontlognull # Do not log connections with no requests
option redispatch # Try another server in case of connection failure
option contstats # Enable continuous traffic statistics updates
retries 3 # Try to connect up to 3 times in case of failure
timeout connect 5s # 5 seconds max to connect or to stay in queue
timeout queue 30s # seconds max for the server to respond
timeout tarpit 1m # tarpit hold tim
backlog 10000 # Size of SYN backlog queue
#######################END OF TCP DEFAULT############################
#####################Statistics configuration#######################
listen admin_stats *:8888
mode http
timeout client 25s
balance roundrobin
stats uri /my_stats
stats realm Global\ statistics
stats auth
stats refresh 60s
#################END OF STATS##################
Regards,
Avinash Gaonkar
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16588"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT size=2 face=Arial>
<DIV><FONT size=2 face=Arial>Dear All,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>I just wanted to know how can I calculate memory
consumption per session, for my haproxy VM.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Please find the details of my build which is an
instance on Vmware:</FONT></DIV>
<DIV><FONT size=2 face=Arial>O.S: CentOS release 5.5 (Final)
x86_64 </FONT></DIV>
<DIV><FONT size=2 face=Arial>HA-Proxy version 1.4.9 2010/10/28</FONT></DIV>
<DIV><FONT size=2 face=Arial>System memory: 1GB</FONT></DIV>
<DIV><FONT size=2 face=Arial>Processor: 1 core E5520 @
2.27GHz</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Further please let me know if I allocate 1 more
core will it utilize both the cores or will I need to add some parameters in my
haproxy.cfg, I have attached my haproxy configuration for your
reference.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>###### Global section. Generally you don't need to change
it.################<BR>global<BR>maxconn 32000 # Total Max Connections.<BR>log
127.0.0.1 local0 # log traffic events with facility local0<BR>log 127.0.0.1
local1 notice # log important events with facility local1<BR>chroot
/usr/haproxy<BR>user haproxy<BR>group haproxy<BR>daemon #Makes the process fork
into background.<BR>#################END OF GLOBAL
SETTINGS######################</DIV>
<DIV> </DIV>
<DIV>######## HTTP Default values for all entries till next defaults
section############<BR>defaults<BR>option http-server-close # set Connection:
close to inspect all HTTP traffic<BR>option dontlognull # Do not log connections
with no requests<BR>option redispatch # Try another server in case of connection
failure<BR>option contstats # Enable continuous traffic statistics
updates<BR>retries 3 # Try to connect up to 3 times in case of
failure<BR>timeout connect 5s # 5 seconds max to connect or to stay in
queue<BR>timeout http-keep-alive 1s # seconds max for the client to
talk<BR>timeout http-request 15s # seconds max for the client to talk<BR>timeout
queue 30s # seconds max for the server to respond<BR>timeout tarpit 1m # tarpit
hold tim<BR>backlog 10000 # Size of SYN backlog
queue<BR>#####################END OF HTTP
DEFAULT############################</DIV>
<DIV> </DIV>
<DIV>######## TCP Default values for all entries till next defaults
section################<BR>defaults<BR>option dontlognull # Do not log
connections with no requests<BR>option redispatch # Try another server in case
of connection failure<BR>option contstats # Enable continuous traffic statistics
updates<BR>retries 3 # Try to connect up to 3 times in case of
failure<BR>timeout connect 5s # 5 seconds max to connect or to stay in
queue<BR>timeout queue 30s # seconds max for the server to respond<BR>timeout
tarpit 1m # tarpit hold tim<BR>backlog 10000 # Size of SYN backlog
queue<BR>#######################END OF TCP
DEFAULT############################</DIV>
<DIV> </DIV>
<DIV>#####################Statistics
configuration#######################<BR>listen admin_stats *:8888<BR>mode
http<BR>timeout client 25s<BR>balance roundrobin<BR>stats uri /my_stats<BR>stats
realm Global\ statistics<BR>stats auth <BR>stats refresh
60s<BR>#################END OF STATS##################</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Avinash Gaonkar<BR></DIV></FONT></DIV></BODY></HTML>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic