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.
答案 0 :(得分:1)
由于您的应用已经在运行且用户正在连接它,因此您不希望执行以下过程:
相反,您可能希望执行以下操作:
现在,您的用户将被随机发送到负载最少的虚拟机以查看应用程序,如果流量增加,您可以添加更多虚拟机。
您没有详细描述您的应用程序,因此不清楚每个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.)