4 ms·
Have you looked into using Cloud NAT? Do you need all those ephemeral v4 IPs? (I work in Google Cloud Networking -- though not this particular area.)
by srj 7y ago
Have you looked into using Cloud NAT? Do you need all those ephemeral v4 IPs?
(I work in Google Cloud Networking -- though not this particular area.)
- profmonocle 7y agoI've said this elsewhere in the thread, but Cloud NAT is kind of expensive. 4.5¢ per GB increases egress costs by 37.5% (normally 12¢ per GB) plus it applies to ingress as well, which is usually free. Sure it doesn't apply to inbound traffic through load balancers, but if you transfer a lot of data to/from external APIs (i.e. connections by the instance) that could seriously add up. Based on my company's usage, it will almost certainly be cheaper for us to just pay the $2.92/instance/month to keep using public V4 addresses on our GKE nodes.
- cameronbrown 7y agoThis seriously hurts some of my use cases: 1. Running a website on GCE 24/7 2. Running a Minecraft/CS:GO server for 10hr/day There's no situation where I won't be paying more. Plus these games don't really support IPv6.
- Zancarius 7y agoI thought Minecraft did support IPv6? Leastwise, I don't recall having any issues recently, although I'm still running v1.13 and atop Spigot. I do recall some issues somewhere around 1.11-ish that required passing in the option -Djava.net.preferIPv4Stack=false. The server-ip property also needs to have any ":" escaped, e.g. "\:\:"
- amock 7y agoGCP instances don't support IPv6, so you'd have to run a load balancer or something else in front of the instance and that would have a cost.
- Zancarius 7y agoRight. I get that. My question was directed to the OP's last statement of "Plus these games don't really support IPv6," because that doesn't match my experience. My argument is that IF Google's cloud offerings supported IPv6, why would that not matter with a game like Minecraft? I'm pretty sure it supports IPv6.
- hdfbdtbcdg 7y agoAWS will charge for the static IP whilst the Minecraft server is down.
- kalleboo 7y agoWhy not just use an ephemeral IP?
- HatchedLake721 7y agoThis is false, no it will not. AWS charges for unassigned elastic IPs. Elastic IP can be assigned to a stopped EC2 instance and you will not incur any charges.
- hdfbdtbcdg 7y agoReally? Sorry then I had misunderstood the bill.