Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
/ phovea_data_redis Public archive

Data provider plugin for loading data stored in a Redis in-memory database

License

Notifications You must be signed in to change notification settings

phovea/phovea_data_redis

Repository files navigation

DEPRECATED: phovea_data_redis

Phovea Build Status

Data provider plugin for loading data stored in a Redis in-memory database.

DEPRECATION Information

Please note that this project has been archived and is no longer being maintained. There is an active development under https://github.com/datavisyn/tdp_core and we will also contribute our future changes to it.

Installation

git clone https://github.com/phovea/phovea_data_redis.git
cd phovea_data_redis
npm install

Testing

npm test

Building

npm run build

Usage

The plugin is currently used to load ID mapping files.

Flush Mapping Database

redis-cli

select 3
flushall

Administrating Redis from your host machine

Follow this steps if you want to administrate the Redis instance that is installed inside the virtual machine (using Vagrant)

  1. Download any Redis administration tool (e.g., Redis Desktop Manager)
  2. Start docker-compose in debug mode: docker-compose-debug up -d
  3. Access via localhost

Backing up a Redis DB: -> https://www.npmjs.com/package/redis-dump

Restoring in a named volume:

  1. launch container
docker run -it -v workspacename_db_redis_data:/data -v F:\w\workspace_name\_backup\:/backup --name test redis:3.2-alpine sh ; docker rm test
  1. within shell
redis-server --appendonly yes &
cd /backup
cat redis_db_dump_id.txt | redis-cli -n 3
cat redis_db_dump_mapping.txt | redis-cli -n 4 
exit
  1. use backup tool to backup
./docker-backup backup db_redis_data

This repository is part of Phovea, a platform for developing web-based visualization applications. For tutorials, API docs, and more information about the build and deployment process, see the documentation page.