Skip to content

Commit

Permalink
Merge pull request #13 from red5pro/feature/DEV-600
Browse files Browse the repository at this point in the history
DEV-600 Updated configuration to specify MIN/MAX no. of nodes
  • Loading branch information
iolesyk authored Apr 24, 2024
2 parents 5aebe4d + 2d0b89b commit 9ffb3d6
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 74 deletions.
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,19 +230,23 @@ module "red5pro_cluster" {
node_group_create = true # Linux or Mac OS only. true - create new Node group, false - not create new Node group
node_group_name = "terraform-node-group" # Node group name
# Origin node configuration
node_group_origins = 1 # Number of Origins
node_group_origins_min = 1 # Number of minimum Origins
node_group_origins_max = 20 # Number of maximum Origins
node_group_origins_instance_type = "VM.Standard.E4.Flex-1-4" # Origins OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_origins_capacity = 30 # Connections capacity for Origins
# Edge node configuration
node_group_edges = 1 # Number of Edges
node_group_edges_min = 1 # Number of minimum Edges
node_group_edges_max = 40 # Number of maximum Edges
node_group_edges_instance_type = "VM.Standard.E4.Flex-1-4" # Edges OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_edges_capacity = 300 # Connections capacity for Edges
# Transcoder node configuration
node_group_transcoders = 0 # Number of Transcoders
node_group_transcoders_min = 0 # Number of minimum Transcoders
node_group_transcoders_max = 20 # Number of maximum Transcoders
node_group_transcoders_instance_type = "VM.Standard.E4.Flex-1-4" # Transcoders OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_transcoders_capacity = 30 # Connections capacity for Transcoders
# Relay node configuration
node_group_relays = 0 # Number of Relays
node_group_relays_min = 0 # Number of minimum Relays
node_group_relays_max = 20 # Number of maximum Relays
node_group_relays_instance_type = "VM.Standard.E4.Flex-1-4" # Relays OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_relays_capacity = 30 # Connections capacity for Relays
}
Expand Down Expand Up @@ -356,19 +360,23 @@ module "red5pro_autoscaling" {
node_group_create = true # Linux or Mac OS only. true - create new Node group, false - not create new Node group
node_group_name = "terraform-node-group" # Node group name
# Origin node configuration
node_group_origins = 1 # Number of Origins
node_group_origins_min = 1 # Number of minimum Origins
node_group_origins_max = 20 # Number of maximum Origins
node_group_origins_instance_type = "VM.Standard.E4.Flex-1-4" # Origins OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_origins_capacity = 30 # Connections capacity for Origins
# Edge node configuration
node_group_edges = 1 # Number of Edges
node_group_edges_min = 1 # Number of minimum Edges
node_group_edges_max = 40 # Number of maximum Edges
node_group_edges_instance_type = "VM.Standard.E4.Flex-1-4" # Edges OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_edges_capacity = 300 # Connections capacity for Edges
# Transcoder node configuration
node_group_transcoders = 0 # Number of Transcoders
node_group_transcoders_min = 0 # Number of minimum Transcoders
node_group_transcoders_max = 20 # Number of maximum Transcoders
node_group_transcoders_instance_type = "VM.Standard.E4.Flex-1-4" # Transcoders OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_transcoders_capacity = 30 # Connections capacity for Transcoders
# Relay node configuration
node_group_relays = 0 # Number of Relays
node_group_relays_min = 0 # Number of minimum Relays
node_group_relays_max = 20 # Number of maximum Relays
node_group_relays_instance_type = "VM.Standard.E4.Flex-1-4" # Relays OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_relays_capacity = 30 # Connections capacity for Relays
}
Expand Down
12 changes: 8 additions & 4 deletions examples/autoscaling/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,23 @@ module "red5pro_autoscaling" {
node_group_create = true # Linux or Mac OS only. true - create new Node group, false - not create new Node group
node_group_name = "terraform-node-group" # Node group name
# Origin node configuration
node_group_origins = 1 # Number of Origins
node_group_origins_min = 1 # Number of minimum Origins
node_group_origins_max = 20 # Number of maximum Origins
node_group_origins_instance_type = "VM.Standard.E4.Flex-1-4" # Origins OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_origins_capacity = 30 # Connections capacity for Origins
# Edge node configuration
node_group_edges = 1 # Number of Edges
node_group_edges_min = 1 # Number of minimum Edges
node_group_edges_max = 40 # Number of maximum Edges
node_group_edges_instance_type = "VM.Standard.E4.Flex-1-4" # Edges OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_edges_capacity = 300 # Connections capacity for Edges
# Transcoder node configuration
node_group_transcoders = 0 # Number of Transcoders
node_group_transcoders_min = 0 # Number of minimum Transcoders
node_group_transcoders_max = 20 # Number of maximum Transcoders
node_group_transcoders_instance_type = "VM.Standard.E4.Flex-1-4" # Transcoders OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_transcoders_capacity = 30 # Connections capacity for Transcoders
# Relay node configuration
node_group_relays = 0 # Number of Relays
node_group_relays_min = 0 # Number of minimum Relays
node_group_relays_max = 20 # Number of maximum Relays
node_group_relays_instance_type = "VM.Standard.E4.Flex-1-4" # Relays OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_relays_capacity = 30 # Connections capacity for Relays
}
Expand Down
12 changes: 8 additions & 4 deletions examples/cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,23 @@ module "red5pro_cluster" {
node_group_create = true # Linux or Mac OS only. true - create new Node group, false - not create new Node group
node_group_name = "terraform-node-group" # Node group name
# Origin node configuration
node_group_origins = 1 # Number of Origins
node_group_origins_min = 1 # Number of minimum Origins
node_group_origins_max = 20 # Number of maximum Origins
node_group_origins_instance_type = "VM.Standard.E4.Flex-1-4" # Origins OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_origins_capacity = 30 # Connections capacity for Origins
# Edge node configuration
node_group_edges = 1 # Number of Edges
node_group_edges_min = 1 # Number of minimum Edges
node_group_edges_max = 40 # Number of maximum Edges
node_group_edges_instance_type = "VM.Standard.E4.Flex-1-4" # Edges OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_edges_capacity = 300 # Connections capacity for Edges
# Transcoder node configuration
node_group_transcoders = 0 # Number of Transcoders
node_group_transcoders_min = 0 # Number of minimum Transcoders
node_group_transcoders_max = 20 # Number of maximum Transcoders
node_group_transcoders_instance_type = "VM.Standard.E4.Flex-1-4" # Transcoders OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_transcoders_capacity = 30 # Connections capacity for Transcoders
# Relay node configuration
node_group_relays = 0 # Number of Relays
node_group_relays_min = 0 # Number of minimum Relays
node_group_relays_max = 20 # Number of maximum Relays
node_group_relays_instance_type = "VM.Standard.E4.Flex-1-4" # Relays OCI Instance Type(1 OCPU = 2 VCPUs) <shape>-<cpu>-<memory> eg. VM.Standard.E4.Flex-1-4
node_group_relays_capacity = 30 # Connections capacity for Relays
}
Expand Down
12 changes: 8 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1175,10 +1175,14 @@ resource "null_resource" "node_group" {
SM_API_KEY = "${var.stream_manager_api_key}"
NODE_GROUP_REGION = "${var.oracle_region}"
NODE_GROUP_NAME = "${var.node_group_name}"
ORIGINS = "${var.node_group_origins}"
EDGES = "${var.node_group_edges}"
TRANSCODERS = "${var.node_group_transcoders}"
RELAYS = "${var.node_group_relays}"
ORIGINS_MIN = "${var.node_group_origins_min}"
EDGES_MIN = "${var.node_group_edges_min}"
TRANSCODERS_MIN = "${var.node_group_transcoders_min}"
RELAYS_MIN = "${var.node_group_relays_min}"
ORIGINS_MAX = "${var.node_group_origins_max}"
EDGES_MAX = "${var.node_group_edges_max}"
TRANSCODERS_MAX = "${var.node_group_transcoders_max}"
RELAYS_MAX = "${var.node_group_relays_max}"
ORIGIN_INSTANCE_TYPE = "${var.node_group_origins_instance_type}"
EDGE_INSTANCE_TYPE = "${var.node_group_edges_instance_type}"
TRANSCODER_INSTANCE_TYPE = "${var.node_group_transcoders_instance_type}"
Expand Down
Loading

0 comments on commit 9ffb3d6

Please sign in to comment.