Magento /大型商店的专用服务器设置

我们有一个专门的服务器通过fasthosts,并运行1 wordpress设置和一个多店magento设置。

与WordPress站点相比,我们的Magento站点运行速度较慢,前端速度较慢。

有没有人有经验的优化Magento的专用服务器?

我已经发布了我们的服务器规范以及我们的configurationphp和my.cnf。 我们已经按照一些build议来调整设置,但事情似乎没有更好的运行。

正如你所看到的,我们不是build立在一个小型的服务器上,所以我们相信我们应该从中获得更好的性能。

任何人都可以看到我们正在做的错误的设置?

服务器configuration

2x 2.1GHz AMD Opteron™ 12 Core processors 32GB RAM 2x 300GB SAS hard disk drives (RAID 1*) 2x 500GB SATA hard disk drives (RAID 1*) Remote server control - keyboard, mouse & video control Bandwidth & network Unlimited bandwidth 100Mbps 99.99% network uptime guarantee 2 IP addresses - Additional IPs available Create private LANs for your server - Option Multiple UK internet connections Flexible remote backup space - Option Linux server operating system CentOS 5.5 Ubuntu 10.04 Red Hat Enterprise Server v5.3 Apache web server Courier mail server Postfix mail transport agent PureFTP FTP server MySQL database management Preconfigured IP Tables port security Bind 9 DNS 

my.cnf设置:

 [mysqld] #set-variable=local-infile=0 datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 # Disabling symbolic-links is recommended to prevent assorted security risks; # to do so, uncomment this line: # symbolic-links=0 key_buffer = 512M max_allowed_packet = 64M table_cache = 1024 sort_buffer_size = 256M read_buffer_size = 16M read_rnd_buffer_size = 16M myisam_sort_buffer_size = 64M tmp_table_size = 128M thread_cache_size = 64 query_cache_type = 1 query_cache_size = 64M query_cache_limit = 2M max_connections = 500 wait_timeout = 300 thread_concurrency = 96 max_heap_table_size = 64M innodb_buffer_pool_size = 12800M innodb_additional_mem_pool_size = 20M innodb_thread_concurrency = 50 innodb_autoextend_increment = 8M [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid 

php.ini设置

 max_execution_time = 28000; max_input_time = 60; memory_limit = 9216M; 

所以这里是从我发现的magento和多个商店的问题。

Magento不会扩展多个商店。 我在一家电子商务创业公司试图用magento来给博客店铺。 当然,我们使用magento的多店。 所以问题是每个被添加到商店的商品被添加到所有的商店。 Magento的数据库模型非常灵活,但如果您有多个商店,则不能很好地扩展。 我们当时有大约100家商店,服务器功率是您的5倍,join单一产品需要90秒。

这导致各种事情像结账一样缓慢。 所以是的,你的服务器configuration是好的,但是这是一个magento问题。

我们查看了运行的查询,其中一些查询长9页,并添加了一个产品。

对不起,我没有太多的帮助..但我的build议是尽快转储magento,并find另一种解决scheme。