简体   繁体   中英

What is the equivalent of AWS Classic Load Balancer in GCP

We have created an Instance Template with ubuntu operating system. Using the instance template, we have created instance group with 3 machines. These 3 machines are behind a TCP Loadbalancer with 8080 port enabled.

We have run the below python command on first VM. python -m SimpleHTTPServer 8000

We see one of the instance health (1/3) is successful and have tested with telnet command. Since, the SimpleHTTPServer is installed on one instance, it shows (1/3) instance is healthy.

telnet <Loadbalacer ip> 8000

However, when we run the above command from the 2nd VM in the same instance group, we see 'Connection refused'.

telnet XX.XX.XX.XX 8000
Trying XX.XX.XX.XX...
telnet: Unable to connect to remote host: Connection refused.

Also, the same service is accessible on other VMs running on other instance group. The service is not accessible within the same instance group.

We have verified the firewall rules and we have tested with both 'allow all' and 'Specified protocols and ports' Protocols and ports option.

The above usecase works fine on AWS Classic LoadBalancer, however this fails on GCP.

I have created a firewall rule, 'cluster-firewall-rule' with 'master-cluster-ports' as tag. This tag has been added as part of Network tags in the instance. This rule allows traffic for 8080 port.

What is the equivalent of AWS Classic Load Balancer in GCP?

GCP does not have equivalent for AWS Classic Load Balancer (CLB).

AWS CLB was the first load balancer service from AWS and was built with EC2-Classic, with subsequent support for VPC. AWS NLB and ALB services are the modern LBs. If you can, I suggest using one of them. See https://aws.amazon.com/elasticloadbalancing/features/#compare for comparison between them.

If you switch, then you could use GCP's corresponding load balancer services. See https://cloud.google.com/docs/compare/aws/networking .

For my benefit: 1) Are you migrating applications from AWS to GCP? 2) What is your use case for migrating applications from AWS to GCP?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM