If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > How to analyze mysql-proxy performance and how to improve it?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-21-11, 19:57
mahao mahao is offline
Registered User
 
Join Date: Oct 2011
Posts: 1
Angry How to analyze mysql-proxy performance and how to improve it?

Recently, we installed mysql-proxy as our database proxy which backend servers are running as master-slave.

And also we using the lua script to make mysql-proxy working as failover of backends.

{code}
function connect_server()
local s = proxy.global.backends[1]
-- local s = proxy.global.backends[2]

if s.state ~= proxy.BACKEND_STATE_DOWN then
proxy.connection.backend_ndx = 1
-- proxy.connection.backend_ndx = 2
else
-- os.execute("/bin/mail hao.1.ma.ext@nsn.com -s 't66 mysqld is dow' <<<'mysqld is down'")
proxy.connection.backend_ndx = 2
-- proxy.connection.backend_ndx = 1
end
end
{code}


But we met a significant problem of mysql-proxy performance is bad.

So my problem is how to analyze mysql-proxy performance and how to tune it?

BR
Ma Hao
Reply With Quote
Reply

Tags
mysql proxy

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On