Skip to content

Commit ccff4fe

Browse files
authored
Tune for lower latency (transparency-dev#594)
1 parent ad18efc commit ccff4fe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/conformance/gcp/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func main() {
7171
// Persistent antispam is currently experimental, so there's no terraform or documentation yet!
7272
if *persistentAntispam {
7373
asOpts := gcp_as.AntispamOpts{
74-
MaxBatchSize: 64,
74+
MaxBatchSize: 1024,
7575
PushbackThreshold: 1024,
7676
}
7777
antispam, err = gcp_as.NewAntispam(ctx, fmt.Sprintf("%s-antispam", *spanner), asOpts)
@@ -83,9 +83,9 @@ func main() {
8383
appender, shutdown, _, err := tessera.NewAppender(ctx, driver, tessera.NewAppendOptions().
8484
WithCheckpointSigner(s, a...).
8585
WithCheckpointInterval(10*time.Second).
86-
WithBatching(1024, time.Second).
86+
WithBatching(512, 300*time.Millisecond).
8787
WithPushback(10*4096).
88-
WithAntispam(256, antispam))
88+
WithAntispam(256<<10, antispam))
8989
if err != nil {
9090
klog.Exit(err)
9191
}

0 commit comments

Comments
 (0)