upped buffer sizes and switched to 2xlarge to increase speed
This commit is contained in:
parent
1df9a234cf
commit
8dce702e8d
5 changed files with 10 additions and 8 deletions
|
|
@ -45,7 +45,7 @@ func main() {
|
|||
flag.StringVar(&cfg.IconsDir, "icons-dir", "icons", "Directory with downloaded icons")
|
||||
flag.StringVar(&cfg.SiteBucket, "site-bucket", "everytab-site", "S3 bucket for the static site")
|
||||
flag.IntVar(&cfg.EntriesPerBundle, "entries-per-bundle", 120, "Tabs per bundle JSON file")
|
||||
flag.IntVar(&cfg.Concurrency, "concurrency", 20, "Concurrent icon conversions")
|
||||
flag.IntVar(&cfg.Concurrency, "concurrency", 40, "Concurrent icon conversions")
|
||||
flag.IntVar(&cfg.Uploaders, "uploaders", 10, "Concurrent S3 bundle uploads")
|
||||
flag.BoolVar(&cfg.DryRun, "dry-run", false, "Write bundles to local disk instead of S3")
|
||||
flag.StringVar(&cfg.OutputDir, "output-dir", "bundles", "Local output dir for dry-run mode")
|
||||
|
|
@ -121,8 +121,8 @@ func main() {
|
|||
data []byte
|
||||
}
|
||||
|
||||
hostCh := make(chan HostRow, cfg.EntriesPerBundle*10)
|
||||
entryCh := make(chan BundleEntry, cfg.EntriesPerBundle*10)
|
||||
hostCh := make(chan HostRow, 6000)
|
||||
entryCh := make(chan BundleEntry, 6000)
|
||||
uploadCh := make(chan bundleJob, cfg.Uploaders*2)
|
||||
|
||||
// Stage 1: DB fetcher — continuously fetches pages into hostCh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue