Affect on result of several virtual users

85 views
Skip to first unread message

Nenufar

unread,
Jan 23, 2012, 6:13:24 AM1/23/12
to multi-m...@googlegroups.com
Excuse for wrong English.

Help, please correctly to create loading. On the server there is a loading:
 -  some request (7-10) about calculation
 -  request  about create + request  about confirmation

What of two variants is correct?
1. To write down all request in one script. To start the test for one user with 200 threads
2. Or to divide  request  about two scripts .To use two users (one on calculation, another on creation and  confirmation) and at each user on some threads.

I do not understand on what the number of users and number of  threads affect.





Jon Kern

unread,
Feb 8, 2012, 4:56:35 PM2/8/12
to multi-m...@googlegroups.com
Nenufar,

i am no expert here...

but i view it this way:
  • scripts are for simulating something that the user might do
    • could be simply hitting the "about" page if you want to simulate DOS attack :-)
    • could be logging in, entering data, searching for data, etc
  • threads are for simulating number of users
    • simulating multiple simultaneous users
    • simulating different users groups to run different scripts

you can try different approaches to see the effect.

then choose what works best.

for example... you could try
  • [user_group-1]
    threads: 10
    script: AW_prodtest.py
and then try
  • [user_group-1]
    threads: 10
    script: about_test.py
  • [user_group-2]
    threads: 10
    script: login_and_search_test.py
and see how things look...

then bump up the number of threads and see the effect

you will likely see it reach a point where the throughput (requests/second) drops off and the data gets "noisy" which could mean the system is getting unstable.

i view multi-mechanize as a tool to help see how the system responds. and if it does not respond as you expect, you have some work to do to explain why :-)

hope this helps
jon

blog: http://technicaldebt.com
twitter: http://twitter.com/JonKernPA

Nenufar said the following on 1/23/12 6:13 AM:
Reply all
Reply to author
Forward
0 new messages