Oracle 5.0 Reference Manual page 1431

Table of Contents

Advertisement

Attribute
client.src.address
client.src.port
server.scramble_buffer
server.mysqld_version
server.thread_id
server.dst.name
server.dst.address
server.dst.port
server.src.name
server.src.address
server.src.port
proxy.global.backends
The
proxy.global.backends
backend servers and the server metadata (IP address, status, etc.). You can determine the array index
of the current connection using
table of the backend server being used by the active connection.
The attributes for each entry within the
table.
Attribute
dst.name
dst.address
dst.port
connected_clients
state
type
proxy.queries
The
proxy.queries
queue is not populated automatically, but if you do not explicitly populate the queue, queries are
passed on to the backend server verbatim. Also, if you do not populate the query queue by hand, the
read_query_result()
The following functions are supported for populating the
Function
append(id,packet,
[options])
MySQL Proxy Scripting
Description
The IP address of the client (originating) TCP/IP port
The port of the client (originating) TCP/IP endpoint
The scramble buffer used to scramble the password
The MySQL version number of the server
The ID of the thread handling the connection to the current server
The combined
connection (i.e. the connection to the MySQL server)
The address for the backend server
The port for the backend server
The combined
Proxy to connect to the backend server
The address of the endpoint for the proxy-side connection to the
MySQL server
The port of the endpoint for the proxy-side connection to the MySQL
server
table is partially writable and contains an array of all the configured
proxy.connection["backend_ndx"]
proxy.global.backends
Description
The combined
The IP address of the backend server.
The port of the backend server.
The number of clients currently connected.
The status of the backend server. See
Constants
[1414].
The type of the backend server. You can use this to identify
whether the backed was configured as a standard read/write
backend, or a read-only backend. You can compare this value to the
proxy.BACKEND_TYPE_RW
object is a queue representing the list of queries to be sent to the server. The
function is not triggered.
Description
Appends a query to the end of the query queue. The
identifier that you can use to recognize the query results when they
are returned by the server. The packet should be a properly formatted
1411
for the backend server for the current
address:port
for the TCP/IP endpoint used by the
address:port
table are shown in the following
of the backend server.
address:port
and proxy.BACKEND_TYPE_RO.
proxy.queries
which is the index into this
Backend State/Type
object.
is an integer
id

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents