How do I create bulk users for stress testing?

I want to create 10000 users, each having next hundred users in their roster. I can use the ejabberdctl tool register the user, but how do i change the roster from command line?

Also is there any better way to create users? my user names are user1 to user1000. And user1 should have user2 to user user100 in his roster and so on..

please help.

Re: How do I create bulk users for stress testing?

Jigar Gosar wrote:

I want to create 10000 users, each having next hundred users in their roster.

It is quite easy to do in an SQL database directly.
If you are not using sql, then you do not need 10k users :)

thanks. I am asumming that

thanks.

I am asumming that "sql database" means posgresql, or mysql.

What if I am using mnesia? is it not good for 10000 users?

As you said I can easily add users and rosters in sql database, what is the best way to add data in mnesia database. A little help on how to access ejabberd's mnesia database will be help full. I have read a bit on manipulating data in mnesia. but would like to know how to access the ejabberd's mnesia database.

thanks again.

Jigar Gosar wrote: I want

Jigar Gosar wrote:

I want to create 10000 users, each having next hundred users in their roster. I can use the ejabberdctl tool register the user, but how do i change the roster from command line?

Also is there any better way to create users? my user names are user1 to user1000. And user1 should have user2 to user user100 in his roster and so on.

Massive account creation with ejabberdctl is quite slow. Jabber Test Suite is faster, check the article Benchmarking Jabber/XMPP Servers with Jabsimul.

Regarding the roster items, I see several solutions:

  • Install mod_ctlextra and use the command 'add-rosteritem'.
  • Install mod_ctlextra and use the command 'pushroster' or 'pushroster-all'. I didn't use those commands in a lot of months, so I don't know if they will work correctly.
  • Use Shared Roster Groups, but this is not yet controllable from the command line, and gives less power to you.
  • Modify the database manually. But then you must investigate the table format.
Syndicate content