How to do load testing for a Drupal 7 Web Application with authorized users

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by ArtuDrop on January 16, 2017 at 6:50pm

There is a Drupal 7 Web Application which provides personal chats, group chats, real-time polls, theater, and other activities for authorized users.

Hence, the Application contains a lot of callbacks from Front End to Back End.
I think it does not matter: They are callbacks to Drupal (https://www.drupal.org/project/js) and callbacks to node.js (https://www.drupal.org/project/nodejs).

How to test it under loading, simulating the presence of a plurality of users?

Comments

random login module

Posted by reinier-v on January 17, 2017 at 9:12am

Hi ArtuDrop,

I created a random-auto-login module once, exactly for this purpose (loadtesting a logged-in environment). Much easier to use than facilitating a login/SSO cycle in your tests. I'll see if I can put it online today.

Reinier

Here you go:

Posted by reinier-v on January 17, 2017 at 9:51am

That module should almost

Posted by benjy on January 17, 2017 at 10:18am

That module should almost have a dependency on http://drupal.org/project/bad_judgement

Ha, Ha. reinier-V, Does it

Posted by ArtuDrop on January 17, 2017 at 12:17pm

Ha, Ha.
reinier-V, Does it work for any user (guest) or for random user (guest)?

It just logs an anonymous

Posted by reinier-v on January 17, 2017 at 12:32pm

It just logs an anonymous user in as a random drupal user from the local user-base, (could be any role).
There's no guest user or user with username 'random' or anything. It's really random.

This enables you to do a normal anonymous jmeter-test and still make use of restricted pages/uri's/content.
For a proper jmeter test, every concurrent connection should have it's own session hence simulating the same amount of unique users.

Just for references

Posted by macdev_drupal on January 31, 2017 at 1:01pm

There is a detailed example of auth load tests with jmeter in the OReilly Drupal Perf. Book:
http://chimera.labs.oreilly.com/books/1230000000845/ch20.html#_handling_...

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /