hardwarecal

package
v0.0.0-...-7cac148 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const INPUT_ERR_MSG = "Calculator only supports in range of %v <= N <= %v. Please run load testing by yourself to determine infrastructure need"

Variables

View Source
var AwsMtypes = []*Node{
	&Node{
		CpuCount: 2,
		RamGB:    8,
		Type:     "m5.large",
	},
	&Node{
		CpuCount: 4,
		RamGB:    16,
		Type:     "m5.xlarge",
	},
	&Node{
		CpuCount: 8,
		RamGB:    32,
		Type:     "m5.2xlarge",
	},
	&Node{
		CpuCount: 16,
		RamGB:    64,
		Type:     "m5.4xlarge",
	},
}

Functions

This section is empty.

Types

type HardwareCalPrompt

type HardwareCalPrompt struct {
	Prompt pmt.Prompt `toml:"-"`
	// contains filtered or unexported fields
}

func NewHardwareCalPrompt

func NewHardwareCalPrompt(p pmt.Prompt, cw *cli.Writer) *HardwareCalPrompt

func (*HardwareCalPrompt) Run

func (h *HardwareCalPrompt) Run() (err error)

type HardwareCalReq

type HardwareCalReq struct {
	NoOfNodes                     int
	FreqCountComplianceScanPerDay int
	FreqCountClientRunPerDay      int
	FreqCountEventFeedPerDay      int

	DataRetentionDays int

	ComplianceReportSizeKB int
	ClientRunReportSizeKB  int
	EventFeedSizeKB        int

	NoOfReplicasInOpenSearch int
}

func (*HardwareCalReq) FrontendCal

func (h *HardwareCalReq) FrontendCal() (frontendNodeCount, frontendRam int)

func (*HardwareCalReq) NewCal

func (h *HardwareCalReq) NewCal() (r *HardwareCalRes, err error)

func (*HardwareCalReq) OpenSearchCal

func (h *HardwareCalReq) OpenSearchCal() (osNodeCount, opensearchRam, osNodeStorage int, err error)

func (*HardwareCalReq) PostgresqlCal

func (h *HardwareCalReq) PostgresqlCal() (pgNodeRam, pgStorage int)

type HardwareCalRes

type HardwareCalRes struct {
	AutomateNode   *Node
	ChefServerNode *Node
	PostgresqlNode *Node
	OpenSearchNode *Node
}

type Node

type Node struct {
	InstanceCount int
	CpuCount      int
	RamGB         int
	StorageGB     int
	Type          string
}

func GetAwsMtype

func GetAwsMtype(ramGB int) (*Node, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL