Skip to main content

a redis proxy that will seperate read and write

Project description

redis_proxy

A redis proxy that supprot read/write splitting. It works like haproxy, but only used with redis.For now it’s a very rough project.

The source is at redis proxy.

Usage

install:

pip install redis_proxy

then run:

redis-proxy -c config.json

Config Example

For example:

[
 {"listen": 6378,
  "master":{"host": "host01", "port": 6378},
  "slave": [{"host": "host02", "port": 6380}]
 },
 {"listen": 6377,
  "master":{"host": "host01", "port": 6379},
  "slave": [{"host": "host02", "port": 6380}, {"host": "host03", "port": 6380}]
 }
]

The proxy will listen on port 6377 and 6378, and forward read to the slave, write to the master.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redis_proxy-0.0.2.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file redis_proxy-0.0.2.tar.gz.

File metadata

  • Download URL: redis_proxy-0.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for redis_proxy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 dcfe291badbbfe885a50f489e7bc3b519165cd584150205d7a514c265ab4c657
MD5 59c4aa816c3e95009263378c38717208
BLAKE2b-256 94d50f6a3737be24b69b7425bb1cbdd6ed73eb1e297e1bf24eab2cb1bc57ace6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page