Skip to content

Getting Started

timiblossom edited this page Nov 4, 2014 · 28 revisions

In this setup, we will use Redis with Dynomite. For Memcached, it is very similar replacing Redis installation step with Memcached installation step. We will also show you the configurations to simulate a one-node Dynomite cluster and a two-node Dynomite cluster.

###1. Install Redis Please follow the instructions on this website to download and install Redis: http://redis.io/

###2. Build Dynomite Please follow our README.md to compile and build Dynomite from source. Note that we only test Dynomite on Linux environments so we recommend compiling and building Dynomite on a Linux system.

###3. Configuration ####a. One node cluster: dynomite.yml

    dyn_o_mite:
      listen: 127.0.0.1:9102
      env: network
      datacenter: localdc
      rack: localrack
      dyn_listen: 127.0.0.1:9101
      tokens: '3101134286'
      servers:
      - 127.0.0.1:6379:1
      redis: true

####b. Two nodes cluster dynomite1.yml

   dyn_o_mite:
     listen: 127.0.0.1:9102
     env: network
     datacenter: localdc
     rack: localrack
     dyn_listen: 127.0.0.1:9101
     tokens: '3101134286'
     dyn_seeds:
     - 127.0.0.2:9101:localrack:localdc:437425602
     servers:
     - 127.0.0.1:6379:1
     redis: true

dynomite1.yml

     dyn_o_mite:
       listen: 127.0.0.2:9102
       env: network
       datacenter: localdc
       rack: localrack
       dyn_listen: 127.0.0.2:9101
       tokens: '437425602'
       dyn_seeds:
       - 127.0.0.1:9101:localrack:localdc:3101134286
       servers:
       - 127.0.0.2:6379:1
       redis: true

###4. Run Assume you have gone through the build process and produced the binary file "dynomite". To run dynomite, you can run "dynomite -c dynomite.yml". If you want to start a 2 node cluster with those two yaml files, you can open 2 terminals and run: Terminal 1: $ dynomite -c dynomite1.yml Terminal 2: $ dynomite -c dynomite2.yml