Skip to content

Instantly share code, notes, and snippets.

@AlexMikhalev
Created May 10, 2021 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexMikhalev/eb86d14342c5337a1b37f37781bd07b7 to your computer and use it in GitHub Desktop.
Save AlexMikhalev/eb86d14342c5337a1b37f37781bd07b7 to your computer and use it in GitHub Desktop.
RedisPyIssue
python3
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from rediscluster import RedisCluster
>>> import logging
>>> import logging
>>>
>>> from rediscluster import RedisCluster
>>>
>>> logging.basicConfig()
>>> logger = logging.getLogger('rediscluster')
>>> logger.setLevel(logging.DEBUG)
>>> logger.propagate = True
>>> startup_nodes = [{"host": "10.144.17.211", "port": "30004"}]
>>> rc = RedisCluster(startup_nodes=startup_nodes, decode_responses=True)
INFO:rediscluster.client:Created new instance of RedisCluster client instance
DEBUG:rediscluster.client:startup_nodes : [
{
"host": "10.144.17.211",
"port": "30004"
}
]
INFO:rediscluster.client:Using ClusterConnectionPool
DEBUG:rediscluster.client:Connection pool class <class 'rediscluster.connection.ClusterConnectionPool'>
DEBUG:rediscluster.connection:Creating new ClusterConnectionPool instance
DEBUG:rediscluster.connection:Resetting ConnectionPool
DEBUG:rediscluster.nodemanager:Creating new NodeManager instance
DEBUG:rediscluster.nodemanager:Running initialize on NodeManager
DEBUG:rediscluster.nodemanager:Original startup nodes configuration
DEBUG:rediscluster.nodemanager:[
{
"host": "10.144.17.211",
"port": "30004"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment