-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Optimization] Look into if it's worth switching some/most of watchdog to use ec2 networking metrics #21
Comments
For Minecraft, metric info:
For Valheim, Lot more unstable so lowest values:
|
Note, if this DOESN'T change, look at the |
Decided traffic for SSH isn't worth it. You can just connect to the container the "normal" way at the same time. The architecture becomes MUCH similar (removing lambda stuff), and flexible (can do tcp and udp at same time out of the box) by making this switch. The trick is to only look at traffic going INTO the container. If you add IN and OUT traffic together, it's too noisy. If the container sends metrics somewhere for example, it can do that whenever, and trip the OUT threshold. By only watching IN, you only see people connecting, or container Downloading (updating) something. Either case, you don't want to shut down. |
Is your feature request related to a problem? Please describe.
Right now, the watchdog works by running SSM commands on the host w/ lambda, and pushing the results to custom metrics. If you look in the console, there's already ec2 metrics you can use and filter by autoscaling group. (
CloudWatch Metrics
=>EC2
=>By Auto Scaling Group
=><ASG Name>
. Then checkNetworkIn
andNetworkOut
. We can add these two together w/ metric math too).I don't think we can get rid of the lambda, so is it worth it? (I don't want the container to spin down if someone is ssh'd in, but I'd be surprised if ssh showed much traffic at all. Worth looking into though.).
To get farther, I need to spin up minecraft/valheim instances, and see what the metrics look like both with/without players connected. Test the following:
home
, then inside EFS mount.Describe the solution you'd like
If this makes the architecture simpler/cheaper, do it.
Describe alternatives you've considered
The current way the architecture is now.
Additional context
N/A
The text was updated successfully, but these errors were encountered: