The following ranges are not working when I try to shard a collection using the NodeID field (It does not work using NodeID as a string or number)
sh.addTagRange( "Contador_Noticias_UN.Contador", { NodeID: /[0-9]*0$/ }, { NodeID: /[0-9]*3$/ }, "SHARD1" ) sh.addTagRange( "Contador_Noticias_UN.Contador", { NodeID: /[0-9]*4$/ }, { NodeID: /[0-9]*6$/ }, "SHARD2" ) sh.addTagRange( "Contador_Noticias_UN.Contador", { NodeID: /[0-9]*7$/ }, { NodeID: /[0-9]*9$/ }, "SHARD3" )
This tag ranges, must divide my workload depending of the last number of the NodeID value to 3 servers identified by the tags SHARD1, SHARD2 and SHARD3.
- is related to
-
SERVER-9527 create shard tag ranges for name spaces using wildcards or regex matching
- Open