From 7dbf032018d93384aa4998b980c2f9637531c4c0 Mon Sep 17 00:00:00 2001
From: mylesjao <mrlau1@gmail.com>
Date: Wed, 22 Apr 2015 12:30:29 +0800
Subject: [PATCH] [infinispan] add infinispan-binding README

---
 .gitignore           |  2 ++
 infinispan/README.md | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 infinispan/README.md

diff --git a/.gitignore b/.gitignore
index 60025b24..ee88a787 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,5 @@ output*
 .classpath
 .settings
 .checkstyle
+
+.DS_Store
diff --git a/infinispan/README.md b/infinispan/README.md
new file mode 100644
index 00000000..5f95e366
--- /dev/null
+++ b/infinispan/README.md
@@ -0,0 +1,41 @@
+## Quick Start
+
+This section describes how to run YCSB on infinispan. 
+
+### 1. Install Java and Maven
+
+### 2. Set Up YCSB
+1. Git clone YCSB and compile:
+  ```
+git clone http://github.com/brianfrankcooper/YCSB.git
+cd YCSB
+mvn clean package
+  ```
+
+2. Copy and untar YCSB distribution in distribution/target/ycsb-x.x.x.tar.gz to target machine
+
+### 4. Load data and run tests
+####4.1 embedded mode with cluster or not
+Load the data:
+```
+./bin/ycsb load infinispan -P workloads/workloada -p infinispan.clustered=<true or false>
+```
+Run the workload test:
+```
+./bin/ycsb run infinispan -s -P workloads/workloada -p infinispan.clustered=<true or false>
+```
+####4.2 client-server mode
+    
+1. start infinispan server
+
+2. read [RemoteCacheManager](http://docs.jboss.org/infinispan/7.2/apidocs/org/infinispan/client/hotrod/RemoteCacheManager.html) doc and customize hotrod client properties in infinispan-bindinf/conf/remote-cache.properties
+
+3. Load the data with specified cache:
+  ```
+./bin/ycsb load infinispan-cs -s -P workloads/workloada -P infinispan-binding/conf/remote-cache.properties -p cache=<cache name>
+  ```
+
+4. Run the workload test with specified cache:
+  ```
+./bin/ycsb run infinispan-cs -s -P workloads/workloada -P infinispan-binding/conf/remote-cache.properties -p cache=<cache name>
+  ```
\ No newline at end of file
-- 
GitLab