[CONJS-31] Add server hostname to connection packet for proxy Created: 2018-05-14  Updated: 2018-05-14  Resolved: 2018-05-14

Status: Closed
Project: MariaDB Connector/node.js
Component/s: proxy
Affects Version/s: None
Fix Version/s: 0.7.0-alpha

Type: Task Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-15450 Add Host Name Field to MariaDB Client... Closed

 Description   

see related task MDEV-15450

Why
In original, one MariaDB server instance is identified by one address (IP + port). That is not enough for a shared proxy for multi servers. Like HTTP HOST header, which enables virtual host in a web server machine [1]. The similar approach is used in Oracle net listener by adding INSTANCE_NAME [2]. Adding the host name field helps the proxy layer to find the backend server, monitor full throughput easily, and can do the specific logic on different host. For cloud service, let server instance can be identified by <server name, address (IP + port)> will help to simplified workflow for the frontend proxy.



 Comments   
Comment by Diego Dupin [ 2018-05-14 ]

added with commit https://github.com/rusher/mariadb-connector-nodejs/commit/35a2a12f387ad3009989db5f500e81a2d2df9224

Generated at Thu Feb 08 03:22:15 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.