File tree 1 file changed +5
-5
lines changed
deployment/modules/gcp/cloudbuild/preloader
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -65,24 +65,24 @@ resource "google_cloudbuild_trigger" "preloader_trigger" {
65
65
# # TODO(phboneff): move to its own container / cloudrun / batch job.
66
66
# # Preload entries.
67
67
# # 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.
69
69
timeout = " 4200s" // 60 minutes
70
70
step {
71
71
id = " ct_preloader"
72
72
name = " golang"
73
73
script = << EOT
74
74
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 ))
76
76
echo "Will run preloader between $START_INDEX and $END_INDEX"
77
77
go run github.com/google/certificate-transparency-go/preload/preloader@master \
78
78
--target_log_uri=${ var . submission_url } / \
79
79
--target_bearer_token="$(cat /workspace/cb_identity)" \
80
80
--source_log_uri=${ var . source_log_uri } \
81
81
--start_index=$START_INDEX \
82
82
--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
86
86
EOT
87
87
wait_for = [" bearer_token" ]
88
88
timeout = " 3600s" // 60 minutes, duration of token validity.
You can’t perform that action at this time.
0 commit comments