Refer the Arcus repository for more details.
# Install JDK & Ant
$ sudo apt-get install openjdk-8-jdk openjdk-8-jre ant
# Install dependencies
$ sudo apt-get install build-essential autoconf automake libtool libcppunit-dev python-setuptools python-dev
# Install Git
sudo apt-get install git
- Clone the Arcus repository:
$ git clone https://github.com/naver/arcus
- Build:
$ cd arcus/scripts
$ ./build.sh
- Setup a sample local cache cloud with conf file:
$ ./arcus.sh quicksetup conf/local.sample.json
- Test:
$ echo "stats" | nc localhost 11211 | grep version
STAT version 1.12.1
You can list all registered cache clouds using below commands:
$ ./arcus.sh memcached listall
Server Roles
{'zookeeper': ['127.0.0.1'], 'memcached': []}
-----------------------------------------------------------------------------------------------------
serviceCode status total online offline created modified
-----------------------------------------------------------------------------------------------------
test OK 2 2 0 2020-08-01 00:57:37.812233 2020-08-01 01:14:20.835327
Done.
You can stop the memcached using the serviceCode
:
$ ./arcus.sh memcached stop test
Server Roles
{'zookeeper': ['127.0.0.1'], 'memcached': []}
[127.0.0.1] Executing task 'mc_stop_server'
[localhost] local: ps -ef | grep -e memcached | grep -e '-p 11211' | grep -v 'ssh' | awk '{print $2}'
[127.0.0.1] Executing task 'mc_stop_server'
[localhost] local: ps -ef | grep -e memcached | grep -e '-p 11212' | grep -v 'ssh' | awk '{print $2}'
Done.
You can unregister the memcached using the serviceCode
:
$ ./arcus.sh memcached unregister test
Server Roles
{'zookeeper': ['127.0.0.1'], 'memcached': []}
!!Caution!!
This will delete an Arcus cluster permanently.
Please type in the following texts to confirm: "Delete test"
>> Delete test
[True, True, True, True, True, True]
Done.
You can stop the zookeeper using the below command:
$ ./arcus.sh zookeeper stop
Server Roles
{'zookeeper': ['127.0.0.1'], 'memcached': []}
[127.0.0.1] Executing task 'zk_stop'
[localhost] local: bin/zkServer.sh stop
JMX enabled by default
Using config: /home/parallels/arcus/zookeeper/bin/../conf/zoo.cfg
Stopping zookeeper ... STOPPED
Done.