224 points · by thesandlord · 9y ago · 81 comments
(I work on GCP)
We currently use GCP. We have custom domains. As it is, we're looking to schedule time to roll our own multi-az load balancers and using the TCP load balancer because the HTTPS load balancer doesn't support SNI. If SNI were available for HTTPS LB, we'd jump on that in a heartbeat.
I work at a SaaS company and we were facing the same issue in the cloud and have to implement our own TCP LB's to support SNI. I really hope we will see it in the near future but as i see it, Will I allow my clients to push bytecode into my production machines on demand with the lowest sandboxing possible to provide low execution times? I guess not.
I should have been more clear: GCP's Anycast, no-warming-need LB is way cooler than AWS traditional, single-region with totally unreliable DNS "routing" on top (because you always want to rely on client DNS TTLs to handle a service cutover...).
The problem is, if you can't use a TLS proxy for security reasons, then you can't use the HTTP(s) LB, which will make you less happy than if you could use it.
Is it means that Kubernetes can use internal load balancer?
Thanks!
This has been a long time coming. Good to see it landing. There must be some technical challenges with doing a load balancer that is optimized for both HTTP round trips, AND, HTTP upgrades to long lived TCP connections.
One issue is that, as stated in the Troubleshooting section of the linked docs, source IP is not forwarded to application. Maybe in future the X-Forwarded-For header, or some other source identification, will be provided, as well.
Troubleshooting
Load balanced traffic does not have a source address of the original client
Traffic from the load balancer to your instances has an IP address in the ranges of 130.211.0.0/22 and 35.191.0.0/16. When viewing logs on your load balanced instances, you will not see the source address of the original client. Instead, you will see source addresses from this range.
Is it the case that, if the X-Forwarded-For header is present, then it is not providing a source IP, or it is providing a source IP, but that this IP is not listed in the traffic logs?Instead most proxies and load balancers add the X-Forwarded-For header which appends all IPs that are involved in the request. If you read the entire documentation page, the Fundamentals section shows what headers are added:
https://cloud.google.com/compute/docs/load-balancing/http/#c...
The proxies set HTTP request/response headers as follows:
Via: 1.1 google (requests and responses)
X-Forwarded-Proto: [http | https] (requests only)
X-Forwarded-For: <unverified IP(s)>, <immediate client IP>, <global forwarding rule external IP>, <proxies running in GCP> (requests only)
X-Cloud-Trace-Context: <trace-id>/<span-id>;<trace-options> (requests only)EDIT: ALB also supports http/2, but they can also do websockets as well as WSS (where you'd term SSL on the ALB for websockets).
[1] https://cloud.google.com/compute/docs/load-balancing/http [2] https://cloud.google.com/compute/docs/load-balancing/http/ss...
This is the outstanding ticket: https://issuetracker.google.com/issues/35904767
"Would be a competitive advantage as well since AWS ELB's don't support multiple certificates attached to a single ELB."
But session affinity is a scalability anti-pattern, which should generally only be used to support legacy applications. Ideally, you'd design your application to use stateless backends, which tend to share state at another layer (the database, memcache, Redis, etc).
If you don't want unused memory on your app servers, don't provision it. :-)
Does it support websocket compression (meaning the load balanced servers don't need to do compression - as it'd be handled by the proxy) We would probably switch in a heartbeat if it did
Can you elaborate more from documentation that this new features can filter out DDOS attacks or handle rate limiting? Because i can't find out that statement
Thank you
The backend services hooked up to the load balancer can have healthchecks and capacity limits based on req/sec or CPU usage, so a region that's close by but overloaded will be skipped for a further region that has available capacity.
GCP also absorbs layer 4 and below attacks automatically. https://cloud.google.com/files/GCPDDoSprotection-04122016.pd...
Manigandham's post below confirms it though with all the necessary information.
Also FYI Appengine Flex does support HTTP2 Server Push. You just got to do the following:
Set Headers to: Content-Type: text/event-stream
Cache-Control: no-cache
Connection: keep-alive
// https://www.nginx.com/resources/wiki/start/topics/examples/x... X-Accel-Buffering: no
And use your favorite http2 server push framework.
Also SSE has been around for a decade or so, not to be confused with HTTP/2 push.
[1] https://cloud.google.com/appengine/docs/flexible/ruby/how-re...