bhurlow / rubber

sync your rethinkdb tables with elasticsearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rubber

sync your rethinkdb tables with elasticsearch

This is an alternative to the java elasticsearch river plugin used for syncing rethinkdb and elasticsearch.

Rubber differs from the river plugin in the following ways:

  • it's not an esoteric elasticsearch plugin
  • it's not written in java
  • it has configurable logging
  • it's faster

Quick Start

docker pull bhurlow/rubber
docker run --link rethink:rethink --elasticsearch:search bhurlow/rubber node index.js prod:customers
  • args passed into index.js take the form of db:table
  • you may specify multiple db:table pairs
  • log level may be set by the DEBUG env var e.g. DEBUG=info or DEBUG=error
  • tables are backfilled automatically

note: the rubber container expects rethinkdb to be accessible at host rethink and elasticsearch to be accessible at host search (so you gotta link the containers like the example above)

Building the Container

git clone https://github.com/bhurlow/rubber.git
cd rubber
docker build -t rubber .

Todo

  • handle db connections better

About

sync your rethinkdb tables with elasticsearch


Languages

Language:JavaScript 88.7%Language:Shell 11.3%