如何找出 Magento 网站上有多少并发用户
我们正在切换网络主机,我被要求找出基于 Magento 的网站有多少并发用户,以便估计合适的硬件。
我怎样才能找到这些信息呢?
网络服务器速度极快(如 apache)并且基于 PHP。
其他可能(或可能没有)有用的信息是,这些网站当前托管在共享托管解决方案上,因此我认为我无法安装任何监控软件。
我注意到 Magento 有一个内置报告,可能与此类似... 管理 ->客户->在线客户。但我有一种感觉,这份报告并不是新网络主机真正想要的。
这个问题应该发布在另一个 Stack Exchange 站点上吗?
We are switching web hosts, and I have been asked to find out how many concurrent users the Magento-based websites have in order to estimate the appropriate hardware.
How can I find this information out?
The webserver is lightspeed (like apache) and it is PHP-based.
Other information that may (or may not) be helpful is that the sites are currently hosted on a shared hosting solution, so I don't think I can install any monitoring software.
I have noticed that Magento has a built in report that may be similar to this... Admin -> Customers -> Online Customers. But I have a feeling this report isn't really what the new web host is looking for.
Should this question be posted in another Stack Exchange site?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请访问 http://www.google.com/analytics/ 注册 Google Analytics(分析)。他们将为您提供一个跟踪代码,并将其粘贴到您网站的 html 中。将其插入到您的标题模板中。统计数据的积累可能需要半天或更长时间。
然后查看您每小时的峰值统计数据。单击访问者,然后将图表切换到每小时,并查看访问量最大的小时。这将帮助您估算新主机需要容纳的流量。还要看看综合浏览量,因为这也是一个重要的指标。访问量和综合浏览量与并发用户数不同,但它应该能让您朝着正确的方向前进。
您是否正在转向专用或至少是专用资源 vps?如果您当前使用共享主机,则很难真正了解您将需要什么类型的硬件(我假设您切换的原因是性能问题)。我建议从基本的专用服务器开始,然后根据您的结果从那里向上或向下。
您可以尝试 Amazon EC2 上的 m1.small 实例,每月费用约为 70 美元,并且您可以在那里托管多个站点。当然,您必须自己管理服务器。
Sign up for Google Analytics at http://www.google.com/analytics/. They will provide you with a tracking code to paste into the html of your site. Insert that into your header template. It may take half a day or longer for the stats to accumulate.
Then take a look at your peak hourly stats. Click visitors then switch the graph to hourly and take a look at the hour with the max visits. That will help you approximate the amount of traffic your new host will need to accomodate. Also take a look at pageviews since that's also an important metric. Visits and pageviews are not the same as concurrent users but it should put you in the right direction.
Are you moving to a dedicated or at least dedicated resource vps? If you're currently on a shared host, it's really hard to get a true sense for what type of hardware you are going to need (I'm assuming the reason you are switching is because of performance problems). I'd suggest starting with a basic dedicated server and then either going up or down from there based on your results.
You could try the m1.small instance at Amazon EC2 which will cost you about $70/month and you'll be able to host multiple sites on there. Of course you'll have to manage the server yourself.
对您的服务器日志进行一些分析。或者,如果没有可用的日志来设置谷歌分析,让它运行一段时间并获得流量水平的良好指示。
Run some analysis on your server logs. Or if there are no logs available to you set up google analytics, let it run for a while and get a good indication of traffic levels.