-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathvariables.tf
159 lines (134 loc) · 3.59 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
#
# Set the following variables (mandatory)
#
# AWS credentials file
variable "aws_creds_file" {
description = "AWS credentials location"
type = string
default = ""
}
# AWS credentials file
variable "aws_creds_profile" {
description = "AWS credentials profile"
type = string
default = ""
}
variable "region" {
description = "AWS region"
type = string
default = ""
}
# Number of threads for the CQL stress tool
variable "num_threads" {
description = "Number of threads for the CQL stress tool"
type = string
default = "800"
}
# Throttling for the CQL stress tool
variable "throttle" {
description = "Throttling for the cQL stress tool (in ops/sec)"
type = string
default = "1200000/s"
}
################################################
#
# The following variables are not required to be modified to run the demo
# but you can still modify them if you want to try a different setup
#
# Throttling for the Cassandra stress tool
variable "loader_ops_per_sec" {
description = "Throttling for the Cassandra stress tool (in ops/sec)"
type = string
default = ""
}
variable "loader_read_ratio" {
description = "Read ratio"
type = string
default = "7"
}
variable "loader_write_ratio" {
description = "Write ratio"
type = string
default = "3"
}
# Scylla instance type
variable "scylla_node_type" {
description = "Type of the EC2 instance"
type = string
default = "i4i.2xlarge"
}
# Loader instance type
variable "loader_instance_type" {
description = "Type of the EC2 instance"
type = string
default = "c5.4xlarge" #"i4i.8xlarge"
}
# Amazon Machine Image (AMI) ID
variable "monitoring_ami_id" {
description = "AMI ID for the EC2 instance"
type = string
default = "ami-068cf3d51efeb20d6"
}
# Scylla (AMI) ID
variable "scylla_ami_id" {
description = "AMI ID for the EC2 instance"
type = string
default = "ami-09b70c072c282f906"
}
# Scylla (AMI) ID for Loader instance
variable "loader_ami_id" {
description = "AMI ID for the EC2 loader instance"
type = string
default = "ami-068cf3d51efeb20d6"
}
# Virtual Private Cloud (VPC) IP range
variable "custom_vpc" {
description = "CIDR block for the VPC"
type = string
default = "10.0.0.0/16"
}
# SUBNET Count
variable "subnet_count" {
description = "Type of the EC2 instance"
type = string
default = "1"
}
# Amazon Machine Image (AMI) Username
variable "instance_username" {
description = "username for the ScyllaDB AMI"
type = string
default = "ubuntu"
}
# Amazon Machine Image (AMI) Username
variable "instance_username_monitoring" {
description = "username for the Monitoring AMI"
type = string
default = "ubuntu"
}
# Monitoring instance type
variable "monitoring_instance_type" {
description = "Type of the EC2 instance"
type = string
default = "m5.4xlarge" #"m5.2xlarge"
}
# Environment name
variable "custom_name" {
description = "Name for the ScyllaDB Cloud environment"
type = string
default = "ScyllaDB-Tablets-DEMO"
}
# Number of ScyllaDB instances to create
variable "scylla_node_count" {
description = "Number of ScyllaDB instances to create"
type = string
default = "6"
}
# Number of Loaders instances to create
variable "loader_node_count" {
description = "Number of loader instances to create"
type = string
default = "1"
}
locals {
scylla_ips = join(",", concat(aws_instance.scylladb_seed.*.private_ip, aws_instance.scylladb_nonseeds.*.private_ip))
}