CouchDB + TiddlyWiki continous replication test. Any volunteers?

36 views
Skip to first unread message

Måns

unread,
Nov 14, 2011, 8:02:31 AM11/14/11
to TiddlyWiki
Hi TwWizards

I have moved this question from the TiddlyWeb group:
http://groups.google.com/group/tiddlyweb/browse_thread/thread/68acebb083c2f082?hl=en
because I guess that it is more likely to find someone who'd be
interested in this sort of application here.

In short:
Saq, Fnd, UnclePhil and Bauwe Bijl have made plugins which makes it
possible to use CouchDB as a serverbackend for TiddlyWiki.
Bauwe is responsible for the latest edition of the package/projekt and
has been so kind to put it on GitHub:
https://github.com/BauweBijl/TiddlyCouch

Anyone can (following Bauwe's simple instructions) install/host their
TiddlyWiki in a database on a CouchDB server and http://iriscouch.com
provides a free CouchDB server service....

The experiment:

Bauwe wrote this:
"Some more advanced patterns with replication you can think of is the
"continuous" replication. This way the changes from the couch you
replicate from are automatically "replicated" inside your own.
For a "small"group this can be interesting:
B>continuous-replicate A
C>continuous-replicate B
D>continuous-replicate C
A>continuous-replicate D
(all members work on their own account...and the "ring" makes it one
project) "

Prerequisites to be able to be able to participate in the experiment:

1 Create an account on http://iriscouch.com
2 Set Admin user and password
3 Add a database - conrep03 might be the next name following Bauwe's
logic :-)
http://YourAccount.iriscouch.com/_utils/
4 goto the replicator
http://YourAccount.iriscouch.com/_utils/replicator.html
5 Set the latest contributed url up as a the remote server to
replicate changes from - and tick the box for "continous"

Bauwe made his as nr.1 (A):
http://bijl.iriscouch.com/conrep01

I'm replicating it here (nr. 2 (B)):
http://mama.iriscouch.com/

My url, is the next address to be continously replicated.
http://mama.iriscouch.com/

If you setup the next one - please add your url here -
then Bauwe can conclude the circle - and we will be three participants
creatiing a loop...

- or (even better) yet another participant can "join the party" -
and we will be four in the "TiddlyCouchCircle"...
- etc...

Cheers Måns Mårtensson

Bauwe Bijl

unread,
Nov 14, 2011, 8:33:13 AM11/14/11
to TiddlyWiki
hi
Måns
> Bauwe made his as nr.1 (A):http://bijl.iriscouch.com/conrep01
> My url, is the next address to be continously replicated.http://mama.iriscouch.com/

I believe your url was:

http://mama.iriscouch.com/conrep02

So if someone wants to join this circle:
"continues replicate" http://mama.iriscouch.com/conrep02 to a couchdb
"conrep03"
And report the url here so I can pick this up

>  - or  (even better) yet another participant can "join the party"  -
> and we will be four in the "TiddlyCouchCircle"...
Everywhere in the circle can be a new member (not only added to the
"tail"...sort of by introduction. (we can work that out a later time)

Bauwe

Måns

unread,
Nov 14, 2011, 8:37:39 AM11/14/11
to TiddlyWiki
Thanks Bauwe :-)

On Nov 14, 2:33 pm, Bauwe Bijl <bauweb...@gmail.com> wrote:
> hi
> Måns
>
> > Bauwe made his as nr.1 (A):http://bijl.iriscouch.com/conrep01
> > My url, is the next address to be continously replicated.http://mama.iriscouch.com/
>
> I believe your url was:
>
> http://mama.iriscouch.com/conrep02
>
> So if someone wants to join this circle:
> "continues replicate"http://mama.iriscouch.com/conrep02to a couchdb

UnclePhil

unread,
Nov 14, 2011, 3:29:57 PM11/14/11
to TiddlyWiki
http://unclephil.couchone.com/conrep03 is replicating now ......

I read the thread a little bit late ... my flu need to sleep

But can you reply to this question
what happens if someone is replicating this on a local server .... ???
This can be a real danger
That's why i think we need to use a filtered replication

That's one of the problem of couch
The replication model was done for a local lan, not really for the
Wide Area Internet

The idea is great , we can work on concurrently to the same tw, but
can we stop a malicious js ???

Unclephil,
full of virus .... human virus


On Nov 14, 2:37 pm, Måns <humam...@gmail.com> wrote:
> Thanks Bauwe :-)
>
> On Nov 14, 2:33 pm, Bauwe Bijl <bauweb...@gmail.com> wrote:
>
>
>
>
>
>
>
> > hi
> > Måns
>
> > > Bauwe made his as nr.1 (A):http://bijl.iriscouch.com/conrep01
> > > My url, is the next address to be continously replicated.http://mama.iriscouch.com/
>
> > I believe your url was:
>
> >http://mama.iriscouch.com/conrep02
>
> > So if someone wants to join this circle:
> > "continues replicate"http://mama.iriscouch.com/conrep02toa couchdb

UnclePhil

unread,
Nov 14, 2011, 3:58:06 PM11/14/11
to TiddlyWiki
I made a change to the db, and i replicate it back to mans db
but my devil message is not appearing

Phil

On Nov 14, 9:29 pm, UnclePhil <koenigp...@gmail.com> wrote:
> http://unclephil.couchone.com/conrep03is replicating now ......

Bauwe Bijl

unread,
Nov 14, 2011, 3:59:09 PM11/14/11
to TiddlyWiki
Hi Phil

We are not testing a.t.m. ...to create a test we need a third person.
...not even 100% sure it will work sufficiently until we test...
And then this will indeed only be workable for small groups.
...however...when smaller circles are continuous-replicated to one
mastercouchdb-instance, then the IncludePlugin could help to collect
the output from several different circles (continuous replicated) to a
master TiddlyCouch in the mastercouchdb.
The IncludePlugin will only work inside one couchdb-instance.
(tiddlers will be view only)

...but this is only possible when we can create such replication
model...
The other option is continuous replication inside one couch-
instance ...which means we have to enable users for each TiddlyCouch
inside the same instance.
Could be the next test...

Bauwe

Bauwe Bijl

unread,
Nov 14, 2011, 4:22:52 PM11/14/11
to TiddlyWiki
well...the pattern should be:
Maans continuous replicates from: http://bijl.iriscouch.com/conrep01
Phil continuous replicates from Maans: http://mama.iriscouch.com/conrep02
And I will continuous replicate from: http://unclephil.couchone.com/conrep03

...Phil I have replicated yours..
so I get your updates : http://bijl.iriscouch.com/conrep01/_design/tiddlycouch/_list/tiddlywiki/tiddlers

Perhaps Måns needs to redo the replication...
I have put an irc client inside the tw to have some more direct
conversation...

Bauwe
Reply all
Reply to author
Forward
0 new messages