Git Product home page Git Product logo

zbase-build-tools's Introduction

zbase-build-tools

Scripts to build ZBase from source

Dependencies

  • Autoconf >= 2.6
  • Boost-devel >= 1.41

How to build ?

Update the checkout file with source repositories and checkout tags/commitids and execute build scripts.

To build a rpm of ZBase, use:

$ ./build-rpm.sh

To build from source to a given prefix, use:

$ ./build.sh prefix_path

How to start zbase-server after RPM installation ?

Create server parameter config files as follows:

Config 1 (Server settings): /etc/sysconfig/memcached

PORT="11211"
USER="nobody"
MAXCONN="65535"
OPTIONS="-E /opt/membase/lib/memcached/ep.so -e 'min_data_age=1200;queue_age_cap=1200;max_size=64424509440;ht_size=12582917;chk_max_items=500000;chk_period=3600;keep_closed_chks=true;restore_file_checks=false;restore_mode=false;inconsistent_slave_chk=false;ht_locks=100000;tap_keepalive=600;max_evict_entries=2000000;kvstore_config_file=/etc/sysconfig/memcached_multikvstore_config'"

Config 2 (KVStore settings): /etc/sysconfig/memcached_multikvstore_config

{
  "kvstores" : {
    "kvstore1" : {
      "dbname" : "/db/zbase/ep.db",
      "db_shards" : 9,
      "data_dbnames" : [
        "/db/zbase/ep.db"
      ]
    }
  }
}

Server can be started using following command:

# /etc/init.d/memcached

To setup replication to another server,

Set inconsistent_slave_chk=true in secondary server config

Add a config for vbucketmigrator, /etc/sysconfig/vbucketmigrator with following contents:

TAPNAME=replication
SLAVE=IP_ADDRESS

Start vbucketmigrator

# /etc/init.d/vbucketmigrator start

How to start zbase-server after building from source ?

Create kvstore config as above at /tmp/kvstore.json and execute:

$ $PREFIX_PATH/bin/memcached -u nobody -c 50 -P /tmp/memcached.pid -v -d -r -p 11211 -E $PREFIX_PATH/lib/memcached/ep.so -e 'kvstore_map_vbuckets=false;min_data_age=0;queue_age_cap=900;tap_noop_interval=800;chk_max_items=5000000;keep_closed_chks=true;restore_file_checks=false;inconsistent_slave_chk=false;tap_keepalive=600;ht_locks=1000;kvstore_config_file=/tmp/kvstore.json' &> /tmp/zbase.log &

zbase-build-tools's People

Contributors

mtaneja avatar t3rm1n4l avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.