问题
We have 2 servers hosting a particular service on google cloud. How to do a simple round-robin DNS configuration to distribute the load?
回答1:
According to this thread Google Cloud DNS does not support round-robin.
回答2:
You can set up DNS round robin with Cloud DNS simply by adding more than one IP address to your DNS record.
You might want to look into Google Compute Engine's Load Balancing options. This will allow you to have one IP address that sends traffic to your two servers. This has a few advantages, including that you can configure it to automatically stop sending traffic to an instance if it fails a health check.
来源:https://stackoverflow.com/questions/31825063/dns-configuration-to-distribute-traffic-to-multiple-host-on-google-cloud