Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Conversation

rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Aug 24, 2023

No description provided.

rjrudin and others added 6 commits August 23, 2023 13:02
Allows for deploying databases much more quickly by getting all forest details in a single request as opposed to one request per forest via /manage/v2. Any issue results in /manage/v2 being used instead. 

A simple test was added for this, but the method is being tested by dozens of existing tests - i.e. any test that involves deploying a database is hitting this. There's no actual change in functionality too - it's purely a performance optimization.
There aren't any tests to add as the test cluster only has a single node. Instead doing manual testing against a 3-node cluster in Docker. 

The change is straightforward: if CMA is enabled, then submit a CMA config containing each of these forests with each of its replicas. If that fails, or if CMA is not enabled, then submit each forest one-by-one to /manage/v2.
Refactored the call for getting a map of forests - moved it into CommandContext so it's easier to reuse by separate commands. 

Note that `DeployOtherDatabasesCommand` is being reverted back as no changes are needed there anymore.
@rjrudin rjrudin merged commit 5da2fb4 into master Aug 24, 2023
@rjrudin rjrudin deleted the release/4.5.3 branch August 24, 2023 17:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants