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/sharded-test-server/main.go
+5-3
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ import (
24
24
"os"
25
25
"path/filepath"
26
26
"strings"
27
+
"time"
27
28
28
29
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
29
30
"k8s.io/apimachinery/pkg/types"
@@ -46,6 +47,7 @@ func main() {
46
47
logDirPath:=flag.String("log-dir-path", "", "Path to the log files. If empty, log files are stored in the dot directories.")
47
48
workDirPath:=flag.String("work-dir-path", "", "Path to the working directory where the .kcp* dot directories are created. If empty, the working directory is the current directory.")
48
49
numberOfShards:=flag.Int("number-of-shards", 1, "The number of shards to create. The first created is assumed root.")
50
+
cacheSyntheticDelay:=flag.Duration("cache-synthetic-delay", 0, "The duration of time the cache server will inject a delay for to all inbound requests.")
49
51
quiet:=flag.Bool("quiet", false, "Suppress output of the subprocesses")
50
52
51
53
// split flags into --proxy-*, --shard-* and everything else (generic). The former are
fs.DurationVar(&o.SyntheticDelay, "synthetic-delay", 0, "The duration of time the cache server will inject a delay for to all inbound requests. Useful for testing.")
0 commit comments