简体   繁体   English

Go + MySql:迁移到GKE(Google云容器引擎)有多容易?

[英]Go+MySql: how easy is to migrate to GKE (Google Cloud Container Engine)?

My project is currently hosted by an independent cloud provider. 我的项目目前由独立的云提供商托管。

I am using 2 Virtual Machines, with Linux: 我在Linux上使用2个虚拟机:

  • one hosts a Go application 一个托管Go应用程序
  • one hosts a MySql database 一个托管一个MySql数据库

I would now like to move to the Google Cloud Platform. 我现在想转到Google Cloud Platform。

Do you think does it make sense to move to Google Cointainer Engine (GKE), rather than to the Google Compute Engine (which would have the same virtual machine model (IaaS) I am using with the current provider)? 您认为迁移到Google Cointainer Engine(GKE)而不是Google Compute Engine(与当前提供商使用的虚拟机模型(IaaS)相同)是否有意义?

I have never used Kubernetes and Docker. 我从未使用过Kubernetes和Docker。 How easy would it be to make the migration? 进行迁移有多容易? Am I going to complicate my life uselessly? 我会无用地使我的生活复杂化吗?

How difficult is the configuration for my simple model? 我的简单模型的配置有多困难?

I have never used Kubernetes and Docker. 我从未使用过Kubernetes和Docker。

Moving to a platform that you have no experience with doesn't sound like a great idea. 转移到您没有经验的平台听起来不是一个好主意。 Instead, why not start by doing some tutorials about Docker and then Kubernetes? 相反,为什么不先做一些关于Docker的教程,然后再做Kubernetes?

After that, you might try Minikube ( https://kubernetes.io/docs/getting-started-guides/minikube/ ) locally to start writing some manifests for the components (which sound like maybe a DaemonSet or single Pod with PersistentVolume for MySQL and a Deployment for the Go application). 之后,您可以尝试在本地尝试Minikube( https://kubernetes.io/docs/getting-started-guides/minikube/ )以开始为组件编写一些清单(听起来像是DaemonSet或带有PersistentVolume的MySQL单个Pod)以及Go应用程序的部署)。

Once you have the pieces working locally, then it would probably make more sense to think about migrating. 一旦您在本地工作了,那么考虑迁移可能会更有意义。 You would have a much better understanding of what you are getting into and if it is something you would want to undertake. 您将更好地了解自己正在进入的领域,以及如果您想从事的事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Google Container Engine与Google Cloud SQL建立连接? - How to make connection with Google Cloud SQL using Google Container Engine? 在 Google Cloud SQL 中从 mysql 迁移到 postgre - Migrate from mysql to postgre in Google Cloud SQL 将数据从MySQL迁移到Google App Engine(Python)数据存储 - Migrate data from MySQL to Google App Engine (Python) Data Store 如何在docker容器中迁移MySQL数据目录? - How to migrate MySQL data directory in docker container? Google Cloud - 无法使用内部 IP 从 GKE 连接到 MySQL 云 sql 实例 - Google Cloud - Cant connect to MySQL cloud sql instance from GKE using internal IP 无法使用Google App Engine连接到Google Cloud MySQL - Unable to Connect to Google Cloud MySQL using Google App Engine 如何将托管在 Google 云引擎上的 Spring Boot 应用程序连接到 mysql 数据库? - How to connect a spring boot application hosted on Google cloud engine to a mysql db? 连接超时:Nodejs Google App Engine到Cloud MySql - Connection timed out: Nodejs Google App Engine to Cloud MySql 无法在谷歌云应用引擎上加载 laravel 中 MySQL 的图片 - Unable to load the pictures from MySQL in laravel on google cloud app engine 将具有丰富 UI 的 PHP/MySQL 网站迁移到 Google 网站或 Google App Engine 的好主意? - Good idea to migrate PHP/MySQL website with rich UI to Google websites or Google App Engine?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM