LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-13-2008, 02:42 AM   #1
Eazy-Snatch
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
Code:
global
        log 127.0.0.1   local0
        log 127.0.0.1   local1 notice
        #log loghost    local0 info
        #debug
        #quiet
        user nobody
        group nobody

defaults
        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
        redispatch
Memcached start with :

Code:
/usr/bin/memcached -d -p 11211 -l x.x.x.x -m 4096 -c 20480 -u memcached -P /var/run/memcached/memcached-11211.pid
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 ...

Greetings
 
Old 05-14-2008, 02:54 AM   #2
Eazy-Snatch
LQ Newbie
 
Registered: Jan 2005
Posts: 12

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

Code:
<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
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:31 AM.

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