Jump to content

Recommended Posts

Posted (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 by Tony
Posted
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.

 

Posted

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.

Posted

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.

Posted
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 :)

Posted
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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...