helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kisho...@apache.org
Subject git commit: [HELIX-13] Adding readme and some minor cosmetic changes to demo
Date Fri, 07 Dec 2012 09:44:18 GMT
Updated Branches:
  refs/heads/master 342ea1c27 -> ec5b4741c


[HELIX-13] Adding readme and some minor cosmetic changes to demo


Project: http://git-wip-us.apache.org/repos/asf/incubator-helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-helix/commit/ec5b4741
Tree: http://git-wip-us.apache.org/repos/asf/incubator-helix/tree/ec5b4741
Diff: http://git-wip-us.apache.org/repos/asf/incubator-helix/diff/ec5b4741

Branch: refs/heads/master
Commit: ec5b4741c16abd07884567e9ee9aa1c3bf42ffed
Parents: 342ea1c
Author: Kishore Gopalakrishna <g.kishore@gmail.com>
Authored: Fri Dec 7 01:42:43 2012 -0800
Committer: Kishore Gopalakrishna <g.kishore@gmail.com>
Committed: Fri Dec 7 01:44:06 2012 -0800

----------------------------------------------------------------------
 recipes/rsync-replicated-file-system/README.md     |   22 +++++++++++++++
 .../apache/helix/filestore/IntegrationTest.java    |    1 +
 2 files changed, 23 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/ec5b4741/recipes/rsync-replicated-file-system/README.md
----------------------------------------------------------------------
diff --git a/recipes/rsync-replicated-file-system/README.md b/recipes/rsync-replicated-file-system/README.md
index 8b13789..4e435ba 100644
--- a/recipes/rsync-replicated-file-system/README.md
+++ b/recipes/rsync-replicated-file-system/README.md
@@ -1 +1,23 @@
+Near real time rsync replicated file system
+===========================================
+
+Quickdemo
+=========
+This demo starts 3 instances with id's as ```localhost_12001, localhost_12002, localhost_12003```
+Each instance stores its files under /tmp/<id>/filestore
+``` localhost_12001 ``` is designated as the master and ``` localhost_12002 and localhost_12003```
are the slaves.
+Files written to master are replicated to the slaves automatically. In this demo, a.txt and
b.txt are written to ```/tmp/localhost_12001/filestore``` and it gets replicated to other
folders.
+When the master is stopped, ```localhost_12002``` is promoted to master. 
+```localhost_12003``` then stops replicating from ```localhost_12001``` and starts replicating
from ```localhost_12002```
+Files written to new master are replicated to ```localhost_12003```
+
+```
+git clone https://git-wip-us.apache.org/repos/asf/incubator-helix.git
+cd recipes/rsync-replicated-file-system/
+mvn clean install package
+cd target/rsync-replicated-file-system-pkg/bin
+./quickdemo
+
+```
+
 

http://git-wip-us.apache.org/repos/asf/incubator-helix/blob/ec5b4741/recipes/rsync-replicated-file-system/src/main/java/org/apache/helix/filestore/IntegrationTest.java
----------------------------------------------------------------------
diff --git a/recipes/rsync-replicated-file-system/src/main/java/org/apache/helix/filestore/IntegrationTest.java
b/recipes/rsync-replicated-file-system/src/main/java/org/apache/helix/filestore/IntegrationTest.java
index 9167549..b95d87a 100644
--- a/recipes/rsync-replicated-file-system/src/main/java/org/apache/helix/filestore/IntegrationTest.java
+++ b/recipes/rsync-replicated-file-system/src/main/java/org/apache/helix/filestore/IntegrationTest.java
@@ -138,6 +138,7 @@ public class IntegrationTest
           + "/filestore/c.txt"), "some_data in c");
       FileUtils.writeStringToFile(new File(baseDir + "localhost_12002"
           + "/filestore/d.txt"), "some_data in d");
+      Thread.sleep(10000);
       listFiles(baseDir);
       System.out.println("Create or modify any files under " + baseDir
           + "localhost_12002" + "/filestore"


Mime
View raw message