
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
bbredis-recovery
Advanced tools
This sub-repo contains tools for recovering the state of the destination sender redis servers from data stored in the kafka clearing topics
This sub-repo contains tools for recovering the state of the destination sender redis servers from data stored in the kafka clearing topics
This application requires node.js version 11 or 12, plus the Yarn package manager.
# clone the repo
git clone git@github.com:bitbrew/hub-tools
# install packages
cd hub-tools/redis-recovery
yarn
Or install with npm or yarn
# Using npm
npm i -g bbredis-recovery
# Using yarn
yarn global add bbredis-recovery
# Working within the repository
./index.js
# Working with the globally installed tool
redis-recovery
All examples will use 'redis-recovery' rather than the local js file.
redis-recovery --help
redis-recovery kafka-config 127.0.0.1 9092 test-topic 50
redis-recovery redis-config 127.0.0.1 6379 Keen
redis-recovery config
redis-recovery kafka-export
This may take a number of seconds or minutes to complete. When completed the output to the console will look similar to:
Using the following config:
Kafka topic: test-topic
Kafka partitons: 50
Kafka host: 127.0.0.1
Kafka port: 9092
Kafka log level: 2
Redis host: 127.0.0.1
Redis port: 6379
Redis destination: Keen
ā Initializing Kafka consumer
ā Getting retry batches not followed by closed batches
ā Processed 100106 records
ā Retrieving count of queued detinations
ā Processed 100106 records
ā Writing results to output-kafka.json
redis-recovery redis-export
This should take only a few seconds, following which the console output will be similar to:
Using the following config:
Kafka topic: test-topic
Kafka partitons: 50
Kafka host: 127.0.0.1
Kafka port: 9092
Kafka log level: 2
Redis host: 127.0.0.1
Redis port: 6379
Redis destination: Keen
ā Retrieving retry batches
ā Writing results to output-redis-retry.json
ā Retriving clearing state
ā Writing results to output-redis-clearing.json
redis-recovery redis-import
This will only take a few seconds to complete. The output will give a list of the destination- partition's that were updated in Redis:
Using the following config:
Kafka topic: test-topic
Kafka partitons: 50
Kafka host: 127.0.0.1
Kafka port: 9092
Kafka log level: 2
Redis host: 127.0.0.1
Redis port: 6379
Redis destination: Keen
ā Loading update file output-kafka.json
ā Updating destination-partition 3d9eb6eb-3698-4f00-bfc7-a03d49b1efb7:49
ā Updating destination-partition f07f8701-3ca5-4d4d-b896-3bccfea68d25:49
FAQs
This sub-repo contains tools for recovering the state of the destination sender redis servers from data stored in the kafka clearing topics
The npm package bbredis-recovery receives a total of 34 weekly downloads. As such, bbredis-recovery popularity was classified as not popular.
We found that bbredis-recovery demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Ā It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.