Re: proxy-read-only-backend-addresses
Posted by:
Tiago Cruz
Date: April 28, 2008 03:32PM
Same here... RHEL 5.1 x86_64
# lua -v
Lua 5.1.3 Copyright (C) 1994-2008 Lua.org, PUC-Rio
# pwd
/src/mysql-proxy-0.6.1
# mysql --port=4041 -h10.25.0.12
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.1.20-agent
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> select * from proxy_config;
+----------------------------+----------------------+
| option | value |
+----------------------------+----------------------+
| admin.address | :4041 |
| proxy.address | :4040 |
| proxy.lua_script | lib/rw-splitting.lua |
| proxy.backend_addresses[0] | 10.25.0.12:3306 |
| proxy.fix_bug_25371 | 0 |
| proxy.profiling | 1 |
+----------------------------+----------------------+
6 rows in set (0.00 sec)
mysql> select * from proxy_connections;
+------+--------+-------+------+
| id | type | state | db |
+------+--------+-------+------+
| 0 | server | 0 | NULL |
| 1 | proxy | 0 | NULL |
| 2 | server | 10 | NULL |
+------+--------+-------+------+
3 rows in set (0.00 sec)
# LUA_PATH="lib/?.lua" src/mysql-proxy --proxy-read-only-backend-addresses=10.25.0.11:3306 --proxy-backend-addresses=10.25.0.12:3306 --proxy-lua-script=lib/rw-splitting.lua &
# ps -efww | grep proxy
root 13802 10753 0 18:02 pts/0 00:00:00 src/mysql-proxy --proxy-read-only-backend-addresses=10.25.0.11:3306 --proxy-backend-addresses=10.25.0.12:3306 --proxy-lua-script=lib/rw-splitting.lua
And loadbalance for R/W has not working...
Subject
Views
Written By
Posted
10986
January 17, 2008 04:34PM
4759
January 18, 2008 11:27AM
4363
January 21, 2008 03:02PM
4386
March 12, 2008 04:07AM
3740
March 14, 2008 12:58AM
3819
April 10, 2008 03:11PM
3745
April 14, 2008 07:20AM
3663
April 14, 2008 10:56PM
Re: proxy-read-only-backend-addresses
4676
April 28, 2008 03:32PM
3521
May 01, 2008 05:49PM
3521
May 07, 2008 11:18AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.