You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/experimental/migrate/gcp/main.go
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -40,8 +40,9 @@ var (
40
40
spanner=flag.String("spanner", "", "Spanner resource URI ('projects/.../...')")
41
41
42
42
sourceURL=flag.String("source_url", "", "Base URL for the source log.")
43
-
numWorkers=flag.Int("num_workers", 30, "Number of migration worker goroutines.")
44
-
persistentAntispam=flag.Bool("antispam", false, "EXPERIMENTAL: Set to true to enable GCP-based persistent antispam storage")
43
+
numWorkers=flag.Uint("num_workers", 30, "Number of migration worker goroutines.")
44
+
persistentAntispam=flag.Bool("antispam", false, "EXPERIMENTAL: Set to true to enable GCP-based persistent antispam storage.")
45
+
antispamBatchSize=flag.Uint("antispam_batch_size", 1500, "EXPERIMENTAL: maximum number of antispam rows to insert in a batch (1500 gives good performance with 300 Spanner PU and above, smaller values may be required for smaller allocs).")
45
46
)
46
47
47
48
funcmain() {
@@ -88,7 +89,13 @@ func main() {
88
89
varantispam tessera.Antispam
89
90
// Persistent antispam is currently experimental, so there's no terraform or documentation yet!
0 commit comments