Tony Posted November 5 Posted November 5 (edited) Hello, I have a site with 2M users/day and growing. The videos are streamed from a separate server (CDN) without problems. However, the frontend + database is close to its limits. Currently, it is running on AMD EPYC 7402P (24 cores, 48 threads), 64GB RAM, 2x Enterprise SSDs (RAID1). I moved search and recommended videos to a separate server with Sphinx, but it's usage is very low. What's the next recommended step, taking the database to a separate server with similar specs? Edited November 5 by Tony Quote
Tech Support Posted November 6 Posted November 6 Hello, close to the limit because of what exactly? CPU usage? If yes, then what causes the most of usage? Quote
Tony Posted November 6 Author Posted November 6 54 minutes ago, Tech Support said: Hello, close to the limit because of what exactly? CPU usage? If yes, then what causes the most of usage? CPU utilization is ~ 75% in the peak hours. Mainly because of Apache 2. With drives, Apache also writes about 350MB/s in the peak hours, but I'm not sure what's the actual limit, but I guess it's not far. Quote
Tech Support Posted November 7 Posted November 7 If you don't have open source option for your project, you need to purchase it. Ioncube encoded files are not optimized by PHP 8 opcache and have to be parsed again and again with each request, increasing CPU and HDD load. If you have open source code already, please make sure you are using PHP 8.1 and check with its official performance recommendations for high load sites. Basically KVS code is not utilizing much CPU, but with big traffic every small bit matters and and small optimization may be effective. Quote
Tanjiro Posted November 7 Posted November 7 Jesus 2m/day, that's 60M traffic per month, that's absolute huge number Quote
Tony Posted November 7 Author Posted November 7 Wow, I bought the open source code and the load dropped from 14 to 4 (lowest time of the day now). Crazy. This should be highlighted somewhere. Quote
Tech Support Posted November 7 Posted November 7 1 hour ago, Tony said: Wow, I bought the open source code and the load dropped from 14 to 4 (lowest time of the day now). Crazy. This should be highlighted somewhere. Glad to hear. This is not needed normally when you start a new project, and when you have a problem with performance you can always ask support :) Quote
Tech Support Posted November 7 Posted November 7 3 hours ago, Tanjiro said: Jesus 2m/day, that's 60M traffic per month, that's absolute huge number There are projects on KVS with 20m / day, so 2m / day is average. 1 Quote
Tanjiro Posted November 7 Posted November 7 31 minutes ago, Tech Support said: There are projects on KVS with 20m / day, so 2m / day is average. Could you check my ticket please And I also have another question, is there a feature for member block each other like facebook ? If member A block member B then member B can't view or comment on videos from member A Quote
Tech Support Posted November 8 Posted November 8 There is no such feature that prevents from commenting videos. Only possible to block a member and not receive new internal messages. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.