SA-MP / MySQL / Apache -- Same server?
#1

How practical do you think this would be? Do you think a higher powered VPS would be able to meet the CPU & memory requirements to serve multiple hundreds of clients all three of these applications efficiently?

If anyone has any previous experience with this specifically I'd love to hear from you.

Thanks!
Reply
#2

Depends on the bandwith, and what script you're running. SA-MP doesn't require that much RAM. You should be fine with about 512MB RAM (Depending of how many players you expect from the start). Most companies allow upgrades along the way, so if you see that your server is using a lot of resources, you can upgrade it when that time comes.

No use in buying an extremely expensive VPS from the start, just a waste of money, to be honest.

Be sure to check the bandwith before you rent one. I'll send you a PM with a good host if you want me to (Advertising is not allowed in the forums), I have great experience with them!
Reply
#3

Thanks for the offer, I'm from the US, though. Looking for something based here. I really, REALLY appreciate your insight though. Much appreciated.

Still want more people's input, please tell me if you've done this before.
Reply
#4

How many players are you expecting? Do you already have a player-base?

I don't remember the average bandwith for each player, but it varies a lot. It really depends on your script though, objects, vehicles, textdraws and all that stuff Not to mention the players themselves. Everything requires bandwith. Say for example you get 500GB bandwith, that basically means you can download/upload 500GB a month. That accounts for FTP, every time someone loads your website, and all the players. If you have 500 players on at all times, only that would probably reach around 2-3 TB every month (Not completely sure about this, but still, a lot).

If your script is optimised properly, like not wasting away memory, having unnecessary loops and so on, you would be good with a lowend VPS in the start. As said in my last post, you can just upgrade as your player-base increases.

I think apache requires about 32MB of memory (Unless you have THOUSANDS of visitors every day). Not to sure about how MySQL requires, but as they say, the more the merrier! You will notice a big difference in the speed of MySQL if you have more memory. And considering that you are probably planning to use MySQL for your script, it would be easy to implement UCP's, forums and such on your website, due to the fact that you already have the MySQL server.

As for CPU, I would say sa-mp barely use anything at all of it, can't really go into detail about it, as I'm not sure how the sa-mp server is built/developed. You should be good with a single core, though I would recommend going with dual core, because as we all know now, the more the merrier!

If you do decide to get a VPS, please, go with linux. Either CentOS/Debian/Ubuntu. It might be a little bit hard to understand at first, but as soon as you start getting the hang of it, you will really notice the difference in stability and resource usage (At least that's my opinion). Install Apache and MySQL first. From there I would actually recommend you to download GamePanelX and install it to your server (Remote version preferably, as it includes FTP directly to your server folder). Now, I know this is mostly used when you have mutliple servers, but it's easier to work with when controlling your server. In there you can upload files, change the server configuration, start, stop and restart your server, which is really everything you need to get everything up and running!

Anyways, gotta go, might edit this later and go more into details, if you want me to : )
Reply
#5

Wow Knappen, you've earned a +rep from me. I truly appreciate that.

I am definitely running both my website & game off of MySQL. Both are already deep into development.

Do you have a method for me contacting you outside of the forums? Steam chat or something similar? I'd like to keep you on my friends list and chat from time to time.

Thanks again for your good insight.
Reply
#6

I have skype, if that works for you!

Add eirikutvik on skype! : D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)