Results 1 to 2 of 2

Thread: Create 30000 accounts as quick as possible?

  1. #1
    Join Date
    May 2008
    Location
    Taiwan
    Posts
    296
    Rep Power
    7

    Default Create 30000 accounts as quick as possible?

    Dear All,

    for a urgent testing case, we need to create thousands of accounts in ZCS and do email-sending test. I'm running a script something like below for this purpose :

    while [ $count -le 30000 ]; do
    zmprov ca guest$count$mydomain 111111
    done


    but it's kind of slow.
    Can anyone provide is there fast way to create 30000 accounts in ZCS?

    Thanks in advance.

  2. #2
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Every time you run zmprov or zmmailbox, it has to crank up a new JVM thread which is a lot of overhead; however, you can run it in batch mode.
    ie: It would be better to aggregate a list of actions and then send them all to one instance of zmprov:

    nano /tmp/script.sh
    Code:
    #!/bin/bash
    COUNTER=0
    while [ $COUNTER -lt 30000 ]; do
    echo "ca testing$COUNTER@domain.com password" 1>>/tmp/provision.txt
    let COUNTER=COUNTER+1 
    done
    chmod 744 script.sh
    ./script.sh
    zmprov < /tmp/provision.txt
    Or zmprov -f /tmp/provision.txt

    Infact it may be faster to do it via LDAP directly (zmprov -l < provision.txt) instead of mailboxd/Java/SOAP; though I haven't done an analysis in this case - some commands will need to talk to the mailbox server anyways.

    Just ran it on a vm with 512mb ram ~1ghz proc dedicated to it (ZCS 6.0.0 D2, all default settings, no Java/LDAP tweaks):
    - Less than 30sec to make the .txt
    - Creates roughly 10k accounts every 10 minutes (ran zmaccts every so often in other terminal)
    Last edited by mmorse; 06-14-2009 at 11:22 PM. Reason: stats

Similar Threads

  1. Create folder for all accounts
    By tiarra in forum Administrators
    Replies: 8
    Last Post: 09-21-2009, 02:32 PM
  2. Replies: 0
    Last Post: 04-20-2009, 06:21 PM
  3. [SOLVED] Create multiple accounts
    By ajflorido in forum Migration
    Replies: 1
    Last Post: 04-15-2009, 04:43 AM
  4. Bulk Create for Archive Accounts
    By cswihart in forum Administrators
    Replies: 3
    Last Post: 09-26-2008, 03:04 PM
  5. Can Not create new accounts 3.2.0_M2_224.FC4.
    By jdmonc in forum Administrators
    Replies: 3
    Last Post: 08-01-2006, 02:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •