Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating apps directory size and test instance type #449

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ variable "hub_instance_type" {

variable "agentless_gw_instance_type" {
type = string
default = "r6i.xlarge"
default = "r6i.2xlarge"
description = "Ec2 instance type for the Agentless Gateway"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ variable "hub_instance_type" {

variable "gw_instance_type" {
type = string
default = "r6i.xlarge"
default = "r6i.2xlarge"
description = "Ec2 instance type for the DSF gw"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ variable "hub_instance_type" {

variable "gw_instance_type" {
type = string
default = "r6i.xlarge"
default = "r6i.2xlarge"
description = "Ec2 instance type for the Agentless Gateway"
}

Expand Down
4 changes: 2 additions & 2 deletions examples/aws/poc/dsf_deployment/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,13 @@ variable "agentless_gw_hadr" {

variable "hub_instance_type" {
type = string
default = "r6i.xlarge"
default = "r6i.2xlarge"
jagdeep-sonar marked this conversation as resolved.
Show resolved Hide resolved
description = "Ec2 instance type for the DSF Hub"
}

variable "agentless_gw_instance_type" {
type = string
default = "r6i.xlarge"
default = "r6i.2xlarge"
description = "Ec2 instance type for the Agentless Gateway"
}

Expand Down
4 changes: 2 additions & 2 deletions examples/aws/poc/sonar_basic_deployment/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ variable "subnet_ids" {

variable "hub_instance_type" {
type = string
default = "r6i.xlarge"
default = "r6i.2xlarge"
description = "Ec2 instance type for the DSF Hub"
}

variable "agentless_gw_instance_type" {
type = string
default = "r6i.xlarge"
default = "r6i.2xlarge"
description = "Ec2 instance type for the Agentless Gateway"
}

Expand Down
4 changes: 2 additions & 2 deletions examples/aws/poc/sonar_hadr_deployment/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ variable "subnet_ids" {

variable "hub_instance_type" {
type = string
default = "r6i.xlarge"
default = "r6i.2xlarge"
description = "Ec2 instance type for the DSF Hub"
}

variable "agentless_gw_instance_type" {
type = string
default = "r6i.xlarge"
default = "r6i.2xlarge"
description = "Ec2 instance type for the Agentless Gateway"
}

Expand Down
2 changes: 1 addition & 1 deletion modules/aws/agentless-gw/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ variable "use_public_ip" {

variable "instance_type" { # https://docs.imperva.com/bundle/z-kb-articles-km/page/a6defd0e.html
type = string
default = "r6i.xlarge" # 4 cores & 32GB ram
default = "r6i.2xlarge" # 8 cores & 64GB ram
description = "Ec2 instance type for the Agentless Gateway"
}

Expand Down
2 changes: 1 addition & 1 deletion modules/aws/sonar-base-instance/setup.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function create_lvm() {
# Create logical volumes with lowercase names
lvcreate --name logs -L 20G $volume_group_name
lvcreate --name local -L 20G $volume_group_name
lvcreate --name apps -L 30G $volume_group_name
lvcreate --name apps -L 40G $volume_group_name
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest increasing the default total size of the default storage size in the base sonar instance (And maybe from all the relevant examples as well.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in examples, disk_size is already 250gb for hub and 150gb for agentless_gw. how much do you suggest to increase this?

variable "hub_ebs_details" {
type = object({
disk_size = number
provisioned_iops = number
throughput = number
})
description = "DSF Hub compute instance volume attributes. More info in sizing doc - https://docs.imperva.com/bundle/v4.10-sonar-installation-and-setup-guide/page/78729.htm"
default = {
disk_size = 250
provisioned_iops = 0
throughput = 125
}
}
variable "agentless_gw_ebs_details" {
type = object({
disk_size = number
provisioned_iops = number
throughput = number
})
description = "DSF Agentless Gateway compute instance volume attributes. More info in sizing doc - https://docs.imperva.com/bundle/v4.10-sonar-installation-and-setup-guide/page/78729.htm"
default = {
disk_size = 150
provisioned_iops = 0
throughput = 125
}
}

lvcreate -l 100%FREE --name data $volume_group_name

# Format the logical volumes with desired filesystem (e.g., xfs)
Expand Down