Skip to content

Instantly share code, notes, and snippets.

View aniketsupertramp's full-sized avatar
💻

Aniket Pandey aniketsupertramp

💻
View GitHub Profile
@aniketsupertramp
aniketsupertramp / python_redis_migration_pool.py
Created April 8, 2019 17:56
Script for migrating redis keys from one shard to another
import redis
from itertools import izip_longest
import sys
from multiprocessing import Pool
import signal
OLD = "SHARD_ENDPOINT_FOR_OLD_REDIS"
NEW = "SHARD_ENDPOINT_FOR_NEW_REDIS"