Calculate server power

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
DarkGon
Posts: 33
Joined: 25 Apr 2021, 21:54

Calculate server power

Post by DarkGon »

I need to understand what the requirements for a server should be in order to understand how expensive it is.
My boss wants to make a casual game with your plugin, but the simultaneous online number of games from our publisher exceeds 5,000 concurrent people (CCU), so he wants to know how much to pay per month for server rental,
and in order to calculate the price tag, you need to find out the requirements. As I understand it, minimal use of packets is planned (player spawn and transfer of player movement from your example + game end event), how can you calculate the server capacity?
DarkGon
Posts: 33
Joined: 25 Apr 2021, 21:54

Re: Calculate server power

Post by DarkGon »

I'm also wondering how I can test my server?
Is it possible to create an imitation of a large online?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Calculate server power

Post by Lapo »

Hi,
this depends on several variables such as the type of server in use (virtualized vs metal), the complexity of the server side code, etc...
We have written several articles about this, and how to assess the necessary resources.

Please check this article where we go in details on how to create a stress test to evaluate your server's load:
https://smartfoxserver.com/blog/buildin ... test-tool/

games from our publisher exceeds 5,000 concurrent people (CCU)

5K CCU is not particularly hard for SFS2X: we have customers that exceeds that capacity by one order of magnitude and we've tested a single instance running over 100K concurrent clients.

Typically a dedicated 6-12 core machine should be more than sufficient to handle that load and future growth, but testing will give you a more precise idea.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
DarkGon
Posts: 33
Joined: 25 Apr 2021, 21:54

Re: Calculate server power

Post by DarkGon »

Thank you very much for your answer.
Please tell me how VPS differs greatly from a server? VPS is much cheaper - this is understandable because it usually does not have very powerful hardware, there are more restrictions, but does the type of dedicated server affect performance?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Calculate server power

Post by Lapo »

A VPS is a virtual(ized) server running inside a larger host machine: in other words it's a VM (virtual machine) using a fraction of the resources of the physical hardware. Many VPS servers can run inside the same machine and share its resources.

They are usually cheap (although it's not always the case) because they can offer as low as 1 core and 512MB of RAM for very light workloads, but you can also find larger instances with multiple cores and memory.

SmartFoxServer runs well on both VPS and physical hardware but, as mentioned earlier, it all depends on what you need to do and how complex is your server code and client-server interaction.

These days you can find cloud services offering all ranges of virtual servers from few cores to very high count with large amounts of RAM and network bandwidth.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply