ECS game servers are lagging. Where should I be looking for the issue?

0

I am running my Unity (2021.3.1f1) servers on ECS using Fargate. When I test the game, I run a single task with 1vCPU and 2GB of memory and I connect 2 clients to the server. The server tends to lag about every 3 seconds, making the game far less enjoyable. I have enabled Container Insights and I found that the CPU and memory usage was nowhere near the 50% mark and the task's network usage seemed fine to me as well. I am now wondering if this issue could be related to the AWS services I use and the way I have set them up or if I should be looking for the issue inside my network code.

1回答
0

We run a lot of containers on ECS + Fargate and haven't seen anything like this. Granted, these aren't gaming servers, but we have fairly continuous network connections happening and never noticed anything like that.

Do you use other AWS Services? Do you perform synchronous sync to S3 or other storage systems that could lock your service until completion of the round trip?

profile picture
回答済み 2年前
  • I do not interact with any AWS service on the game servers. I'll take this as a sign to start looking into the server's netcode. Thanks for the answer.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ