Skip to content

Commit 58ecf41

Browse files
committed
update
1 parent a2b23ae commit 58ecf41

File tree

2 files changed

+28
-29
lines changed

2 files changed

+28
-29
lines changed

main.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ import (
2020
"errors"
2121
"fmt"
2222
"os"
23+
"sync"
2324

2425
pb "pb/cmd"
2526
"pb/pkg/analytics"
2627
"pb/pkg/config"
27-
"sync"
2828

2929
"github.com/spf13/cobra"
3030
)
@@ -188,8 +188,8 @@ var query = &cobra.Command{
188188

189189
var cluster = &cobra.Command{
190190
Use: "cluster",
191-
Short: "Cluster operations for parseable.",
192-
Long: "\nCluster operations for parseable cluster on kubernetes.",
191+
Short: "Cluster operations for Parseable.",
192+
Long: "\nCluster operations for Parseable cluster on Kubernetes.",
193193
PersistentPreRunE: combinedPreRun,
194194
PersistentPostRun: func(cmd *cobra.Command, args []string) {
195195
if os.Getenv("PB_ANALYTICS") == "disable" {
@@ -206,7 +206,7 @@ var cluster = &cobra.Command{
206206
var list = &cobra.Command{
207207
Use: "list",
208208
Short: "List parseable on kubernetes cluster",
209-
Long: "\nlist command is used to list parseable oss installations.",
209+
Long: "\nlist command is used to list Parseable oss installations.",
210210
PersistentPreRunE: combinedPreRun,
211211
PersistentPostRun: func(cmd *cobra.Command, args []string) {
212212
if os.Getenv("PB_ANALYTICS") == "disable" {
@@ -222,8 +222,8 @@ var list = &cobra.Command{
222222

223223
var show = &cobra.Command{
224224
Use: "show",
225-
Short: "Show outputs values defined when installing parseable on kubernetes cluster",
226-
Long: "\nshow command is used to get values in parseable.",
225+
Short: "Show outputs values defined when installing Parseable on kubernetes cluster",
226+
Long: "\nshow command is used to get values in Parseable.",
227227
PersistentPreRunE: combinedPreRun,
228228
PersistentPostRun: func(cmd *cobra.Command, args []string) {
229229
if os.Getenv("PB_ANALYTICS") == "disable" {
@@ -239,8 +239,8 @@ var show = &cobra.Command{
239239

240240
var uninstall = &cobra.Command{
241241
Use: "uninstall",
242-
Short: "Uninstall parseable on kubernetes cluster",
243-
Long: "\nuninstall command is used to uninstall parseable oss/enterprise on k8s cluster..",
242+
Short: "Uninstall Parseable on kubernetes cluster",
243+
Long: "\nuninstall command is used to uninstall Parseable oss/enterprise on k8s cluster.",
244244
PersistentPreRunE: combinedPreRun,
245245
PersistentPostRun: func(cmd *cobra.Command, args []string) {
246246
if os.Getenv("PB_ANALYTICS") == "disable" {

pkg/installer/plans.go

+20-21
Original file line numberDiff line numberDiff line change
@@ -31,45 +31,45 @@ type Plan struct {
3131
CPUAndMemorySpecs string
3232
CPU string
3333
Memory string
34+
Mode string
35+
Description string
3436
}
3537

3638
// Plans define the plans with clear CPU and memory specs for consumption
3739
var Plans = map[string]Plan{
3840
"Playground": {
3941
Name: "Playground",
40-
IngestionSpeed: "100 events/sec",
41-
PerDayIngestion: "~1GB",
42-
QueryPerformance: "Basic performance",
43-
CPUAndMemorySpecs: "1 CPUs, 1GB RAM",
42+
Description: "Suitable for testing and PoC",
43+
IngestionSpeed: "Up to 5 MiB/sec",
44+
CPUAndMemorySpecs: "1 vCPU, 1Gi RAM",
4445
CPU: "1",
4546
Memory: "1Gi",
47+
Mode: "Standalone",
4648
},
4749
"Small": {
4850
Name: "Small",
49-
IngestionSpeed: "1000 events/sec",
50-
PerDayIngestion: "~10GB",
51-
QueryPerformance: "Basic performance",
52-
CPUAndMemorySpecs: "2 CPUs, 4GB RAM",
51+
Description: "Suitable for production grade, small volume workloads",
52+
IngestionSpeed: "Up to 20 MiB/sec",
53+
CPUAndMemorySpecs: "2 vCPUs, 4Gi RAM",
5354
CPU: "2",
5455
Memory: "4Gi",
56+
Mode: fmt.Sprintf("Distributed (1 Query pod, 3 Ingest pod)"),
5557
},
5658
"Medium": {
5759
Name: "Medium",
58-
IngestionSpeed: "10,000 events/sec",
59-
PerDayIngestion: "~100GB",
60-
QueryPerformance: "Moderate performance",
61-
CPUAndMemorySpecs: "4 CPUs, 16GB RAM",
60+
IngestionSpeed: "Up to 50 MiB/sec",
61+
CPUAndMemorySpecs: "4 vCPUs, 16Gi RAM",
6262
CPU: "4",
6363
Memory: "16Gi",
64+
Mode: fmt.Sprintf("Distributed (1 Query pod, 3 Ingest pod)"),
6465
},
6566
"Large": {
6667
Name: "Large",
67-
IngestionSpeed: "100,000 events/sec",
68-
PerDayIngestion: "~1TB",
69-
QueryPerformance: "High performance",
70-
CPUAndMemorySpecs: "8 CPUs, 32GB RAM",
68+
IngestionSpeed: "Up to 100 MiB/sec",
69+
CPUAndMemorySpecs: "8 vCPUs, 32Gi RAM",
7170
CPU: "8",
7271
Memory: "32Gi",
72+
Mode: fmt.Sprintf("Distributed (1 Query pod, 3 Ingest pod)"),
7373
},
7474
}
7575

@@ -84,16 +84,15 @@ func promptUserPlanSelection() (Plan, error) {
8484
// Custom template for displaying plans
8585
templates := &promptui.SelectTemplates{
8686
Label: "{{ . }}",
87-
Active: "▶ {{ .Name | yellow }} ({{ .IngestionSpeed | cyan }})",
88-
Inactive: " {{ .Name | yellow }} ({{ .IngestionSpeed | cyan }})",
87+
Active: "▶ {{ .Name | yellow }} ",
88+
Inactive: " {{ .Name | yellow }} ",
8989
Selected: "{{ `Selected plan:` | green }} '{{ .Name | green }}' ✔ ",
9090
Details: `
9191
--------- Plan Details ----------
9292
{{ "Plan:" | faint }} {{ .Name }}
9393
{{ "Ingestion Speed:" | faint }} {{ .IngestionSpeed }}
94-
{{ "Per Day Ingestion:" | faint }} {{ .PerDayIngestion }}
95-
{{ "Query Performance:" | faint }} {{ .QueryPerformance }}
96-
{{ "CPU & Memory:" | faint }} {{ .CPUAndMemorySpecs }}`,
94+
{{ "Infrastructure:" | faint }} {{ .Mode }}
95+
{{ "CPU & Memory:" | faint }} {{ .CPUAndMemorySpecs }} per pod`,
9796
}
9897

9998
// Add a note about the default plan in the label

0 commit comments

Comments
 (0)