You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by GitBox <gi...@apache.org> on 2022/05/19 01:45:40 UTC

[GitHub] [james-project] chibenwa commented on a diff in pull request #1005: JAMES-3734: Document tools and performance testing result for James

chibenwa commented on code in PR #1005:
URL: https://github.com/apache/james-project/pull/1005#discussion_r876513152


##########
server/apps/distributed-app/docs/modules/ROOT/pages/operate/provision.sh:
##########
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+export WEBADMIN_BASE_URL="http://localhost:8000"
+export SMTP_URL="localhost:25"
+export DOMAIN_NAME="domain.org"
+
+# Create domain
+curl -X PUT ${WEBADMIN_BASE_URL}/domains/${DOMAIN_NAME}
+
+for i in {1..10}

Review Comment:
   Make 10 in a variable (easier to change)



##########
server/apps/distributed-app/docs/modules/ROOT/nav.adoc:
##########
@@ -60,6 +60,7 @@
 *** xref:operate/cassandra-migration.adoc[]
 *** xref:operate/security.adoc[]
 *** xref:operate/db-benchmark.adoc[]
+*** xref:operate/james-benchmark.adoc[]

Review Comment:
   We could have a separate subsection for benchmarks below, no?



##########
server/apps/distributed-app/docs/modules/ROOT/pages/operate/provision.sh:
##########
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+export WEBADMIN_BASE_URL="http://localhost:8000"
+export SMTP_URL="localhost:25"
+export DOMAIN_NAME="domain.org"
+
+# Create domain
+curl -X PUT ${WEBADMIN_BASE_URL}/domains/${DOMAIN_NAME}
+
+for i in {1..10}
+do
+  # Create user
+   echo "Creating user $i"
+   username=user${i}@$DOMAIN_NAME
+   curl -XPUT ${WEBADMIN_BASE_URL}/users/$username \
+     -d '{"password":"secret"}' \
+     -H "Content-Type: application/json"
+
+  # Create mailboxes for each user
+   echo "Creating user $i mailboxes"
+   # Create some basic mailboxes
+   curl -XPUT ${WEBADMIN_BASE_URL}/users/${username}/mailboxes/INBOX
+   curl -XPUT ${WEBADMIN_BASE_URL}/users/${username}/mailboxes/Outbox
+   curl -XPUT ${WEBADMIN_BASE_URL}/users/${username}/mailboxes/Sent
+   curl -XPUT ${WEBADMIN_BASE_URL}/users/${username}/mailboxes/Draft
+   curl -XPUT ${WEBADMIN_BASE_URL}/users/${username}/mailboxes/Trash
+
+   # Create some other dummy mailboxes
+   for j in {1..10}

Review Comment:
   Make 10 in a variable mailboxCount



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org