mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-09 16:33:35 +00:00
This is a snitch that should be used when Scylla runs in GCE VMs in both single and multi data center (DC) configurations. This snitch interacts with the GCE (instance metadata) API as described here: https://cloud.google.com/compute/docs/storing-retrieving-metadata) similarly to how ec2_snitchXXX interacts with the AWS API. However unlike ec2_multi_region_snitch the GCE snitch only gets the instance's zone and sets the DC and the RACK based on it, e.g. for us-central1-a the DC is set to 'us-central' and the RACK - to 'a'. GCE snitch doesn't have to learn the internal and external IPs of the instance because in GCE instances from different regions can interact using internal IPs (in the AWS they can't). Signed-off-by: Vlad Zolotarov <vladz@scylladb.com>