summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-04-08 14:16:23 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-04-08 14:16:23 -0400
commit02c6b0ed8843e7863de13489d53f39c032f49e5f (patch)
treecfd3a03a4de62dff94aba0e853af497446b17952
parentff0378a21c62ca21cc3dfccf9104b96d0670a352 (diff)
update readme
-rw-r--r--README.rst16
-rw-r--r--series-develop.pngbin40932 -> 68605 bytes
-rw-r--r--soledad_sync.py8
3 files changed, 19 insertions, 5 deletions
diff --git a/README.rst b/README.rst
index 7aaaa14..5427ecd 100644
--- a/README.rst
+++ b/README.rst
@@ -60,15 +60,27 @@ c) **Simultaneous easy+load**: Observe how the no-cpu perf case degrades when ru
Run debug soledad server
-------------------------
-need patched branch::
+You need this patched branch to run a local server with dummy authentication. I
+run this in a separate machine in your local network. I use vanilla couchdb server, with no authentication whatsoever. Warning: this is dangerous, it will eat your couch data so use it at your own
+risk::
+
twistd -n web --port 2323 --wsgi leap.soledad.server.debug_local_application_do_not_use
+Then you have to create a user for the sync to be done::
+
+ cd soledad/server/pkg
+ SOLEDAD_BYPASS_AUTH=1 ./create-user-db user-deadbeef
+
+You also have to create the shared database locally::
+
+ curl -X PUT localhost:5984/shared
+
To-Do
--------------
* [x] make the cpu load variable (parameter to fib function: pass it as env var).
* [x] graph req/sec in response to variable cpu loads (parameter to fib).
-* [ ] graph response of perf-easy DURING a run of perf/perf-little.
+* [x] graph response of perf-easy DURING a run of perf/perf-little.
* [ ] compare the rate of responsiveness against variable cpu loads.
* [ ] scale these minimalistic examples to realistic payload decryption using gnupg.
diff --git a/series-develop.png b/series-develop.png
index 22dc0f6..f77f158 100644
--- a/series-develop.png
+++ b/series-develop.png
Binary files differ
diff --git a/soledad_sync.py b/soledad_sync.py
index 654bc9a..8d5eceb 100644
--- a/soledad_sync.py
+++ b/soledad_sync.py
@@ -2,11 +2,13 @@ import os
from leap.soledad.client.api import Soledad
from twisted.internet import defer
-
-UUID = 'deadbeef2'
+# EDIT THIS TO MATCH YOUR TEST ENVIRONMENT -------------
+UUID = 'deadbeef'
+#HOST = 'http://futeisha:2323'
HOST = 'http://localhost:2323'
-NUM_DOCS = 100
+NUM_DOCS = 5
PAYLOAD = '/tmp/payload'
+# ------------------------------------------------------
def _get_soledad_instance_from_uuid(uuid, passphrase, basedir, server_url,