lp://staging/mysql-proxy-spread

Created by Miguel Araújo and last modified

Very outdated!

I will update to the last working code asap.

Get this branch:
bzr branch lp://staging/mysql-proxy-spread
Only Miguel Araújo can upload to this branch. If you are Miguel Araújo please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Miguel Araújo
Project:
mysql-proxy-spread
Status:
Development

Recent revisions

14. By Miguel Araújo

proxyspread_master-plugin:
 * Added connect_spread() function to Connect to the Spread Daemon;
 * On spread_send_msg() if spread is down, reconnects;
 * Added debug prints;

proxyspread_replicant-plugin:
 * Added query_injection() function to create an COM_QUERY packet with the query read from Spread and inject it on the backend server;
 * Several changes on network_mysqld_proxy_plugin_apply_config() function;
 * Added debug prints;

13. By Miguel Araújo

Removed deprecated proxyspread plugin;
Updated Makefile.am, configure.in, CMakelists.txt;

12. By Miguel Araújo

Unnecessary functions commented (to be removed later)

11. By Miguel Araújo

Modified hook functions names.
Commented proxy plugin unnecessary code

10. By Miguel Araújo

Added cli_read_auth_result hook to:
 * Intercept the server OK|ERR response packet
 * Create a COM_QUERY packet with the query received from the spread toolkit and send it to server by changing the connection state to: CON_STATE_SEND_QUERY

9. By Miguel Araújo

Added cli_read_handshake hook to:
 * Intercept the server hand-shake packet
 * Create and send back a client hand-shake packet back

8. By Miguel Araújo

Added network_mysqld_fakeclient_connection_init() function to set the plugin hooks.

7. By Miguel Araújo

Added fake_client() function to initiate the new connection and start the connection handler.
Added debug prints on the state machine connection handler.

6. By Miguel Araújo

Added event handler for Spread fd MBox
Added automatic joining of user 'MYSQL_PROXY' to group 'repl'
Added spread_recv_msg() function to receive messages from Spread;

5. By Miguel Araújo

Added new plugin: proxyspread_replicant;
 * This plugin will work on the slave instances obtaining all the query events through the Spread Group Communication Toolkit and applying them on the backend MySQL server;

Added Makefile.am;
Added CMakeLists.txt;
Added proxyspread_replicant.c/h with proxy plugin skeleton;
Added the new plugin to configure.in, plugins/CMakeLists.tx, plugins/Makefile.am

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers