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

Increase VM disk and RAM size #42

Merged
merged 4 commits into from
Jul 10, 2022
Merged

Increase VM disk and RAM size #42

merged 4 commits into from
Jul 10, 2022

Conversation

paseaf
Copy link
Owner

@paseaf paseaf commented Jul 7, 2022

Description

This PR will

Before

After

(sorry forgot to match time range...
Removed min and max to use more the vertical space

Testing the PR

terraform apply should deploy the same VM configs as written in Issue

Takeaways

Found a good source for explaining node exporter metrics:
https://github.com/torvalds/linux/blob/master/Documentation/filesystems/proc.rst#meminfo

@paseaf paseaf force-pushed the zl/change-vm-config branch from 125c5fb to 8b4adac Compare July 7, 2022 07:50
@@ -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",
Copy link
Owner Author

Choose a reason for hiding this comment

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

Replaced with MemAvailable.
https://stackoverflow.com/a/67302066/11554998
Maybe MemAvailable is more accurate?

Copy link
Collaborator

Choose a reason for hiding this comment

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

aha, so MemAvailable is an estimation how much memory can be used without swapping. yes let's use MemAvailable. :)

@paseaf paseaf mentioned this pull request Jul 7, 2022
10 tasks
@paseaf paseaf marked this pull request as ready for review July 7, 2022 18:13
@paseaf paseaf requested a review from bafread July 7, 2022 18:14
@paseaf paseaf self-assigned this Jul 8, 2022
@paseaf paseaf added deployment monitor Monitoring system for our honeypot (e.g., Prometheus) labels Jul 8, 2022
Copy link
Collaborator

@bafread bafread left a comment

Choose a reason for hiding this comment

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

LGTM. 200 might be overkill, but i think it's much safer :)

@paseaf paseaf merged commit aa48738 into main Jul 10, 2022
@paseaf paseaf deleted the zl/change-vm-config branch July 10, 2022 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment monitor Monitoring system for our honeypot (e.g., Prometheus)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Decide machine type and disk size for VMs
2 participants