A mobile gaming studio is deploying a real-time multiplayer backend on Amazon EC2 instances. The game servers require the lowest possible node-to-node network latency to synchronize player state across the fleet. The game traffic runs on port 7777, but the server's health monitoring endpoint is exposed on a management port at 8080. After launching the instances and registering them with an Application Load Balancer (ALB) target group, the solutions architect notices that the instances are failing health checks and experiencing high inter-node network latency. Which configuration will resolve these issues?
- ADeploy the EC2 instances in a partition placement group, and configure the target group health check to query port 8080.
- BDeploy the EC2 instances in a cluster placement group, and configure the target group health check to query the default traffic port.
- Deploy the EC2 instances in a cluster placement group, and configure the target group health check to query port 8080.Cevap
- DDeploy the EC2 instances in a spread placement group, and configure the target group health check to query the default traffic port.
Cevap
Deploying the EC2 instances in a cluster placement group ensures the lowest inter-node network latency, while configuring the target group health check to query port 8080 ensures the load balancer accurately monitors the health of the servers on the correct management port.
To achieve the lowest possible node-to-node network latency, EC2 instances should be deployed in a cluster placement group, which packs instances close together within a single Availability Zone. Additionally, because the health endpoint is on a custom management port (8080) rather than the game traffic port (7777), the ALB target group's health check must be explicitly configured to query port 8080. This resolves the health check failures while maintaining high-performance networking.
Adım Adım Çözüm
Anahtar Kavram
Optimizing EC2 network performance with placement groups and configuring target group health checks for custom ports.