Skip to content

Commit

Permalink
Merge pull request #87 from jam2in/master
Browse files Browse the repository at this point in the history
Version 1.9.5
  • Loading branch information
jhpark816 authored Sep 1, 2016
2 parents b5a2f32 + 9e00bfa commit 2e14145
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 49 deletions.
49 changes: 1 addition & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,3 @@
## ENABLE_REPLICATION

This is an experimental Java client for Arcus memcached with
replication support. Replication takes place at the server side using
a master-slave approach. It is transparent to the client. There are
no changes to the Arcus client API.

However, the ZooKeeper based clustering mechanism changes somewhat.
It uses a tree structure different from the previous Arcus version to
expose the master servers in the cluster. The client code needs to
understand this new tree structure and parse information
appropriately.

Here is an example ZooKeeper directory structure for one memcached
group that includes one master and one slave.

```
$ cat setup-test-zk.bash
ZK_CLI="./zookeeper/bin/zkCli.sh"
ZK_ADDR="-server localhost:2181"
$ZK_CLI $ZK_ADDR create /arcus_repl 0
$ZK_CLI $ZK_ADDR create /arcus_repl/client_list 0
$ZK_CLI $ZK_ADDR create /arcus_repl/client_list/test 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_log 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_list 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_list/test 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_group 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_group/test 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_group/test/g0 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_group/test/g0/lock 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_mapping 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_mapping/127.0.0.1:11211 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_mapping/127.0.0.1:11211/test^g0^127.0.0.1:20121^ 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_mapping/127.0.0.1:11212 0
$ZK_CLI $ZK_ADDR create /arcus_repl/cache_server_mapping/127.0.0.1:11212/test^g0^127.0.0.1:20122^ 0
```

Below is the original README.md from the master branch. Everything
still applies.

## arcus-java-client: Arcus Java Client

This is a fork of [spymemcached][spymemcached] with the following modifications
Expand All @@ -68,7 +21,7 @@ To use it, add the following dependency to your pom.xml.
<dependency>
<groupId>com.navercorp.arcus</groupId>
<artifactId>arcus-java-client</artifactId>
<version>1.9.4</version>
<version>1.9.5</version>
</dependency>
</dependencies>
```
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.navercorp.arcus</groupId>
<artifactId>arcus-java-client</artifactId>
<version>1.9.4</version>
<version>1.9.5</version>
<name>Arcus Java Client</name>
<description>Java client for Arcus memcached</description>
<packaging>jar</packaging>
Expand Down

0 comments on commit 2e14145

Please sign in to comment.