简体   繁体   English

即使具有超级配置,Prestashop在Amazon AWS + RDS中也不稳定

[英]Prestashop unstable in Amazon AWS + RDS even with a super-configuration

We have right now about 800 users simultaneously online in the website, that is unstable since 3 hours ago, when the client made an publicity with an influencer on instagram. 目前,我们网站上同时有大约800个用户在线,这自3个小时前开始不稳定,当时客户在instagram上与有影响力的人进行了宣传。

Server: Apache2 PHP 7.0 MariaDB 伺服器:Apache2 PHP 7.0 MariaDB

AWS: m5.2xlarge (monitoring print: https://imgur.com/a/gBYSLwB ) RDS: db.m5.24xlarge (monitoring print: https://imgur.com/a/UHj0jMM ) AWS:m5.2xlarge(监视打印: https ://imgur.com/a/gBYSLwB)RDS:db.m5.24xlarge(监视打印: https ://imgur.com/a/UHj0jMM)

Somebody has any ideia why the website is still unstable? 有人有任何想法为什么网站仍然不稳定? Slow and sometimes offline? 慢,有时离线?

At first glance, it seems that your AWS instances could perfectly handle such traffic. 乍一看,您的AWS实例似乎可以完美地处理此类流量。

Your performance issues might be related to some SQL-lock behavior: 您的性能问题可能与某些SQL锁定行为有关:

  • Check whether you are using InnoDB or MyISAM tables, prefer InnoDB, you can switch easily 检查您使用的是InnoDB还是MyISAM表,更喜欢InnoDB,可以轻松切换
  • Turn on slow_query_log in MariaDB and monitor what's happening, a module or specific query might be the one causing your troubles 在MariaDB中打开slow_query_log并监视正在发生的事情,可能是模块或特定查询引起您的麻烦

Here are some other performance improvements you could consider: 这是您可以考虑的其他一些性能改进:

  • Using Nginx + PHP-FPM rather than Apache 使用Nginx + PHP-FPM而不是Apache
  • Using PHP 7.3 rather than PHP 7.0 (~15% performance boost on PrestaShop), this will just require a few PHP warnings to fix 使用PHP 7.3而不是PHP 7.0(在PrestaShop上性能提高了约15%),这仅需要一些PHP警告即可修复
  • Enabling and tuning the PHP Opcache (already in PHP 7.x, simply configure it in php.ini ) 启用和调整PHP Opcache(已经在PHP 7.x中,只需在php.ini中对其进行配置
  • Using two separate MariaDB instances, with a Master/slave configuration (you can specify the two servers in the PrestaShop configuration) 使用具有主/从配置的两个单独的MariaDB实例(您可以在PrestaShop配置中指定两个服务器)
  • Using mysqltuner to find the optimal MariaDB configuration 使用mysqltuner查找最佳MariaDB配置
  • Using a caching module 使用缓存模块

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM