我正在设置一个应用程序,该应用程序是一组使用GCP中的Cloud SQL DB的Mircroservices。我的查询是-
我想在跨区域(启用了主动复制的主区域和辅助区域)中为Cloud SQL设置HA。我看不到Google Cloud为实现相同目的而开箱即用的设置。 Cloud SQL第二代HA的即用型HA实例应在同一区域中同一区域的另一个区域中具有HA实例。请提供实现相同目标的最佳做法。
所有微服务都应使用私有ip在此MySQL上执行操作。如何设置?
MySQL是否有任何本机支持来启用向其他区域的主动复制?
是否可以根据客户要求设置手动备份?我确实知道可以使用自动备份。为了满足RPO RTO要求,希望自定义数据库备份频率-可以吗?
答案 0 :(得分:0)
I want to set up HA for Cloud SQL in across regions(primary region and a secondary region with active replication enabled)
您可以使用external master功能将其复制到另一个区域中的实例。
All the microservices should be using private ip to do actions on this MySQL. How do set this up?
专用IP设置的说明为here。简而言之,您的服务将需要与Cloud SQL实例位于同一VPC上。
Is it possible to set up manual backup as per customer requirements?
您可以使用SQL Admin API配置备份。
答案 1 :(得分:0)
Please, let me list your questions along with their response:
-According to the documentation [1], the configuration is made up of a primary instance (master) in the primary zone and a failover replica in the secondary zone, at the moment is not possible the HA for Cloud SQL across regions.
-You can set up a cloud SQL instance to use private IP, please review the next information, you may find it helpful [2].
-I would recommend to get in contact with mysql support [3], so that you get the help you need, in the meantime you could review the next link [4], and see if this fits your needs.
-You can create a backing up on demand, please review the next link [5] which helps to illustrate how to set this kind of backups.
Please let me know if this information helps to address your questions.
[1] https://cloud.google.com/sql/docs/mysql/high-availability
[2] https://cloud.google.com/sql/docs/mysql/private-ip
[3] https://www.mysql.com/support/
[5] https://cloud.google.com/sql/docs/mysql/backup-recovery/backing-up#on-demand