Ticket #59 (closed enhancement: fixed)

Opened 6 years ago

Last modified 4 years ago

Create a client test application

Reported by: mike Owned by: mike
Priority: high Milestone: alpha-test
Component: mv3d Version: 0.2
Keywords: Cc:
Estimated Effort: 3 days Platform: All
State: Relative Size:

Description

Problem

There needs to be a way to simulate clients connecting to a server that doesn't involve any graphics. This will be useful to a) add a unit test that will prove a client can log in to the server, and b) so the server can be load tested and we can see what effect additional clients have on it.

Change History

Changed 6 years ago by mike

  • status changed from new to assigned
  • platform set to All

Design

Check out ClientTestApplication?.

Changed 6 years ago by mike

  • status changed from assigned to closed
  • resolution set to fixed

Solution

Just as described above. Unfortunately, getting any sort of threading working was impossible due to Ogre's non multi-threading. If you want to take advantage of multiple cores or CPUs, just run multiple processes. It's also a little hard on the client. Running 50 test clients (in one python instance) stressed the machine the clients were running on (P4) more than the server they all connected to (P3). It took about 20 minutes to complete the test, during which, the client machine was at 100% CPU usage while the server went from 80%-98% (mostly around 80%). However, the server was down to 3 ips or a little under at its worst.

Changed 4 years ago by mike

  • milestone changed from beta-test to MV3D-0.32

Milestone beta-test deleted

Changed 4 years ago by mike

  • milestone changed from MV3D-0.32 to alpha-test

Setting the milestone back

Note: See TracTickets for help on using tickets.