Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

More efficient zone usage #92

Open
garycourt opened this issue Jan 18, 2012 · 2 comments
Open

More efficient zone usage #92

garycourt opened this issue Jan 18, 2012 · 2 comments

Comments

@garycourt
Copy link

When a node needs to get data from another shard (such as during a get or view), it should choose a shard/node that is within the same zone as the current node (if up/available) before choosing a node that is outside of it's zone.

Currently, zones are only used to determine where shard copies are distributed; views are spread across all zones.

@kocolosk
Copy link
Contributor

Hi @garycourt, I definitely see the need for a zone-aware selection of shards during stale=ok views, where BigCouch only selects one copy of each database shard. When it comes to normal document and view requests BigCouch asks for results from all copies of a shard and discards slower responses. What's the rationale for avoiding non-local zones in that case?

@garycourt
Copy link
Author

While I had gets and stale views in mind, you're right to state that it would not be appropriate for normal views.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants