I've got an error 502 when I use google cloud balancer with CDN, the thing is, I am pretty sure I must have done something wrong setting up the load balancer because when I remove the load balancer, my website runs just fine.
This is how I configure my load balancer here
- Should I use HTTP or HTTPS healthcheck, because when I set up HTTPS healthcheck, my website was up for a bit and then it down again
- I have checked this link, they seem to have the same problem but it is not working for me.
- I have followed a tutorial from openlitespeed forum to set Keep-Alive Timeout (secs) = 60s in server admin panel and configure instance to accepts long-lived connections ,still not working for me.
- I have added these 2 firewall rules following this google cloud link to allow google health check ip but still didn’t work: https://cloud.google.com/load-balancing/docs/health-checks#fw-netlb https://cloud.google.com/load-balancing/docs/https/ext-http-lb-simple#firewall
When checking load balancer log message, it shows an error saying failed_to_pick_backend . I have tried to re-configure load balancer but it didn't help.
I just started to learn Google Cloud and my knowledge is really limited, it would be greatly appreciated if someone could show me step by step how to solve this issue. Thank you!