I'm referring How Can I use Apache to load balance Marklogic Cluster for some advice, but haven't got the idea.
Our MarkLogic Server version 8.0-4, and marklogic-client-api version is 4.1.0
There is a official way to config the MarkLogic Clinet
DatabaseClientFactory.newClient(host, port, new DigestAuthContext(user, passwd));
The config for the client is easy to understand. And it can work for me in our project.
But, for the host, I'm a bit confused.
We have three hosts in our PORD. In MarkLogic config page, I can find below summary:
- GROUP: Default
- HOSTS: qwelap1 qwelap2 qwelap3
I only know this config in marklogic-client-api
.newClient("qwelap1", "8888", new DigestAuthContext("admin", "admin"));
Can I call three servers not just one server ? Should I use other framework to implement this or something others?