Skip to content

Commit

Permalink
Add hint for QPS
Browse files Browse the repository at this point in the history
  • Loading branch information
zanetworker committed Jan 16, 2024
1 parent 5c129ca commit 9e5abd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ var rootCmd = &cobra.Command{
green := color.New(color.FgGreen)

italicGreen := green.Add(color.Italic)
italicGreen.Println("❗️Hint: Run the following query in an existing cluster to estimate your QPS:")
italicGreen.Println("❗️Hint 1: Run the following query in an existing cluster to estimate your QPS:")
italicGreen.Println(`sum(rate(apiserver_request_total{namespace=~"clusters-$name*"}[2m])) by (namespace)`)
italicGreen.Println("❗Hint 2: Low: 0-1000 QPS, Medium: 1000-5000 QPS, High: 5000-10000 QPS, Very High: 10000-20000 QPS")

resources.APIRate = promptForInput("Enter the estimated API rate (QPS)")
}
Expand Down

0 comments on commit 9e5abd2

Please sign in to comment.