Giter Site home page Giter Site logo

goes's Introduction

goes

Go ElasticSearch dumper/importer/exporter.

Simple example of usage:

# export an index to a file
goes export --in es1.mskdc.lzd.co/test_index --out dump-file.json 

# import an index from a file and assert 3 shards + 0 replicas
goes import --in dump-file.json --out es1.mskdc.lzd.co/test_index2 --shards=3 --repls=0

# copy an index
goes copy --in es1.mskdc.lzd.co/test_index --out es1.mskdc.lzd.co/test_index2 

Some of advanced options:

# export an index to a file with 10 goroutines and 100 documents per _shard_ per request
goes export --in es1.mskdc.lzd.co/test_index --out dump-file.json --parallel=10 --window=100

# import an index from a file and assert 6 shards + 1 replicas sending 1000 documents per request
goes import --in dump-file.json --out es1.mskdc.lzd.co/test_index2 --bulk=1000 --shards=6 --repls=1

In or out parameter can be ommitted for import/export, then the file is read from stdin.

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.