Oracle 5.0 Reference Manual page 1447

Table of Contents

Advertisement

16.7.6.25: [1429]
Is there any big web site using MySQL Proxy? For what purpose and what
transaction rate have they achieved?
16.7.6.26: [1429]
How does MySQL Proxy compare to DBSlayer?
16.7.6.27: [1429]
I tried using MySQL Proxy without any Lua script to try a round-robin type load
balancing. In this case, if the first database in the list is down, MySQL Proxy would not connect the
client to the second database in the list.
16.7.6.28: [1429]
Is it "safe" to use
16.7.6.29: [1429]
How different is MySQL Proxy from DBCP (Database connection pooling) for
Apache in terms of connection pooling?
16.7.6.30: [1429]
MySQL Proxy can handle about 5000 connections, what is the limit on a MySQL
server?
16.7.6.31: [1430]
Would the Java-only connection pooling solution work for multiple web servers?
With this, I would assume that you can pool across many web servers at once?
Questions and Answers
16.7.6.1: In load balancing, how can I separate reads from writes?
There is no automatic separation of queries that perform reads or writes to the different backend
servers. However, you can specify to
are read only.
shell> mysql-proxy \
--proxy-backend-addresses=10.0.1.2:3306 \
--proxy-read-only-backend-addresses=10.0.1.3:3306 &
16.7.6.2: How do I use a socket with MySQL Proxy? Proxy change logs mention that support for
UNIX sockets has been added.
Specify the path to the socket:
--proxy-backend-addresses=/path/to/socket
16.7.6.3: Can I use MySQL Proxy with all versions of MySQL?
MySQL Proxy is designed to work with MySQL 5.0 or higher, and supports the MySQL network
protocol for 5.0 and higher.
16.7.6.4: Can I run MySQL Proxy as a daemon?
Use the
[1400]
--daemon
[1405]
--pid-file=file
cannot be started natively as a daemon.
16.7.6.5: Do proxy applications run on a separate server? If not, what is the overhead incurred
by Proxy on the DB server side?
You can run the proxy on the application server, on its own box, or on the DB-server depending on the
use case.
16.7.6.6: With load balancing, what happens to transactions? Are all queries sent to the same
server?
Without any special customization the whole connection is sent to the same server. That keeps the
whole connection state intact.
16.7.6.7: Is it possible to use MySQL Proxy with updating a Lucene index (or Solr) by making
TCP calls to that server to update?
MySQL Proxy FAQ
LuaSocket
mysql-proxy
option. To keep track of the process ID, the daemon can be started with the
option to save the PID to a known file name. On version 0.5.x, the Proxy
1427
with proxy scripts?
that one or more of the "backend" MySQL servers

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents