mlPrintForestPlan memberikan kesalahan ketika saya mencoba menggunakan mlDatabasesWithForestsOnOneHost dengan replika di cluster 3-node.

# gradle-prod.properties
mlDatabasesWithForestsOnOneHost=myApp-modules,myApp-schemas,myApp-triggers
mlDatabaseNamesAndReplicaCounts=myApp-content,1,myApp-modules,1,myApp-schemas,1,myApp-triggers,1

Perintah mlPrintForestPlan menunjukkan kesalahan dengan konfigurasi di atas. Apakah saya perlu menentukan sesuatu yang lain untuk menyiapkan database hanya di satu host dengan replika di host lain?

./gradlew mlPrintForestPlan -Pdatabase=myApp-modules -PenvironmentName=prod
> Task :mlPrintForestPlan FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mlPrintForestPlan'.
> Not enough hosts exists to create 1 replicas for database 'myApp-modules'; possible hosts, which may include the host with the primary forest and thus cannot have a replica: [myHost1]

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 4s
1 actionable task: 1 executed

Versi:

  • MarkLogic: 10.0-5.1
  • ml-gradle: 6.3
  • JDK: openjdk versi "13.0.2" 14-01-2020
1
Dave Cassel 11 Mei 2021, 17:22

1 menjawab

Jawaban Terbaik

Jika tidak berfungsi, kedengarannya seperti skenario yang belum teruji - cukup buat tiket baru di ml-app-deployer untuk mendapatkan dukungan untuk membuat replika database yang dikonfigurasi agar hanya memiliki forest di satu host.

1
Mads Hansen 11 Mei 2021, 17:15