GithubHelp home page GithubHelp logo

isabella232 / fast_failover_client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redislabs-solution-architects/fast_failover_client

0.0 0.0 0.0 11 KB

Redis failover test client

Python 100.00%

fast_failover_client's Introduction

Redis failover test client

Connect to a redis server, PING it repeatedly, and reconnect upon each disconnect.

./fast_failover_client.py --help

usage: fast_failover_client.py [-h] [--host HOST] [--port PORT]
                               [--connect-timeout CONNECT_TIMEOUT]
                               [--connect-retry-interval CONNECT_RETRY_INTERVAL]
                               [--heartbeat-socket-timeout HEARTBEAT_SOCKET_TIMEOUT]
                               [--heartbeat-interval HEARTBEAT_INTERVAL]
                               [--heartbeat-key HEARTBEAT_KEY]
                               [--password PASSWORD]
                               [--tls TLS]]

optional arguments:
  -h, --help            show this help message and exit
  --host HOST           Server address (default: localhost)
  --port PORT           Server port (default: 6379)
  --connect-timeout CONNECT_TIMEOUT
                        Timeout (secs) for individual connect attempts
                        (default: 0.5)
  --connect-retry-interval CONNECT_RETRY_INTERVAL
                        Connect (secs) retry interval time (default: 0.1)
  --heartbeat-socket-timeout HEARTBEAT_SOCKET_TIMEOUT
                        PING heartbeat socket timeout (secs) (default: 0.3)
  --heartbeat-interval HEARTBEAT_INTERVAL
                        PING heartbeat interval time (secs) (default: 0.1)
  --heartbeat-key HEARTBEAT_KEY
                        Redis key name to use for heartbeat (default: None)
  --password PASSWORD   Password (default: None)
  --tls <boolean>       Use non-mutual TLS (default: False)

Use in Kubernetes

To run this in Kubernetes as a batch job:

  1. Modify ffc.yaml appropriately for your envionment (hostname, password, etc)
  2. Run kubectl apply -f ffc.yaml or equivalent oc command
  3. Delete the job after a successful test: kubectl delete job.batch/fast-failover-client

What's New

  • python3 support
  • AUTH password support
  • ipv6 localhost resolution
  • Support for non-mutual TLS (w/SNI)
  • k8s support

fast_failover_client's People

Contributors

bjbredis avatar kerneljake avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.