Git Product home page Git Product logo

eru-lb's Introduction

Eru load balance

Install

  1. Openresty
  2. ngx_http_dyups_module

Performance

ab test eru-agent debug pprof API

10K requests and 100 concurrency

Direct: 11904.49 requests / sec (by 24 core) Proxy: 8100 requests / sec (by 8 core config)

Feature

  1. Dynamically add/remove/update backend (by ngx_http_dyups_module, part of tengine).
  2. Use redis to store route table.
  3. Calcuate upstream status (total response, avg response time, response code count).

Configuration

  1. Modify config.lua to set redis host and port.
  2. Install openresty with ngx_http_dyups_module.
  3. Copy and modify conf/dev.conf as you wish.
  4. Start and enjoy.

We will offer dockerfile ASAP.

API

  • Show backends detail.
http :8080/upstreams
  • Show upstream response detail by domain.
http :8080/backend/status?host=domain
  • Show domain list.
http :8080/domain

  • Add analysis hosts.
http PUT :8080/analysis hosts:='["domain1", "domain2"]'
  • Delete analysis host
http DELETE :8080/analysis host=domain
  • Get analysis hosts
http :8080/analysis

eru-lb's People

Contributors

cmgs avatar tonicmuroq avatar

Watchers

 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.