[MXS-2452] Support a list of targets in namedserverfilter Created: 2019-04-24 Updated: 2023-04-04 Resolved: 2023-04-04 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | namedserverfilter |
| Affects Version/s: | 2.3 |
| Fix Version/s: | N/A |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Esa Korhonen | Assignee: | Todd Stoffel (Inactive) |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Epic Link: | Filter Improvements |
| Description |
|
Namedserverfilter supports list-type targets if all elements are servers, e.g. "target02=myserver1,myserver2". A target with server type tags cannot be a list, that is, "target02=myserver1,->master" is not supported. This should be added, as it would allow easy prioritizing. Such a hint would be interpreted as "router to myserver1 first but if it is down, router to the master, otherwise fail". |
| Comments |
| Comment by markus makela [ 2021-08-10 ] |
|
This is pretty straightforward to implement in the filter but the hinting and query classification mechanisms don't support more than one target type for any query. This would also require the routers to perform target selection multiple times. |