Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-13-2008, 03:42 AM   #1
LQ Newbie
Registered: Jan 2005
Posts: 12

Rep: Reputation: 0
Haproxy ,memcached ,mysql strange problem

The situation is this.
Gentoo servers 2.6.22 kernels here we use apache1.3 php4.4.4 ######
server1 --- Haproxy + web
server2 --- Web
server3 --- Memcached
server4 --- mysql
###### Debian servers 2.6.24 kernel apache2 php5 ###
New server --- Web


With haproxy we make server 1 2 to work with load balancing web applications now we want to upgrade our hardware and I make the new one server but when I put it in Haproxy config file after 10-15 min Mysql get 12-15 load.I make on new server apache2 + php5 then I downgrade to apache 1.3 with php4.4.4 then I recompile memcached clinet.

Here the haproxy.conf
        log   local0
        log   local1 notice
        #log loghost    local0 info
        user nobody
        group nobody

        mode    http
        option  httplog
        option  dontlognull
        #2x exp
        option          abortonclose
        option          redispatch
        retries 10
        maxconn 2048
        contimeout      5000
        clitimeout      50000
        srvtimeout      50000

listen Ferm IP:80
        mode http
        stats enable
        stats auth user:passs1sds
        stats hide-version
        stats scope   .
        stats uri     /load?stats
        stats realm   Statistics
        stats refresh 5s
        balance roundrobin
#       cookie SID prefix
        cookie JSESSIONID prefix
#       cookie SERVERID insert indirect
        option httpclose
        option forwardfor
#       option persist
        option httpchk HEAD http://x.x.x.x/check.txt HTTP/1.0
        server a    server3 cookie D check inter 10000 backup
#        server b  Newserver   cookie C weight 50 minconn 10 maxconn 600 check inter 1000
        server c server1     cookie A weight  10 minconn 40 maxconn 600 check inter 1000
        server d  server2   cookie B weight  20 minconn 30 maxconn 600 check inter 1000
Memcached start with :

/usr/bin/memcached -d -p 11211 -l x.x.x.x -m 4096 -c 20480 -u memcached -P /var/run/memcached/
Then when I uncoment Newserver after some time our mysql return too many connections.

Our theory is that memcached crash some way then when some user search something in the site he don't get data from memcached and search directly in Mysql for that our DB server get this load but we can't debug it.

Some ideas ...

Old 05-14-2008, 03:54 AM   #2
LQ Newbie
Registered: Jan 2005
Posts: 12

Original Poster
Rep: Reputation: 0
We found new errors in Memcached server

<8 set fail1210688324 0 0 7
<7 set fail1210688327 0 0 7
<11 set fail1210688335 0 0 7
<11 set fail1210688338 0 0 7
<9 set fail1210688345 0 0 7


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Setting Up A High-Availability Load Balancer With HAProxy/Heartbeat On Fedora 8 LXer Syndicated Linux News 1 03-10-2008 08:29 AM
HAProxy balancing problem Sheridan Linux - Server 1 03-02-2008 01:44 AM
Very Strange MySQL fine on small box, terrible on big box DukeLeto Linux - Software 2 01-01-2007 09:14 AM
Strange problem with PHP5/MySQL update function gabebster Programming 9 04-07-2006 12:48 AM
Strange problem - mysql not working through ssh tunnel ganz_friedrich Linux - Software 0 03-31-2006 09:45 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:13 AM.

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