Skip to content

Instantly share code, notes, and snippets.

View dragnot's full-sized avatar

Guy Lubovitch dragnot

  • RedisLabs
  • Israel
View GitHub Profile
import argparse
import time
import numpy as np
from datetime import datetime
from redis.sentinel import (Sentinel, MasterNotFoundError)
from redis import exceptions
# this client is based on Yossi failover_client
class TestClientSentinel(object):
def __init__(self, args):

Keybase proof

I hereby claim:

  • I am dragnot on github.
  • I am dragnot (https://keybase.io/dragnot) on keybase.
  • I have a public key ASBCh1RdvCv9fUpp7xTI29_vu0J0EDKrWC0crN7Ts40vsgo

To claim this, I am signing this object:

@dragnot
dragnot / example.py
Created April 3, 2017 13:27
Just a sample gisl
import random
__author__ = 'dragnot'
# file two.py
import redis
import threading
#
# this benchmark is all about getting items from the db and displaying counting each viewed item.
# it should initialize the redis with X amount of items and start loading items randomly. when item is selected, the code should fetch that item and add to the counter
package com.emc.benchmark.ycsb;
import com.yahoo.ycsb.ByteIterator;
import com.yahoo.ycsb.DB;
import com.yahoo.ycsb.DBException;
import org.msgpack.MessagePack;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.Protocol;