[MXS-4276] Support cluster configurations in --export-config mode Created: 2022-09-06  Updated: 2023-12-15

Status: Open
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: None
Fix Version/s: Icebox

Type: New Feature Priority: Minor
Reporter: markus makela Assignee: Joe Cotellese
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Issue split
split from MXS-4275 MaxScale tries to start up if --expor... Closed

 Description   

As is mentioned in MXS-4275, the --export-config option will not work if a cached cluster configuration is present nor will it read it from the cluster when starting up. The fix to MXS-4275 will cause the static configuration to be exported even if there would be a newer one in the cluster.

Adding clustered configuration support for --export-config requires two things:

  1. Produce a INI file from the cached JSON file stored on disk: This is relatively straightforward to do as the mxs::config::Configuration class already produces the required output and the objects are constructed at the point of the export.
  2. Communicate with the cluster on startup: this is slightly trickier to do as the current update mechanism is asynchronous and won't trigger an update until after all the workers have been started. This might require addition of special code for this specific purpose.


 Comments   
Comment by markus makela [ 2022-09-06 ]

I've set this as a New Feature for now since the option wasn't designed to be used with clustered configurations. I'd say it's more of a design oversight rather than an actual bug.

Generated at Thu Feb 08 04:27:28 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.