Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducing Configuration transporter #24

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pkamps
Copy link
Member

@pkamps pkamps commented Jun 12, 2024

Currently, it's only possible to syncronize the elevate configuration with a solr instance directly. At a client installation, we do have a different setup: the solr configuration is managed by zookeeper - a system to have high availability for solr.

This pull request introduces "Configuration transporter" classes. There is one for "solr" executing the existing syncronization and a new one for zookeeper. There is a factory function to chose a transporter based on the settings.

The commit introduces two new configuration transporter classes for Solr and Zookeeper. It also moves the configuration synchronization method away from the eZSolr class into the new classes with a factory pattern implementation to instantiate the optimal transporter.
Moving 2 functions from ezfindelevateconfiguration.php into the newly created transporter class.
@pkamps pkamps requested a review from benkmugo June 12, 2024 09:45
@benkmugo
Copy link
Member

Comments:
In eZFConfigurationTransporterZookeeperCli->push() I think it would make sense read the path from a config parameter like you're doing with the CLI already.
Also with a fallback like in case of the CLI. That way it is configurable via INI.

Questions:
What would be the easiest way to test the non-zookeeper transporter?
Install in Lovestack and use the elevate UI in the admin?

The changes allow flexibility when setting the configuration file path for the eZFConfigurationTransporterZookeeperCli class. Previously, the path was hardcoded into the class, but now it can be set via ConfigurationTransporterParameters in solr.ini.
@pkamps
Copy link
Member Author

pkamps commented Jun 17, 2024

You can now configure the path to the config file in the settings.

Answers are in a separate email.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants