Git Product home page Git Product logo

redispapa's Introduction

RedisPAPA

we use redis info to monitor the redis usage. PAPA means a father who is monitoring the redis.

accoding to the redis doc, it is be recommanded to use info other than monitor.

================

中文文档

Let's start

  • cd backend && pip3 install -r requirements.txt
  • check out the file config.py and make your own configure accoding to your redis servers.
  • the REDIS_SERVER should be formated like this ['ip:port:password', 'ip:port', .....]
  • type this command python3 run.py, then you can watch it in http://127.0.0.1:5000
  • we recommand use this command to deploy: gunicorn --worker-class socketio.sgunicorn.GeventSocketIOWorker run:app -b 0.0.0.0:5000
  • cd frontend && yarn install
  • yarn dev

The tech we use

Project Details

  • we do not use any database to store the redis information, we store the data in the memory.
  • we use flask to start serveral threads which is equal to your redis server amount,and then send infomation to the front-end at regular time by socket.io.
  • we use vite and react to render the front-end。React will get the data from socket.io and then render the templates with ant design charts.
  • when you change the redis server ip in the front-end select element, you will get a new redis data immediately.

Project Screen

1 2 3 4 5

Version 0.4

  • update the flask version to 2.x, socket-io version to 4.x, Python version to 3.x
  • use Vite and react to build the frontend.

Version 0.3

  • docker support: you can pull the docker image of redispapa from docker hub

    docker pull sinchb/redispapa
    

    to start a redispapa instance with default settings:

    docker run -p 5000:5000 sinchb/redispapa
    

    If you want to use your own config.py:

    docker run -p 5000:5000 -v /path/to/config.py:/root/redispapa/config.py sinchb/redispapa
    

    If you want to build your own docker image, please clone this repo, and run:

    cd /path/to/your/redispapa/
    docker build -t=your-redispapa-tag .
    

Version 0.2

  • new feature: exectute redis commands in the website.
  • In the website, you can type set in command input box, and type a, papapa in args input box or you can type get in command input box, and type a in `args input box. Then you can get the result from the redis server.

Version 0.1

supply kinds of information of redis server

The links

redispapa's People

Contributors

calmkart avatar dependabot[bot] avatar no13bus avatar sinchb avatar timgates42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redispapa's Issues

KeyError

Got an KeyError
Ubuntu 14.04

linuxdev3@linuxdev3:~/open/redispapa$ fg
python run.py

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/socketio/virtsocket.py", line 403, in _receiver_loop
    retval = pkt_ns.process_packet(pkt)
  File "/usr/local/lib/python2.7/dist-packages/socketio/namespace.py", line 155, in process_packet
    return self.process_event(packet)
  File "/usr/local/lib/python2.7/dist-packages/flask_socketio/__init__.py", line 60, in process_event
    return self.socketio._dispatch_message(app, self, message, args)
  File "/usr/local/lib/python2.7/dist-packages/flask_socketio/__init__.py", line 135, in _dispatch_message
    ret = self.messages[namespace.ns_name][message](*args)
  File "run.py", line 165, in client_command
    args = message['args']
KeyError: 'args'
<Greenlet at 0x7f13fe143b90: <bound method Socket._receiver_loop of <socketio.virtsocket.Socket object at 0x7f13fded34d0>>> failed with KeyError

nginx support?

when I set proxy_pass and server_name, static files in nginx, there are some errors in the console. It should be modified.

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.