性能调优 Moodle

发布于 2024-08-19 23:59:55 字数 107 浏览 2 评论 0原文

我们的 Moodle 网站开始出现大量流量。结果,网站速度变慢。在调整 Moodle 性能时,我应该立即检查哪些配置选项?我知道它是特定于该站点的,因为该站点上的其他站点在处理大量工作负载时没有问题。

Our Moodle site is starting to get heavy traffic. As a result, the site is slowing down. What are some of the configuration options I should check right off the bat when performance tuning Moodle? I know it is specific to this site as others on it have no problems with large workloads.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

長街聽風 2024-08-26 23:59:55

在 Moodle 的网站上,他们有一个广泛的性能调整网页。我列出了一些看起来很有趣的建议:

一个moodle用户还开发了一个很好的负载测试脚本(这个脚本对系统来说非常繁重,并且会告诉您服务器可以处理的最大负载)。可以在此处找到。

On Moodle's website, they have an extensive performance tuning webpage. I've including a list of a few suggestions that look intersting:

  • If you go to: http://YOURSERVERNAME.com/admin/dbperformance.php, moodle will give some performance statistics.
  • Consider adding more RAM or clustering your webserver.
  • Consider adding a php accelerator such as APC, PHPA, Xcache or eAccelerator.
  • Try to determine if the webserver or the database server is the bottleneck.

A moodle user also developed a good load testing script (this script is very system heavy and will tell you the maximum load that your server can handle). It can be found here.

心不设防 2024-08-26 23:59:55

添加 APC php 加速器使我们服务器的性能提高了 250% 到 300%。立即(太棒了!)
我们使用的是 CentOS 5.4,因此只需“yum install php-apc”(简单)

我们还使用 mysqltuner.pl (blog.mysqltuner.com/) 来调整 MySQL服务器设置。很难说我们在这里收获了多少。感觉好多了。

在我们达到 12000 个用户(现在我们有 16000 个)后,我们将表 mdl_user 的 MySQL 内部数据库引擎从 MYISAM 更改为 InnoDB,这对与 mdl_user 相关的查询产生了巨大的积极性能影响。 (例如:上传 600 个新用户现在需要 1 分钟,而以前需要 12 分钟。巨大的改进!)

Adding APC php accelerator increased the performance of our server by 250% to 300%. immediately (amazing!)
we are using CentOS 5.4 so it was only "yum install php-apc" (easy)

we also used mysqltuner.pl (blog.mysqltuner.com/) to tune MySQL server settings. hard to tell how much we gained here. it feels better.

we change MySQL internal DB Engine for the table mdl_user from MYISAM to InnoDB after we reached 12000 users (now we have 16000) it gave a huge positive performance impact on mdl_user related queries. (example: upload 600 new user now takes 1 min where it used to take 12min. huge improvement!)

岁月如刀 2024-08-26 23:59:55

使用“Moodle 通用缓存”。它在一定程度上加快了Moodle的速度。此功能在 Moodle 2.4 及更高版本中可用。这是官方文档链接 http://docs.moodle.org/24/en/Caching

您还可以尝试将memcached 与moodle 结合使用。虽然不是直接可用,但memcache 是使用ram 加速数据库访问的标准方法之一。

Use "Moodle Universal Cache". It speeds up moodle to certain extent. This feature is available moodle 2.4 and onward. Here is the official documentation link http://docs.moodle.org/24/en/Caching

You can also try using memcached with moodle.Although not straight out of the box available, yet memcache is one of the standard ways of using ram for speeding up database access.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文