summaryrefslogtreecommitdiff
path: root/redis/sentinel.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix Sentinel.execute_command to execute across the entire sentinel cluster ↵SyedTahaA2022-11-211-2/+2
| | | | | | | (#2459) * Change sentinel execute command to execute across the entire cluster * Add change to CHANGES file
* update black to 22.3.0 (#2171)Utkarsh Gupta2022-05-301-7/+2
|
* Add retries to connections in Sentinel Pools (#1879)Jonathan Dieter2022-01-171-1/+7
|
* Documentation cleanup (#1841)Chayim2021-12-301-1/+1
|
* Added black and isort (#1734)Anas2021-11-301-56/+80
|
* Pyupgrade + flynt + f-strings (#1759)Aarni Koskela2021-11-301-17/+11
| | | @akx Thank you so much for this! Thanks again for introducing me to a new tool that I'm sliding into my workflow as well.
* Adding support for non-decodable commands (#1731)Chayim2021-11-251-2/+2
|
* Export Sentinel, and SSL like other classes (#1671)Terence Honles2021-11-081-1/+3
|
* sentinel: Add SentinelManagedSSLConnection (#1419)AbdealiJK2021-10-251-1/+5
| | | | | | | Create a simple class which takes in both: - SentinelManaged - SSLConnection in cases where the sentinel is being used with a TLS enabled redis setup.
* Merged new sentinel commands from #834 (#1550)Chayim2021-08-291-2/+19
| | | | | | | | | * Merged new sentinel commands from #835 Thanks you @otherpirate for the contribution! * Added an execute wrapper and tests. The tests ensure that the function is called. Nothing more since we do not currently have enough testing support for sentinel
* Migrating commands to a mixin (#1534)Chayim2021-08-181-1/+2
| | | | | | | * Moving redis commands to a mixin This patterns allows for the reuse of these commands across connection types, including modules that are based on this client * splitting sentinel specific commands into the respective mixin
* Fix some typos. (#1496)Binbin2021-08-081-2/+2
|
* Remove support for end-of-life Python 2.7 (#1318)Jon Dufresne2020-08-061-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove support for end-of-life Python 2.7 Python 2.7 is end of life. It is no longer receiving bug fixes, including for security issues. Python 2.7 went EOL on 2020-01-01. For additional details on support Python versions, see: Supported: https://devguide.python.org/#status-of-python-branches EOL: https://devguide.python.org/devcycle/#end-of-life-branches Removing support for EOL Pythons will reduce testing and maintenance resources while allowing the library to move towards a modern Python 3 style. Python 2.7 users can continue to use the previous version of redis-py. Was able to simplify the code: - Removed redis._compat module - Removed __future__ imports - Removed object from class definition (all classes are new style) - Removed long (Python 3 unified numeric types) - Removed deprecated __nonzero__ method - Use simpler Python 3 super() syntax - Use unified OSError exception - Use yield from syntax Co-authored-by: Andy McCurdy <andy@andymccurdy.com>
* Fix some documentation formattingJon Banafato2020-07-261-10/+12
| | | | | Fix a few broken links and class references, move a docstring, and fix a code block.
* SentinelConnectionPool plays better with threaded applications.Andy McCurdy2020-06-011-5/+11
| | | | | | | | | Prevent the pool from closing sockets on connections that are actively in use by other threads when the master address changes. Connections returned to the pool that are still connected to the old master will be disconnected gracefully. Fixes #1345
* [sentinel] update master address if it changes. (#847)Jake2020-05-201-0/+1
| | | Update the cached master_address if the Sentinels promote a new master.
* Prefer Python 3 syntax in examples (#1325)Jon Dufresne2020-04-131-1/+1
| | | | As Python 3 is the future of the language, when the docs need to make a syntax choice, use the Python 3 version.
* remove unneccessary checkpid from SentinelConnectionPoolsentinel_pool_fixAndy McCurdy2019-03-141-12/+0
|
* remove legacy Redis classAndy McCurdy2018-11-131-6/+6
| | | | | | | | | | | | | | | | | | | redis-py maintained backwards compatibility by keeping the old "Redis" class around for quite some time. While no doubt a convenience for folks who relied on it, the presence of both Redis and StrictRedis causes a number of support issues and general confusion. With 3.0, we're breaking a few things to make redis-py better going forward. This change removes the old Redis class. We also renamed the StrictRedis class to Redis and aliased StrictRedis to Redis. For people that have been using StrictRedis, this should not change anything. You can continue doing things as you are. People still using the legacy Redis class will need to update the argument order for the SETEX, LREM and ZADD commands. Additionally, the return values for TTL and PTTL now return the integer values -1 when a key exists but has no expire time and -2 when a key does not exist. Previously these cases returned a None value in the Redis class.
* Prefer dict comprehension over dict(<generator>)Jon Dufresne2018-11-031-4/+5
|
* Pass generators to dict() instead of coercing to a listJon Dufresne2018-11-031-2/+2
|
* FIX #651 try next Sentinel node on TimeoutErrorBo Lopker2015-11-271-3/+4
|
* should also reinitialize with check_connectionAndy McCurdy2014-09-181-0/+1
|
* Passing is_master flag through on resetJonathan Frawley2014-09-181-0/+1
| | | | | | | - is_master is not passed through when recreating the ConnectionPool. - This was causing unexpected behaviour where we would specifiy that we wish to connect to the slave, but the master would be read from instead.
* need to detect READONLY errors in read_response, now send_command. real fixAndy McCurdy2014-06-021-2/+2
| | | | for #435
* only pass explicitly defined or socket_* options to sentinel connections.Andy McCurdy2014-05-261-14/+43
| | | | fixed #483
* fixed __repr__ for clients created from sentinel. fixes #439Andy McCurdy2014-05-061-0/+26
|
* SentinelManagedConnections to master servers disconnect on READONLY errors.Andy McCurdy2014-05-061-7/+21
| | | | | Any attempt to reconnect will force all connections in that pool to update their connections to the new master. Fixes #435
* self reference in SentinelConnectionPool changed to weak reference Paulo Villegas2013-12-011-1/+2
| | | circular reference changed to weak reference to enable garbage collection
* Override _checkpid() in SentinelConnectionPoolRoman Haritonov2013-10-301-0/+9
|
* comments and changelogAndy McCurdy2013-09-131-28/+36
|
* PEP8 fixVitja Makarov2013-09-041-6/+6
|
* SentinelConnectionPool: add check_connection flagVitja Makarov2013-09-041-5/+19
|
* Allow to specify user's own connection pool classVitja Makarov2013-09-041-10/+14
|
* Rework slave selection logicVitja Makarov2013-09-041-45/+52
|
* Add docstrings for Sentinel classVitja Makarov2013-09-041-1/+63
|
* Add redis.sentinel moduleVitja Makarov2013-09-041-0/+120