updating the reed solomon numbers (#350)

* Update config.go

* updating captplanet

* Fix captplanet setup command for >= 100 nodes
This commit is contained in:
Brandon Iglesias 2018-09-25 11:38:37 -04:00 committed by Kaloyan Raev
parent 5c226238f3
commit f1a82e588c
3 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ import (
) )
const ( const (
storagenodeCount = 50 storagenodeCount = 100
) )
// Satellite is for configuring client // Satellite is for configuring client

View File

@ -145,7 +145,7 @@ func cmdSetup(cmd *cobra.Command, args []string) (err error) {
for i := 0; i < len(runCfg.StorageNodes); i++ { for i := 0; i < len(runCfg.StorageNodes); i++ {
storagenodePath := filepath.Join(setupCfg.BasePath, fmt.Sprintf("f%d", 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( overrides[storagenode+"identity.cert-path"] = filepath.Join(
storagenodePath, "identity.cert") storagenodePath, "identity.cert")
overrides[storagenode+"identity.key-path"] = filepath.Join( overrides[storagenode+"identity.key-path"] = filepath.Join(

View File

@ -29,10 +29,10 @@ import (
type RSConfig struct { type RSConfig struct {
MaxBufferMem int `help:"maximum buffer memory (in bytes) to be allocated for read buffers" default:"0x400000"` 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"` 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"` 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:"30"` 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:"40"` 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:"50"` MaxThreshold int `help:"the largest amount of pieces to encode to. n." default:"95"`
} }
// MinioConfig is a configuration struct that keeps details about starting // MinioConfig is a configuration struct that keeps details about starting