【问题标题】:AWS Lightsail instance downs from wordpress requests来自 wordpress 请求的 AWS Lightsail 实例停机
【发布时间】:2020-09-30 12:35:30
【问题描述】:

我已经按照文章为多个 wordpress 网站设置了低成本 AWS lightail 服务器 - https://www.wpmentor.com/wordpress-with-nginx-lightsail/

服务器对正常请求运行良好。但过了一段时间,我需要安装 W3 Total Cache 并在从 localhost/github 移动站点后清除所有缓存。但是当我清除所有缓存时,该站点继续加载,一段时间后它返回 504 Gateway Timeout。此外,lightsail 实例出现故障,甚至无法与 ssh 连接,需要停止并重新启动(重启也不起作用)。 Lightsail 矩阵显示 CPU 突增超过 80/100 %。

我对整个情况感到非常困惑。请有人帮助我!

【问题讨论】:

  • 听起来您的实例大小对于工作负载来说太小了。您使用的是哪种实例大小(计划)?
  • 我使用的是成本最低的实例,价格为 3.5 美元/月。

标签: php wordpress amazon-web-services nginx amazon-lightsail


【解决方案1】:

3.50 美元计划为您提供 t2.micro,它只有 512MB 内存和 1 个可爆 CPU。

如果该系统上有足够的 RAM 能够支持缓存,我会感到惊讶。它可能会大量分页到磁盘,这会直接影响性能。

您可能需要迁移到更大的实例类型。

见:Creating a larger instance, block storage disk, or database from a snapshot in Amazon Lightsail | Lightsail Documentation

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-08-19
    • 2018-01-09
    • 2022-07-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-08
    相关资源
    最近更新 更多