Sundaravadivel, that is a different question than what OP is asking about.  The 
original question was about how to connect to all the nodes in the cluster.


You can use DMSDK with an F5, but you lose the performance benefit of talking 
directly to the best host in the cluster.  When using QueryBatcher remember 
that documents are stored in forests on a specific primary host, and the F5 
doesn't know which forest nor host that is, but DMSDK does know.  So inserting 
the F5 into the mix adds an extra redirect as the communication is forced to a 
random host rather than the node which has the document.  For an example of how 
to configure if you must use DMSDK with a load balancer, see 
https://docs.marklogic.com/guide/java/data-movement#id_26583

Asynchronous Multi-Document Operations (Java Application Developer's Guide) — 
MarkLogic 9 Product 
Documentation<https://docs.marklogic.com/guide/java/data-movement#id_26583>
docs.marklogic.com
MarkLogic is the only Enterprise NoSQL Database




Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>

This e-mail and any accompanying attachments are confidential. The information 
is intended solely for the use of the individual to whom it is addressed. Any 
review, disclosure, copying, distribution, or use of this e-mail communication 
by others is strictly prohibited. If you are not the intended recipient, please 
notify us immediately by returning this message to the sender and delete all 
copies. Thank you for your cooperation.
________________________________
From: general-boun...@developer.marklogic.com 
<general-boun...@developer.marklogic.com> on behalf of Sundaravadivel 
kandaswamy <mumbaisun...@gmail.com>
Sent: Monday, January 29, 2018 12:13:47 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Regarding DMSDK

If we use F5 or other tools for load balancing then how DMSDK will distribute 
the load across all the hosts? Because F5 will have only one URL which is 
connected to multiple nodes..

On Jan 29, 2018 2:07 PM, "Sam Mefford" 
<sam.meff...@marklogic.com<mailto:sam.meff...@marklogic.com>> wrote:

You normally don't have to specify the hosts.  When you connect to a specific 
host/port/database, DMSDK figures out what hosts also have a REST server 
available on that port and forests for that database.  So DMSDK will connect 
directly to all appropriate hosts.  Does that answer your question?


Sam Mefford
Senior Engineer
MarkLogic Corporation
sam.meff...@marklogic.com<mailto:sam.meff...@marklogic.com>
Cell: +1 801 706 9731<tel:(801)%20706-9731>
www.marklogic.com<http://www.marklogic.com>

This e-mail and any accompanying attachments are confidential. The information 
is intended solely for the use of the individual to whom it is addressed. Any 
review, disclosure, copying, distribution, or use of this e-mail communication 
by others is strictly prohibited. If you are not the intended recipient, please 
notify us immediately by returning this message to the sender and delete all 
copies. Thank you for your cooperation.
________________________________
From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 
<general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>>
 on behalf of C. Yaswanth <rocking...@gmail.com<mailto:rocking...@gmail.com>>
Sent: Monday, January 29, 2018 11:38:21 AM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Regarding DMSDK

I want to run the Marklogic Data Movement SDK for transformation in distributed 
mode on my Marklogic cluster which is running on 3Nodes. Usually in the mlcp we 
will use the `-host` parameter to specify our hostnames and have `-mode` 
parameter to define our mode type. Is it possible here in DMSDK to mention all 
the hostnames of our nodes in ML cluster like this

    newClient("host1,host2,host3", port, username, password, authentication)

So that it will distribute the task efficiently. But i didnt seen any 
documentation of DMSDK with multiple hosts.

 1. If i am not giving my all the hostnames then how it gonna distribute the 
work in parallel fashion.

Any help is appreciated.

Thanks

_______________________________________________
General mailing list
General@developer.marklogic.com<mailto:General@developer.marklogic.com>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to