INNER CODE UNIT · Go

main

oneclickvirt/ecs · cmd/ecs-canary/main.go:14

func main() {
	flags := flag.NewFlagSet("ecs-canary", flag.ExitOnError)
	offline := flags.Bool("offline", false, "force every component to use its embedded registry")
	standard := flags.Bool("standard", false, "run the complete standard structured profile")
	tcp := flags.Bool("tcp", false, "run structured TCP probes")
	hardware := flags.Bool("hardware", false, "run the bounded structured hardware stage")
	deepDiskPath := flags.String("deep-disk-path", "", "run the deep fio matrix on one explicit mounted directory")
	deepBurnDuration := flags.Duration("deep-burn-duration", 0, "run an explicit bounded CPU burn")
	maxDuration := flags.Duration("canary-deadline", 30*time.Second, "canary deadline")
	_ = flags.Parse(os.Args[1:])
	config := canaryConfig(*offline, *standard, *tcp, *hardware, *deepDiskPath, *deepBurnDuration, *maxDuration)
	preCheck := api.NetCheckResult{Connected: !*offline, StackType: "IPv4", HasIPv4: true}
	ctx := context.Background()
	cancel := func() {}
	if *maxDuration > 0 {
		ctx, cancel = context.WithTimeout(ctx, *maxDuration)
	}
	defer cancel()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…