MCPcopy
hub / github.com/dgraph-io/dgraph / WithNumAlphas

Method WithNumAlphas

dgraphtest/config.go:148–151  ·  view source on GitHub ↗

func newClusterConfigFrom(cc ClusterConfig) ClusterConfig { prefix := fmt.Sprintf("dgraphtest-%d", rand.NewSource(time.Now().UnixNano()).Int63()%1000000) defaultBackupVol := fmt.Sprintf("%v_backup", prefix) defaultExportVol := fmt.Sprintf("%v_export", prefix) cc.prefix = prefix cc.volumes = map

(n int)

Source from the content-addressed store, hash-verified

146
147// WithNumAlphas sets the number of alphas in the cluster
148func (cc ClusterConfig) WithNumAlphas(n int) ClusterConfig {
149 cc.numAlphas = n
150 return cc
151}
152
153// WithNumZeros sets the number of zero nodes in the Dgraph cluster
154func (cc ClusterConfig) WithNumZeros(n int) ClusterConfig {

Callers 15

TestCheckUpgradeFunction · 0.80
TestQueryDuplicateNodesFunction · 0.80
setupBulkClusterFunction · 0.80
setupTargetClusterFunction · 0.80
TestMCPSSEFunction · 0.80
TestMainFunction · 0.80
TestShortestPathFunction · 0.80
SetupSubTestMethod · 0.80

Calls

no outgoing calls

Tested by 15

TestCheckUpgradeFunction · 0.64
TestQueryDuplicateNodesFunction · 0.64
setupBulkClusterFunction · 0.64
setupTargetClusterFunction · 0.64
TestMCPSSEFunction · 0.64
TestMainFunction · 0.64
TestShortestPathFunction · 0.64
SetupSubTestMethod · 0.64