[#343] Replace default policy in authmate
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
3277293bb3
commit
fdc07b8dc1
1 changed files with 4 additions and 4 deletions
|
@ -327,13 +327,13 @@ func buildPlacementPolicy(placementRules string) (*netmap.PlacementPolicy, error
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
REP 1 IN X // place one copy of object
|
REP 2 IN X // place two copies of object
|
||||||
CBF 1
|
CBF 3
|
||||||
SELECT 2 From * AS X // in container of two nodes
|
SELECT 2 From * AS X // in container of two nodes
|
||||||
*/
|
*/
|
||||||
pp := new(netmap.PlacementPolicy)
|
pp := new(netmap.PlacementPolicy)
|
||||||
pp.SetContainerBackupFactor(1)
|
pp.SetContainerBackupFactor(3)
|
||||||
pp.SetReplicas([]*netmap.Replica{newReplica("X", 1)}...)
|
pp.SetReplicas([]*netmap.Replica{newReplica("X", 2)}...)
|
||||||
pp.SetSelectors([]*netmap.Selector{newSimpleSelector("X", 2)}...)
|
pp.SetSelectors([]*netmap.Selector{newSimpleSelector("X", 2)}...)
|
||||||
|
|
||||||
return pp, nil
|
return pp, nil
|
||||||
|
|
Loading…
Reference in a new issue