question

eswitzer07 avatar image
eswitzer07 asked

Burstable (t2) server performance over time

Just looking to get some clarification on t2 server's performance over time. We currently are using the legacy PlayFab servers hosted through AWS, on the default t2.medium servers.


  • Our game has around 45 players per game session.
  • Each game session lasts less than an hour (at 45 minutes the server starts to enter a "world closing state" - forcing all players to escape and disconnect, or die at 50 minutes. Game server instance force closes at 55 minutes). Our games could be fully persistent, but we would like to add a close server state to ensure cleanup happens, logs get captured, etc...
  • Game server uses between 2gb and 2.7gb of RAM Testing on t2.medium ourselves, a server instances uses between 50% and 60% CPU Utilization

With these notes, we can only reliably host 1 server instance per t2.medium. With the larger t2.2xlarge we can reliably host 5 server instances.

Obviously hosting a single server instance on a VM isn't ideal - per the notice when setting the "Min free slots" and "Max instances per host" both to 1. If this wasn't a huge issue, we are still worried about hitting the 75000 server hour limit, and the 100 VM instance limit. Can these limits be raised further, through a specific plan type or otherwise?

Switching to the larger t2.2xlarge would help with some of these issues, but my concern then is without being able to reliably close servers after 55 minutes, our t2 credits would run out, and performance would be degraded.

Alternatively, would switching to a c4 Instance the ideal approach here? So credits aren't a thing to worry about, at a larger price premium?

In short I guess my questions are:

  1. Can the 75000 server instance hours / 100 server instances be increased? Through a custom plan or otherwise?
  2. Do PlayFab t2 servers run out of credits like other t2 servers? Is there a way to switch to unlimited mode? What happens if no credits remain?
  3. Is there a way to use both externally hosted, and playfab hosted servers?

Thanks in advance for any insights! Much appreciated.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Seth Du avatar image Seth Du ♦ commented ·

I have informed our team about your questions.

0 Likes 0 ·

1 Answer

·
Andy avatar image
Andy answered

1. Yes, we can increase the limit on server instance hours and server instances. What kind of increase are you thinking might make sense?

2. We actually don't have many games go live on t2, as far as I'm aware. The CPU burst model doesn't lend itself very well to game servers in many cases. I generally advise moving to a different VM type (C4.large is common) where you get a known stable resource allocation. My understanding, though, is that when credits are exceeded, you begin paying more for additional credits.

3. Yes, you can use a mix of the two. You do have to handle your own logistics, though, which can get complicated.

Lastly, I'd strongly advise looking at our new Multiplayer Servers 2.0 hosting. It's generally more capable and will continue to have new features added in the future.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

eswitzer07 avatar image eswitzer07 commented ·

Awesome, thank you for the clarification.

We have been wanting to move over to Servers 2.0, but with Unreal we have struggled a bit to get it up and running, and with release approaching we don't think we can guarantee a stable switch in time. Its something we are very keen on getting figured out post-launch though. The advantages are clear.

With regards to increasing the instance hours / server instances, I will need to further evaluate our performance, cost and really nail down what type of instance we would want to use, how large our community is expected to be as we get through marketing and grow user-base, etc...

The t2 just seems perfect for our needs. It can host 60+ player matches (the scale of our game) perfectly for almost an hour (the length of our matches), and the cost between that and a C4 seems to be close to 2x. Just need to review our billing history, and see how we have been charged in the past for the credits / burstable hours.

0 Likes 0 ·
eswitzer07 avatar image eswitzer07 commented ·

With regards to mixing Playfab and externally hosted. Currently if I have "Use external game server provider" ticked in the game manager, I'm unable to run Client.Matchmake. I get a response saying "Title Is configured for external servers". Is there a way around this? Or when you mention we would need to handle our own logistics, is this what you are referencing?

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.