Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 1.75 KB

README.md

File metadata and controls

35 lines (31 loc) · 1.75 KB

User Profile Generator

This tool can be used to generate sample dataset for User Profiles and load into Couchbase bucket or dump to flat files. Optionally, it generates Orders for each User Profile which are loaded as separate JSON documents. The data generated is deterministic and can be changed using the "seed" argument.

    Usage: gen_user_profiles.py [options]

Options:

    -N NUM_USER_PROFILES, --num_user_profiles=NUM_USER_PROFILES
                   Number of JSON User Profiles to be generated (Default - 1)
    -S SERVER,  --server=SERVER
                  Server Hostname/IP address running Couchbase (Default - localhost)
    -b BUCKET,  --bucket=BUCKET
                  Bucket to be loaded with docs (Default - default)
    -p PASSWORD,--password=PASSWORD
                  Password for the bucket (Default - blank)
    -o,         --with_orders  Generate separate JSON Documents for each order in
                  User Profile(Default - False)
    -s SEED,    --seed=SEED  
                  Seed value for random generator(Default - 20177)
    -c,         --cb_client       
                  Use Couchbase Python Client(Default - False)
    -m,         --dump_to_mongo   
                  Dump User Profiles to Mongo(Default - False)
    -f,         --dump_to_file    
                  Dump User Profiles to file(Default - False)
    -B BATCH_SIZE,--batch_size=BATCH_SIZE
                  Batch Size for Data Load (Default - 1)
    -M MUTATION_MODE, --mutation_mode=MUTATION_MODE
                  Mutate data after loading. 0(Off) - Default. 1 - 
                  80/20(R/W). 2 - 50/50(R/W)
    -h,           --help   show this help message and exit