GithubHelp home page GithubHelp logo

skyformat99 / gotcpproxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zheng-ji/gotcpproxy

0.0 3.0 0.0 818 KB

一个支持负载均衡,健康检查的 TcpProxy

License: MIT License

Makefile 0.93% Go 99.07%

gotcpproxy's Introduction

goTcpProxy

Go Report Card

一个支持负载均衡,健康检查的 TcpProxy

smailltcp

Description

English

  • A tcp proxy service
  • Supprot multi backend severs
  • Consistent Hash Load Balance
  • Auto detect down server, and remove it.
  • Monitor backend health status

中文

  • TCP 代理服务
  • 后端支持多个服务器
  • 支持一致性哈希的负载均衡
  • 自动检测失败的后端服务器,并移除
  • 后端服务的健康检查接口

How To Compile

cd $GOPATH;
git clone http://github.com/zheng-ji/goTcpProxy;
make

How To Use

配置文件详解

bind: 0.0.0.0:9999      // 代理服务监听端口
wait_queue_len: 100     // 等待队列长度
max_conn: 10000         // 并发最大连接
timeout: 5              // 请求超时时间
failover: 3             // 后端服务允许失败次数 
stats: 0.0.0.0:19999    // 健康检查接口
backend:                // 后端服务列表
    - 127.0.0.1:80
    - 127.0.0.1:81
log:
    level: "info"
    path: "/Users/zj/proxy.log"
// 运行服务
./goTcpProxy -c=etc/conf.yaml

gotcp

License

Copyright (c) 2015 released under a MIT style license.

gotcpproxy's People

Contributors

zheng-ji avatar

Watchers

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