[MXS-3693] loading a new maxscale conf dynamicaly Created: 2021-07-27 Updated: 2022-07-18 Resolved: 2022-07-18 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Core |
| Affects Version/s: | 6.0.0 |
| Fix Version/s: | N/A |
| Type: | New Feature | Priority: | Major |
| Reporter: | Pon Suresh Pandian (Inactive) | Assignee: | Todd Stoffel (Inactive) |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Description |
|
Hi Guys, In current versions of maxscale we can't load the config files dynamically. For example my new config file was stored in the /var/lib/maxscale/maxscale.cnf.d directory. I want to load this new config without maxscale restart. @markusjm suggested to do the operations via MaxCtrl or the GUI. But the main goal is to reload a new service/monitor/listener without network deconnection for current sessions. |
| Comments |
| Comment by markus makela [ 2021-07-27 ] |
|
Most things in MaxScale only affect new sessions that have been created after a configuration change has taken place. This is done to keep the behavior of a session consistent for the duration of its lifetime. This makes the behavior more consistent as well as keeps the technical implementation simpler by removing the possibility for configuration conflicts mid-session. The /var/lib/maxscale/maxscale.cnf.d is intended for files generated by MaxScale and should not be modified by users. In future releases the files are possibly no longer read from there as this is an internal implementation detail of MaxScale. For example with config_sync_cluster configured in version 6, those files are no longer read and the runtime configuration is stored elsewhere. Previously this has not been implemented as it would offer another way of doing what can already be done with existing tools (e.g. MaxCtrl and now the GUI). Since the MariaDB server itself doesn't offer the ability to reload a configuration, we haven't considered adding this in the near future. |
| Comment by markus makela [ 2022-07-18 ] |
|
This is a duplicate of |