Giter Club home page Giter Club logo

xdcr-tracer's Introduction

XDCRTracer

XDCRTracer is a script for testing XDCR links between clusters and can handle varying topologies (Although is not a free in scope as Couchbase itself is yet).

XDCRTracer achieves this by using a list of source buckets and a list of destination buckets (Which includes all the source buckets). XDCRTracer will generate 1024 keys (One for each vBucket) into every source bucket and will check that they make it to every destination bucket.

Running

XDCRTracer requires a JSON Configuration file, an example of the parameters is given in example.json. The path to the JSON file must be given as the first parameter to the script. e.g.

java -jar xdcr_tracer example.json

XDCRTracer will return the cluster name, bucket name and a list of vBuckets in the instance that the document was missing or an error was encountered whilst retrieving it.

 Missing documents in CHO/default: [100, 101, 102, ... , 199]

Configuration

  • Number interval How long to leave between upserting keys and checking for propagation.

  • Number ttl How long should the tracing documents exist for. Minimum should be interval + time taken to insert keys + time taken to check keys. Recommend doubling interval.

  • Boolean repeat Should the XDCR checker just run once or repeat

  • Boolean debug Should debug messages be printed

  • Object sources The associative array of source clusters to insert keys into and check keys on.

    • Array connection Array of connection strings to the cluster
    • Object buckets Associative array of bucket names to bucket passwords
  • Object replicas The associative array of replica clusters to additionally check keys on.

Build Instructions

It is recommended that you install maven, this can usually be handled by a package manager. For OSX Homebrew you can use

brew install maven

When using maven, building is simple:

mvn compile

If you require a JAR then:

mvn package

xdcr-tracer's People

Contributors

chippiewill avatar

Watchers

Sergey Avseyev avatar Hideki Itakura avatar Steve Yen avatar Thuan Nguyen avatar Sarath Lakshman avatar  avatar  avatar Mike Wiederhold avatar Jeffry Morris avatar Laurent Doguin avatar Pasin Suriyentrakorn avatar Abhishek Singh avatar James Cloos avatar Dean Proctor avatar  avatar Dipti Borkar avatar Alex Ma avatar Brett Lawson avatar James Nocentini avatar Wayne Siu avatar Manik Taneja avatar Sundar Sridharan avatar Amy Kurtzman avatar  avatar  avatar  avatar Sriram Ganesan avatar  avatar Venu Uppalapati avatar  avatar Jeff Dillon avatar  avatar  avatar Cihan B. avatar Jim Walker avatar  avatar Dan Owen avatar Manu Dhundi avatar Andrew Reslan avatar  avatar Dave Finlay avatar  avatar  avatar vickiezeng avatar Couchbase Robot avatar  avatar  avatar Adam Fraser avatar Brian Williams avatar  avatar  avatar Michael Kwok avatar Keshav Murthy avatar Laura Czajkowski 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.