Skip to content

Commit

Permalink
Update dummyrunner documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Griatch committed Jan 19, 2017
1 parent 86e67a2 commit 5b62a30
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions evennia/server/profiling/dummyrunner.py
Expand Up @@ -133,7 +133,7 @@
Setup:
1) setup a fresh/clean database (if using sqlite, just safe-copy
away your real evennia.db3 file and create a new one with
manage.py)
`evennia migrate`)
2) in server/conf/settings.py, add
PERMISSION_PLAYER_DEFAULT="Builders"
Expand All @@ -148,14 +148,27 @@
evennia --dummyrunner <nr_of_clients>
5) Log on and determine if game remains responsive despite the
heavier load. Note that if you do profiling, there is an
additional overhead from the profiler too!j
heavier load. Note that if you activated profiling, there is a
considerate additional overhead from the profiler too so you
should usually not consider game responsivity when using the
profiler at the same time.
6) If you use profiling, let the game run long enough to gather
data, then stop the server cleanly using evennia stop or @shutdown.
@shutdown. The profile appears as
server/logs/server.prof/portal.prof (see Python's manual on
cProfiler).
Notes:
The dummyrunner tends to create a lot of players all at once, which is
a very heavy operation. This is not a realistic use-case - what you want
to test is performance during run. A large
number of clients here may lock up the client until all have been
created. It may be better to connect multiple dummyrunners instead of
starting one single one with a lot of players. Exactly what this number
is depends on your computer power. So start with 10-20 clients and increase
until you see the initial login slows things too much.
"""

#------------------------------------------------------------
Expand Down

0 comments on commit 5b62a30

Please sign in to comment.