currently my websocket traffic is delivering from gcp load balancer to nginx to websocket server. am planning to remove one hop so that if i remove nginx. Then how to configure my websocket port (Reserved port) to gcp load balancer so that my websocket traffic will come from gcp load balancer.
Asked
Active
Viewed 438 times
2 Answers
0
- Is GCP load balancer support libwebsocket?
- Can i configure my own port at GCP load balancer (except 443/80)

Bharanitharan
- 11
- 5
-
What kind of lb you trying to used ? Also what exactly you are trying to achieve here ? – Neelam Jul 10 '20 at 12:57
0
I have created a Load Balancer setup today which supports WebSockets with the new TCP SSL Proxy Load Balancer from GCP.
Here's how:
You need to use SSL on the frontend configuration with your SSL certificate.
Then you need to have a TCP backend configuration pointing to your instance group and correct WebSocket port on your server.
You need to have session affinity enabled on the backend configuration.

Joshua G. Edwards
- 643
- 6
- 22