Google Compute Instance 100% CPU Utilisation

时间:2015-07-28 16:48:50

标签: google-compute-engine

I am running n1-standard-1 (1 vCPU, 3.75 GB memory) Compute Instance , In my android app around 80 users are online write now and cpu Utilisation of instance is 99% and my app became less responsive. Kindly suggest me the workaround and If i need to upgrade , can I do that with same instance or new instance needs to be created.

2 个答案:

答案 0 :(得分:1)

由于您的应用已经在运行且用户正在连接它,因此您不希望执行以下过程:

  1. 关闭VM实例,保留启动盘和其他磁盘
  2. 使用步骤(1)中的启动盘
  3. 启动功能更强大的实例
  4. 附加并安装任何其他磁盘(如果适用)
  5. 相反,您可能希望执行以下操作:

    1. 使用类似的软件/配置创建其他VM实例
    2. 创建负载均衡器并将原始VM和新VM作为后端添加到
    3. 将您的DNS名称更改为指向负载均衡器IP而不是原始VM实例
    4. 现在,您的用户将被随机发送到负载最少的虚拟机以查看应用程序,如果流量增加,您可以添加更多虚拟机。

      您没有详细描述您的应用程序,因此不清楚每个VM是否具有本地状态(例如,运行数据库)还是外部运行的数据库。您仍然需要弄清楚如何管理来自所有VM实例的有状态系统,例如数据库或用户上传的数据,如果您的任务中的信息很少,很难提供建议。

答案 1 :(得分:0)

I don't know anything about google-compute-engine(s) but maybe this will help: Here is a small explanation about instances:

https://cloud.google.com/compute/docs/instances/

And here is a link to the Google Compute Engine page:

https://cloud.google.com/compute/docs/

Or maybe this will help you with increasing the cpu:

how can I increase cpu quota on google compute engine

If all those links aren't helping then I suggest to upgrade it. (Because I've never heard of Google Compute Engine I don't know if you should use the same instance or a new one.)