Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
Description
Does it take into consideration any estimation of the index size and of the available space on the node or can it place an index on a node without enough available space to store it ?
As of now, index size and available space are not taken into account. It is only based on the “number” of indexes on each node to keep things load balanced.
So, you confirm that if I have 3 nodes :
- if I create 2 index, they will not be on the same node ?
- if I create 3 index, there can not be 2 index on the same node ?
Yes for both.
Does this logic also apply when restoring a backup with indexes on another cluster (where backup UID can not apply) ?
Yes.
For our (SE) understanding, where is the round robin counter stored ?
There is no counter. It looks at the number of indexes on each node and the one with minimum is chosen.
If all nodes have same number of indexes, then its the first node in the list.
Thanks
Deep
On Aug 23, 2016, at 12:07 PM, Francois Cerbelle <francois.cerbelle@couchbase.com> wrote:
Hi,
Does it take into consideration any estimation of the index size and of the available space on the node or can it place an index on a node without enough available space to store it ?
So, you confirm that if I have 3 nodes :
- if I create 2 index, they will not be on the same node ?
- if I create 3 index, there can not be 2 index on the same node ?
Does this logic also apply when restoring a backup with indexes on another cluster (where backup UID can not apply) ?
For our (SE) understanding, where is the round robin counter stored ?
Regards / Cordialement
Francois Cerbelle
Solutions Engineer
Mobile : +33782997266
Skype : fanfan75010
–
Couchbase
2440 W El Camino Real #101, Mountain View, CA 94040, USA, info@couchbase.com, +1 650-417-7500
11-21 Paul St, London EC2A4JU, UK, emea@couchbase.com, 0203 837 9130
133 Rue de l’Université, 75007 Paris, France, vincent@couchbase.com
Le 23 août 2016 à 20:01, Deepkaran Salooja <Deepkaran@couchbase.com> a écrit :
Hello,
Index placement is round robin. Also, if some of the existing indexes are deleted on a node, that is
taken into account when placing the new indexes, to allow more balanced topology.
Thanks,
Deep
On Aug 23, 2016, at 10:07 AM, Francois Cerbelle <francois.cerbelle@couchbase.com> wrote:
Hi guys,
When there are 2 or more nodes with index service enabled in a cluster. What is the distribution logic for creating new GSI/MOI indexes. I thought that it was round robin, as some of my colleagues, but the online doc says randomly, as some of my colleagues think… And my customer is asking me.