Details
-
New Feature
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Won't Do
-
2.2.2
-
CentOS 7
Description
Currently, MaxScale operates only as a proxy, which enables many advanced features, but comes with the drawback of requiring twice the network traffic, since everything must go client->maxscale->db and vice versa. It would be helpful in some use cases to have the clients get routed directly to the DB, such that they only hit the MaxScale server at connect time; the MaxScale server would instruct them to go directly to a particular DB server, based on rules set up in the configuration file, and from then on, for the life of that session, all communication is directly between the client and the DB, without MaxScale involved.
As far as I can tell it would require awareness from the connector. When a connector that announces some particular capability connects, MaxScale would then not perform the usual activities that are performed at connection time, but would reply with some redirect message containing information about what IP the connector subsequently, silently behind the scenes, should connect to. That the connector has not connected to the IP the client requested but to some other IP would then, as far as I can tell, have to be hidden from the client.