Giter Site home page Giter Site logo

proxyd's Introduction

proxyd

一个透明的 tcp 反向代理,用于 LAIN service

示例

性能测试

条件 \ 指标 TCP_RR TCP_STREAM TCP_MAERTS TCP_SENDFILE
没有 proxy 15109 trans/s 13919 Mbits/s 13526 Mbits/s 13098 Mbits/s
nginx 7059 trans/s 10585 Mbits/s 8897 Mbits/s 8311 Mbits/s
proxyd 8541 trans/s 11393 Mbits/s 10568 Mbits/s 12953 Mbits/s
  • TCP_RR 指 TCP Request/Response 测试:
    • trans/s 指 transaction/s,即每秒完成的交易数,即 qps
  • TCP_STREAM 指由客户端向服务器发送数据的吞吐量测试
  • TCP_MAERTS 指由服务器向客户端发送数据的吞吐量测试(MAERTS 是 STREAM 的逆序)
  • TCP_SENDFILE 与 TCP_STREAM 类似,不过调用系统的 sendfile() 传输数据 而非 TCP_STREAM 使用的 send()
  • 详见 benchmark/README.md

设计

  • proxyd 从 lainlet 获取 upstream 信息
  • 目前采用 round-robin 方法,将客户端请求轮流连接到不同的 upstream

构建镜像

docker-compose build proxyd

proxyd's People

Contributors

bibaijin avatar

Watchers

 avatar  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.