Usage of DcAwareRoutingPolicy

15 views
Skip to first unread message

Vivek Bhat

unread,
Mar 10, 2021, 10:57:10 PM3/10/21
to go...@googlegroups.com
Hi everyone,

I just wanted to get a proper example usage of the function DcAwareRoutingPolicy that takes a string. The parameter says the local datacentre but I'm not sure what string to provide that function because I have three data centres.

Thanks and Regards,
Vivek Bhat

Martin Sucha

unread,
Mar 11, 2021, 6:48:29 AM3/11/21
to Vivek Bhat, gocql
Hello,

On Thu, Mar 11, 2021 at 4:57 AM Vivek Bhat <vivekbh...@gmail.com> wrote:
I just wanted to get a proper example usage of the function DcAwareRoutingPolicy that takes a string. The parameter says the local datacentre but I'm not sure what string to provide that function because I have three data centres.

The parameter is the name of the datacenter that you prefer to send requests to. Usually it is the DC where your application/gocql is running. It has to be one of the datacenter names configured in your Cassandra cluster.

Martin


This email, including attached files, may contain confidential information and is intended only for the use of the individual and/or entity to which it is addressed. If you are not the intended recipient, disclosure, copying, use, or distribution of the information included in this email and/or in its attachments is prohibited.
If you have received it by mistake, please do not read, copy or use it, or disclose its contents to others. Please notify the sender that you have received this email by mistake by replying to the email, and then delete the email and any copies and attachments of it. Thank you.

Moreno Garcia

unread,
Mar 12, 2021, 9:09:09 AM3/12/21
to gocql
Vivek, it is the same DC names that you see on "nodetool status" output.
Reply all
Reply to author
Forward
0 new messages