Skip to content

Commit

Permalink
Merge pull request #42 from paseaf/zl/change-vm-config
Browse files Browse the repository at this point in the history
Increase VM disk and RAM size
  • Loading branch information
paseaf authored Jul 10, 2022
2 parents c948ef9 + 08a377f commit aa48738
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 28 deletions.
38 changes: 11 additions & 27 deletions terraform/grafana/provisioning/dashboards/containerSSH.json
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "(node_memory_MemTotal_bytes{instance=\"gateway-vm:9100\"} - (node_memory_MemFree_bytes{instance=\"gateway-vm:9100\"} + node_memory_Cached_bytes{instance=\"gateway-vm:9100\"} + node_memory_Buffers_bytes{instance=\"gateway-vm:9100\"})) / node_memory_MemTotal_bytes{instance=\"gateway-vm:9100\"} * 100",
"expr": "(node_memory_MemTotal_bytes{instance=\"gateway-vm:9100\"} - node_memory_MemAvailable_bytes{instance=\"gateway-vm:9100\"}) / node_memory_MemTotal_bytes{instance=\"gateway-vm:9100\"} * 100",
"instant": false,
"legendFormat": "Gateway-VM",
"range": true,
Expand All @@ -457,7 +457,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "(node_memory_MemTotal_bytes{instance=\"logger-vm:9100\"} - (node_memory_MemFree_bytes{instance=\"logger-vm:9100\"} + node_memory_Cached_bytes{instance=\"logger-vm:9100\"} + node_memory_Buffers_bytes{instance=\"logger-vm:9100\"})) / node_memory_MemTotal_bytes{instance=\"logger-vm:9100\"} * 100",
"expr": "(node_memory_MemTotal_bytes{instance=\"logger-vm:9100\"} - node_memory_MemAvailable_bytes{instance=\"logger-vm:9100\"}) / node_memory_MemTotal_bytes{instance=\"logger-vm:9100\"} * 100",
"hide": false,
"legendFormat": "Logger-VM",
"range": true,
Expand All @@ -469,7 +469,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "(node_memory_MemTotal_bytes{instance=\"sacrificial-vm:9100\"} - (node_memory_MemFree_bytes{instance=\"sacrificial-vm:9100\"} + node_memory_Cached_bytes{instance=\"sacrificial-vm:9100\"} + node_memory_Buffers_bytes{instance=\"sacrificial-vm:9100\"})) / node_memory_MemTotal_bytes{instance=\"sacrificial-vm:9100\"} * 100",
"expr": "(node_memory_MemTotal_bytes{instance=\"sacrificial-vm:9100\"} - node_memory_MemAvailable_bytes{instance=\"sacrificial-vm:9100\"}) / node_memory_MemTotal_bytes{instance=\"sacrificial-vm:9100\"} * 100",
"hide": false,
"legendFormat": "Sacrificial-VM",
"range": true,
Expand Down Expand Up @@ -1039,22 +1039,12 @@
}
},
"mappings": [],
"max": 21200000000,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"color": "transparent",
"value": null
},
{
"color": "orange",
"value": 19000000000
},
{
"color": "red",
"value": 20000000000
}
]
},
Expand Down Expand Up @@ -1161,22 +1151,20 @@
}
},
"mappings": [],
"max": 2000000000,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"color": "transparent",
"value": null
},
{
"color": "orange",
"value": 1750000010
"value": 3500000000
},
{
"color": "red",
"value": 1900000000
"value": 3800000000
}
]
},
Expand Down Expand Up @@ -1211,7 +1199,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "node_memory_MemTotal_bytes{instance=\"gateway-vm:9100\"} - (node_memory_MemFree_bytes{instance=\"gateway-vm:9100\"} + node_memory_Cached_bytes{instance=\"gateway-vm:9100\"} + node_memory_Buffers_bytes{instance=\"gateway-vm:9100\"})",
"expr": "node_memory_MemTotal_bytes{instance=\"gateway-vm:9100\"} - node_memory_MemAvailable_bytes{instance=\"gateway-vm:9100\"}",
"instant": false,
"legendFormat": "Gateway-VM",
"range": true,
Expand All @@ -1223,7 +1211,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "node_memory_MemTotal_bytes{instance=\"logger-vm:9100\"} - (node_memory_MemFree_bytes{instance=\"logger-vm:9100\"} + node_memory_Cached_bytes{instance=\"logger-vm:9100\"} + node_memory_Buffers_bytes{instance=\"logger-vm:9100\"})",
"expr": "node_memory_MemTotal_bytes{instance=\"logger-vm:9100\"} - node_memory_MemAvailable_bytes{instance=\"logger-vm:9100\"}",
"hide": false,
"legendFormat": "Logger-VM",
"range": true,
Expand All @@ -1235,7 +1223,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "node_memory_MemTotal_bytes{instance=\"sacrificial-vm:9100\"} - (node_memory_MemFree_bytes{instance=\"sacrificial-vm:9100\"} + node_memory_Cached_bytes{instance=\"sacrificial-vm:9100\"} + node_memory_Buffers_bytes{instance=\"sacrificial-vm:9100\"})",
"expr": "node_memory_MemTotal_bytes{instance=\"sacrificial-vm:9100\"} - node_memory_MemAvailable_bytes{instance=\"sacrificial-vm:9100\"}",
"hide": false,
"legendFormat": "Sacrificial-VM",
"range": true,
Expand Down Expand Up @@ -1292,12 +1280,8 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"color": "transparent",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
Expand Down
6 changes: 6 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ resource "google_compute_instance" "gateway_vm" {
boot_disk {
initialize_params {
image = "ubuntu-with-docker-image"
size = 20
type = "pd-balanced"
}
}

Expand Down Expand Up @@ -167,6 +169,8 @@ resource "google_compute_instance" "sacrificial_vm" {
boot_disk {
initialize_params {
image = "sacrificial-vm-image"
size = 20
type = "pd-balanced"
}
}

Expand All @@ -187,6 +191,8 @@ resource "google_compute_instance" "logger_vm" {
boot_disk {
initialize_params {
image = "ubuntu-with-docker-image"
size = 200
type = "pd-balanced"
}
}

Expand Down
2 changes: 1 addition & 1 deletion terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ variable "credentials" {

variable "machine_type" {
type = string
default = "e2-small"
default = "e2-medium"
}

0 comments on commit aa48738

Please sign in to comment.