Initialize:
yarn install
Build config.json:
node build_config.js
Start containers:
docker-compose up -d
Point your browser to http://<docker-machine-ip>:8091/ui/index.html
During cluster setup, create an arbitrary admin user and set the index memory quota to 256 MB.
Create a Couchbase bucket with name sync-test
and create a Couchbase user sync-test
with password sync-test
. Make sure to disable
replicas under "Advanced bucket settings".
Wait a few moments until the sync gateway has restarted (it constantly restarts itself until you finish configuring the bucket).
Create 1500 users:
node create_users.js http://<docker-machine-ip>:4985/sync-test 1500
Create test group with 100 users:
node create_group.js http://<docker-machine-ip>:4985/sync-test 100
Verify the above group:
node verify_group.js http://<docker-machine-ip>:4985/sync-test 100
Create 10 test assets for the above group:
node create_assets.js http://<docker-machine-ip>:4985/sync-test 100 10
Verify assets for the above group (via admin API, checks all at once):
node verify_assets.js http://<docker-machine-ip>:4985/sync-test 100 10
Verify assets for the above group (via public API, will check for each user):
node verify_assets.js http://<docker-machine-ip>:4984/sync-test 100 10
Verify users for all groups (checks list of channels):
node verify_users.js http://<docker-machine-ip>:4985/sync-test
Repeat the above for various numbers. Couchbase breaks at about 1000 users per group.