From f1a82e588c81a42dcce280b98f900c4821150fee Mon Sep 17 00:00:00 2001 From: Brandon Iglesias Date: Tue, 25 Sep 2018 11:38:37 -0400 Subject: [PATCH] updating the reed solomon numbers (#350) * Update config.go * updating captplanet * Fix captplanet setup command for >= 100 nodes --- cmd/captplanet/run.go | 2 +- cmd/captplanet/setup.go | 2 +- pkg/miniogw/config.go | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/captplanet/run.go b/cmd/captplanet/run.go index 66972a11b..9cca8dfc2 100644 --- a/cmd/captplanet/run.go +++ b/cmd/captplanet/run.go @@ -21,7 +21,7 @@ import ( ) const ( - storagenodeCount = 50 + storagenodeCount = 100 ) // Satellite is for configuring client diff --git a/cmd/captplanet/setup.go b/cmd/captplanet/setup.go index a5c422381..165f3829b 100644 --- a/cmd/captplanet/setup.go +++ b/cmd/captplanet/setup.go @@ -145,7 +145,7 @@ func cmdSetup(cmd *cobra.Command, args []string) (err error) { for i := 0; i < len(runCfg.StorageNodes); i++ { storagenodePath := filepath.Join(setupCfg.BasePath, fmt.Sprintf("f%d", i)) - storagenode := fmt.Sprintf("storage-nodes.%02d.", i) + storagenode := fmt.Sprintf("storage-nodes.%03d.", i) overrides[storagenode+"identity.cert-path"] = filepath.Join( storagenodePath, "identity.cert") overrides[storagenode+"identity.key-path"] = filepath.Join( diff --git a/pkg/miniogw/config.go b/pkg/miniogw/config.go index 0b30e380c..0ffd6c3cd 100644 --- a/pkg/miniogw/config.go +++ b/pkg/miniogw/config.go @@ -29,10 +29,10 @@ import ( type RSConfig struct { MaxBufferMem int `help:"maximum buffer memory (in bytes) to be allocated for read buffers" default:"0x400000"` ErasureShareSize int `help:"the size of each new erasure sure in bytes" default:"1024"` - MinThreshold int `help:"the minimum pieces required to recover a segment. k." default:"20"` - RepairThreshold int `help:"the minimum safe pieces before a repair is triggered. m." default:"30"` - SuccessThreshold int `help:"the desired total pieces for a segment. o." default:"40"` - MaxThreshold int `help:"the largest amount of pieces to encode to. n." default:"50"` + MinThreshold int `help:"the minimum pieces required to recover a segment. k." default:"29"` + RepairThreshold int `help:"the minimum safe pieces before a repair is triggered. m." default:"35"` + SuccessThreshold int `help:"the desired total pieces for a segment. o." default:"80"` + MaxThreshold int `help:"the largest amount of pieces to encode to. n." default:"95"` } // MinioConfig is a configuration struct that keeps details about starting