Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // ClusterName is the name of the cluster. ClusterName string `default:"loadtest" validate:"alpha"` // Number of application instances. AppInstanceCount int `default:"1" validate:"range:[1,)"` // Type of the EC2 instance for app. AppInstanceType string `default:"c5.xlarge" validate:"notempty"` // Number of agents, first agent and coordinator will share the same instance. AgentInstanceCount int `default:"2" validate:"range:[1,)"` // Type of the EC2 instance for agent. AgentInstanceType string `default:"t3.xlarge" validate:"notempty"` // Logs the command output (stdout & stderr) to home directory. EnableAgentFullLogs bool `default:"true"` // Type of the EC2 instance for proxy. ProxyInstanceType string `default:"m4.xlarge" validate:"notempty"` // Path to the SSH public key. SSHPublicKey string `default:"~/.ssh/id_rsa.pub" validate:"notempty"` // Number of DB instances. DBInstanceCount int `default:"1" validate:"range:[1,)"` // Type of the DB instance. DBInstanceType string `default:"db.r4.large" validate:"oneof:{db.r4.large}"` // Type of the DB instance - postgres or mysql. DBInstanceEngine string `default:"aurora-postgresql" validate:"oneof:{aurora-mysql, aurora-postgresql}"` // Username to connect to the DB. DBUserName string `default:"mmuser" validate:"notempty"` // Password to connect to the DB. DBPassword string `default:"mostest80098bigpass_" validate:"notempty"` // URL from where to download Mattermost release. // This can also point to a local binary path if the user wants to run loadtest // on a custom build. The path should be prefixed with "file://". In that case, // only the binary gets replaced, and the rest of the build comes from the latest // stable release. MattermostDownloadURL string `default:"https://latest.mattermost.com/mattermost-enterprise-linux" validate:"url"` // Path to the Mattermost EE license file. MattermostLicenseFile string `default:"" validate:"file"` // Mattermost instance sysadmin e-mail. AdminEmail string `default:"sysadmin@sample.mattermost.com" validate:"email"` // Mattermost instance sysadmin user name. AdminUsername string `default:"sysadmin" validate:"notempty"` // Mattermost instance sysadmin password. AdminPassword string `default:"Sys@dmin-sample1" validate:"notempty"` // URL from where to download load-test-ng binaries and configuration files. // The configuration files provided in the package will be overridden in // the deployment process. LoadTestDownloadURL string `` /* 165-byte string literal not displayed */ ElasticSearchSettings ElasticSearchSettings LogSettings logger.Settings Report report.Config }
Config contains the necessary data to deploy and provision a load test environment.
func ReadConfig ¶
ReadConfig reads the configuration file from the given string. If the string is empty, it will return a config with default values.
type ElasticSearchSettings ¶
type ElasticSearchSettings struct { // Elasticsearch instances number. InstanceCount int // Elasticsearch instance type to be created. InstanceType string // Elasticsearch version to be deployed. Version float64 // Id of the VPC associated with the instance to be created. VpcID string // Set to true if the AWSServiceRoleForAmazonElasticsearchService role should be created. CreateRole bool }
ElasticSearchSettings contains the necessary data to configure an ElasticSearch instance to be deployed and provisioned.
Click to show internal directories.
Click to hide internal directories.