Write confirmation from 1 slave in each DC (say 2 DC)
39 views
Skip to first unread message
dhsieh
unread,
May 23, 2012, 6:41:45 PM5/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
Assuming using Java Driver 2.8.0, wonder if there is a way to write
confirmation from 1 slave in each DC (say 2 DC). This is to ensure
that subsequent reads in each DC will get latest write copy with
slaveOk().
Eliot Horowitz
unread,
May 23, 2012, 8:27:38 PM5/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
Yes, but what's not clear is if slaveOk read (assuming java driver
v2.8.0) will guarantee returning latest copy from the local DC tagged
slave node. Even that's the case, won't it cause local calls directed
to that tagged slave node and thus causing unbalanced load, will it?
dhsieh
unread,
May 23, 2012, 10:14:42 PM5/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
To be specific, is there a read option to select from DC tagged slave
nodes in local DC?
dhsieh
unread,
May 24, 2012, 3:45:03 PM5/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
I see that Java Driver 2.8.0 contains an improvement:
[JAVA-474] - Support ReadPreference Tagging
I wonder if this is the feature that will address my need for this
posting?
Eliot Horowitz
unread,
May 27, 2012, 12:59:49 PM5/27/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message