From 02c6b0ed8843e7863de13489d53f39c032f49e5f Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Fri, 8 Apr 2016 14:16:23 -0400 Subject: update readme --- README.rst | 16 ++++++++++++++-- series-develop.png | Bin 40932 -> 68605 bytes soledad_sync.py | 8 +++++--- 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 Binary files a/series-develop.png and b/series-develop.png 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, -- cgit v1.2.3