Skip to content

Commit 9be4255

Browse files
committed
increase load
1 parent bd40976 commit 9be4255

File tree

1 file changed

+5
-5
lines changed
  • deployment/modules/gcp/cloudbuild/preloader

1 file changed

+5
-5
lines changed

deployment/modules/gcp/cloudbuild/preloader/main.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,24 @@ resource "google_cloudbuild_trigger" "preloader_trigger" {
6565
## TODO(phboneff): move to its own container / cloudrun / batch job.
6666
## Preload entries.
6767
## Leave enough time for the preloader to run, until the token expires.
68-
## Stop after 40k entries, this is what gets copied within 60 minutes.
68+
## Stop after 20k entries, this is what gets copied within 60 minutes.
6969
timeout = "4200s" // 60 minutes
7070
step {
7171
id = "ct_preloader"
7272
name = "golang"
7373
script = <<EOT
7474
START_INDEX=$(curl -H "Authorization: Bearer $(cat /workspace/cb_access)" ${var.monitoring_url}/checkpoint | head -2 | tail -1)
75-
END_INDEX=$(($START_INDEX+400000))
75+
END_INDEX=$(($START_INDEX+2000000))
7676
echo "Will run preloader between $START_INDEX and $END_INDEX"
7777
go run github.com/google/certificate-transparency-go/preload/preloader@master \
7878
--target_log_uri=${var.submission_url}/ \
7979
--target_bearer_token="$(cat /workspace/cb_identity)" \
8080
--source_log_uri=${var.source_log_uri} \
8181
--start_index=$START_INDEX \
8282
--end_index=$END_INDEX \
83-
--num_workers=20 \
84-
--parallel_fetch=20 \
85-
--parallel_submit=20
83+
--num_workers=300 \
84+
--parallel_fetch=300 \
85+
--parallel_submit=300
8686
EOT
8787
wait_for = ["bearer_token"]
8888
timeout = "3600s" // 60 minutes, duration of token validity.

0 commit comments

Comments
 (0)