satellite/gc/bloomfilter: reduce number of filters in single zip
Current value is too big and can cause memory issues. With 500 bloom filters where single filter can go up to 2MB we can end up with 1GB zip which is more problematic if we don't want to download it before processing. Change-Id: I4b983afbcac39c718afbbeb764a30d32c4e80c08
This commit is contained in:
parent
5d775e61b1
commit
a3f84bcb0c
@ -17,6 +17,6 @@ type Config struct {
|
||||
|
||||
AccessGrant string `help:"Access Grant which will be used to upload bloom filters to the bucket" default:""`
|
||||
Bucket string `help:"Bucket which will be used to upload bloom filters" default:"" testDefault:"gc-queue"` // TODO do we need full location?
|
||||
ZipBatchSize int `help:"how many bloom filters will be packed in a single zip" default:"500" testDefault:"2"`
|
||||
ZipBatchSize int `help:"how many bloom filters will be packed in a single zip" default:"40" testDefault:"2"`
|
||||
ExpireIn time.Duration `help:"how long bloom filters will remain in the bucket for gc/sender to consume before being automatically deleted" default:"336h"`
|
||||
}
|
||||
|
2
scripts/testdata/satellite-config.yaml.lock
vendored
2
scripts/testdata/satellite-config.yaml.lock
vendored
@ -566,7 +566,7 @@ contact.external-address: ""
|
||||
# garbage-collection-bf.use-sync-observer: true
|
||||
|
||||
# how many bloom filters will be packed in a single zip
|
||||
# garbage-collection-bf.zip-batch-size: 500
|
||||
# garbage-collection-bf.zip-batch-size: 40
|
||||
|
||||
# Access to download the bloom filters. Needs read and write permission.
|
||||
# garbage-collection.access-grant: ""
|
||||
|
Loading…
Reference in New Issue
Block a user