Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/douglascamata/db_sync

A simple test to synchronize a Cassandra and an Elastic Search.
https://github.com/douglascamata/db_sync

Last synced: 1 day ago
JSON representation

A simple test to synchronize a Cassandra and an Elastic Search.

Awesome Lists containing this project

README

        

# Requirements

- Python 3.4.x
- ElasticSearch installed and running on default port
- Cassandra installed and running on default port

# Run instructions

Install the package with `python setup.py install` and to run the daemon execute `python db_sync_daemon.py start`.

By default, the daemon will synchronize the databases each 5 seconds. You can change this by passing the command-line argument `--time` with the number of seconds you want to poll the databases, for example, the following command will synchronize the databases each 10 seconds:

`python db_sync_daemon.py start --time 10`

To stop, you may use `python db_sync_daemon.py stop`.