From fdc07b8dc15272e2aabcbd7bb8c19e435c94e392 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Sun, 6 Feb 2022 03:18:16 +0300 Subject: [PATCH] [#343] Replace default policy in authmate Signed-off-by: Angira Kekteeva --- authmate/authmate.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/authmate/authmate.go b/authmate/authmate.go index eb71b8ea..870f5edc 100644 --- a/authmate/authmate.go +++ b/authmate/authmate.go @@ -327,13 +327,13 @@ func buildPlacementPolicy(placementRules string) (*netmap.PlacementPolicy, error } /* - REP 1 IN X // place one copy of object - CBF 1 + REP 2 IN X // place two copies of object + CBF 3 SELECT 2 From * AS X // in container of two nodes */ pp := new(netmap.PlacementPolicy) - pp.SetContainerBackupFactor(1) - pp.SetReplicas([]*netmap.Replica{newReplica("X", 1)}...) + pp.SetContainerBackupFactor(3) + pp.SetReplicas([]*netmap.Replica{newReplica("X", 2)}...) pp.SetSelectors([]*netmap.Selector{newSimpleSelector("X", 2)}...) return pp, nil