--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/33a48d8b-96ba-4437-b1d3-48a0a6a0e849%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
For a replica set, I think these options together make good sense, dont they ;?
The app programmer should accept this lag of course & develop accordingly.
Your last sentence is important.
In my opinion application development is hard enough and we should be doing everything we can to make it easier so I look skeptically at anything that makes it harder. If you as an application developer can cope with not seeing writes immediately then reads from secondaries can increase efficiency, but imho that should be an opt-in not a default behavior.
-- Max
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/18b7dab1-7bb2-444a-ac1f-8df6fa7d10c1%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/18b7dab1-7bb2-444a-ac1f-8df6fa7d10c1%40googlegroups.com.
For example lets have a replica set of P,S,S. Can you show us emprical numbers for a scenario where we have multiple clients reading & writing, comparing these options seperately on the same read/write load:
- reads only from primary
- secondaryPreffered
- secondaryPreffered & w:2
Avg time of a client to read, avg time of a client to write, lag of just-written data, etc statistics would be great to better understand what's happening.
lag=0 for the 1st option set, so lets see how these stats come out. I'm curious, I have not done this experiment myself.
Thanks..
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/4adebed9-a918-445e-8215-6193e528b2f3%40googlegroups.com.
Hi Asya,
I read that & agree somehow with HA point but I think you are missing the point of having "multiple" clients.
A single user reading 100 mb/s and 4 users each reading 25 mb/s are two different loads, the second allowing the opportunity of parallel serving.
Lets have four clients, each reading & writing 25 mb/s from/to our PSS replica.
Primary-only read:
P needs to handle: 100 mb/s read, 100 mb/s write, forwarding writes to secondaries
S: 100 mb/s write
SecondaryPreferred:
P: 100 mb/s write, forwarding writes to secondaries
S: 100 mb/s write, 50 mb/s read
The load is definitely more balanced in the latter case. Now let's kill one server of the replica set:
Primary-only read:
P: 100 mb/s read, 100 mb/s write, forwarding writes to secondary
S: 100 mb/s write
SecondaryPreferred:
P: 100 mb/s write, forwarding writes to secondary
S: 100 mb/s write, 100 mb/s read
The load is still more balanced. Also "max-loaded server" of our replica set is always less loaded with the secondaryPrefered option. Therefore I fail to see why primary-only reads offer more availability :/
15 Eyl 2015 19:30 tarihinde "Asya Kamsky" <as...@mongodb.com> yazdı:
> You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/NC4k5IdKi2I/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
> To post to this group, send email to mongod...@googlegroups.com.
> Visit this group at http://groups.google.com/group/mongodb-user.
> To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CAOe6dJA7P39qnoeuEgo5%3D4H2a5iyvSGJ_O3mzA5N5ELGmWJ%3D6Q%40mail.gmail.com.