Redis Cluster support extension for aioredis
Project description
aioredis_cluster
Redis Cluster support for aioredis.
Many implementation features were inspired by go-redis project.
Requirements
- Python 3.6.5+
- aioredis 1.1+
- attrs 18.2+
- async_timeout
License
The aioredis_cluster is offered under MIT license.
Changes
1.5.1 (2020-12-11)
- speedup crc16. Use implementation from python stdlib
1.5.0 (2020-12-10)
- remove
state_reload_frequencyfromClusterManager.state_reload_intervalnow is one relevant option for state auto reload - default
state_reload_intervalincreased and now is 300 seconds (5 minutes) - commands registry loads only once, on cluster state initialize
- improve failover. First connection problem cause retry to random slot replica
- improve python3.9 support
- default
idle_connection_timeoutnow is 10 minutes
1.4.0 (2020-09-08)
- fix
aioredis.locks.Lockissue (https://github.com/aio-libs/aioredis/pull/802, bpo32734) - now
aioredis_cluster.Clusterdo not acquire dedicate connection for every execute aioredis_clusternow requirespython>=3.6.5
1.3.0 (2019-10-23)
- improve compatible with Python 3.8
- improve failover logic while command timed out
- read-only commands now retries if attempt_timeout is reached
- add required dependeny
async_timeout aioredisdependency bound now isaioredis >=1.1.0, <2.0.0
1.2.0 (2019-09-10)
- add timeout for command execution (per execution try)
- add Cluster option
attempt_timeoutfor configure command execution timeout, default timeout is 5 seconds - Cluster.execute_pubsub() fixes
1.1.1 (2019-06-07)
- CHANGES fix
1.1.0 (2019-06-06)
- Cluster state auto reload
- new
state_reload_frequencyoption to configure state reload frequency - new
state_reload_intervaloption to configure state auto reload interval follow_clusteroption enable load cluster state from previous cluster state nodes- establish connection only for master nodes after cluster state load
- change default commands_factory to aioredis_cluster.RedisCluster instead aioredis.Redis
- all cluster info commands always returns structs with str, not bytes
keys_masterandall_mastersmethods now try to ensure cluster state instead simply raise exception if connection lost to cluster node, for examplemax_attemptsalways defaults fix
1.0.0 (2019-05-29)
- Library full rewrite
- Cluster state auto reload
- Command failover if cluster node is down or key slot resharded
0.2.0 (2018-12-27)
- Pipeline and MULTI/EXEC cluster implementation with keys distribution limitation (because cluster)
0.1.1 (2018-12-26)
- Python 3.6+ only
0.1.0 (2018-12-24)
- Initial release based on aioredis PR (https://github.com/aio-libs/aioredis/pull/119)
Contributors
- Anton Ilyushenkov
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aioredis_cluster-1.5.1.tar.gz
(38.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aioredis_cluster-1.5.1.tar.gz.
File metadata
- Download URL: aioredis_cluster-1.5.1.tar.gz
- Upload date:
- Size: 38.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d215c7f50f9aba3b9b2b9bbe7c4b590cc1675d3fcdec1faaca9f2d1e9d07b68
|
|
| MD5 |
43c6e36a54c138de3668bc6bb1e8da7a
|
|
| BLAKE2b-256 |
b060540baf289d3949016f84feb4703d7f32bb275246ca988bdf6345490b6ab2
|
File details
Details for the file aioredis_cluster-1.5.1-py3-none-any.whl.
File metadata
- Download URL: aioredis_cluster-1.5.1-py3-none-any.whl
- Upload date:
- Size: 28.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01f1224357ce84d563f9dfe6cad3eb66b34622730fd6d344e6b7f244b757208a
|
|
| MD5 |
e3ff33f9ca263940257864e0ce63b143
|
|
| BLAKE2b-256 |
7b4ad09945befdbd64cd04471f54dd04cc3b02478ee92b70f793616355a0e46e
|