project-lux / lux-marklogic

Code, issues, and resources related to LUX MarkLogic
Other
3 stars 2 forks source link

Provide script to remove replica forests #125

Closed brent-hartwig closed 2 months ago

brent-hartwig commented 2 months ago

Team is looking to stop replicating the LUX content database in SBX and DEV, and would like this to be scripted.

Team understands that if one of these clusters loses a node, the LUX content database will be offline until the node with the associated data directory/volume becomes available.

brent-hartwig commented 2 months ago

Implemented in PR https://github.com/project-lux/lux-marklogic/pull/126 and merged into the release1.16 branch. Until merged into the main branch, both scripts may be found within https://github.com/project-lux/lux-marklogic/tree/release1.16/scripts/admin/delete-replica-forests.

Elected not to seek out a way via ML Gradle; however, ML Gradle configuration should be updated to avoid bringing the replica forests back. For SBX and DEV, a property defined in gradle.properties should be overridden to the following:

mlDatabaseNamesAndReplicaCounts=App-Services,1,Meters,1,Modules,1,Schemas,1,Triggers,1,Security,2

Environment-specific Gradle properties files are no longer stored in the repo.