golang-lvs

Go interface for managing the linux virtual server

  • 所有者: nanobox-io/golang-lvs
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Golang LVS Build Status Image

A small wrapper around ipvsadm to support go interacting with the Linux Virtual Server.

Data Types:

Ipvs

Data:

  • MulticastInterface: String with the name of the interface broadcast the multicast state information on.
  • Syncid: Id to use when broadcasting state.
  • Tcp: Timeout for TCP connections.
  • Tcpfin: Timeout for TCP-FIN packets.
  • Udp: Timeout for UDP connections.
  • Services: Slice of Services.

Methods:

  • FindService
  • AddService
  • EditService
  • RemoveService
  • SetTimeouts
  • Restore
  • Save
  • StartDaemon
  • StopDaemon
  • Zero

Service

Data:

  • Host: IP associated to the service.
  • Port: Port that the service listens to.
  • Type: Type of service (tcp, udp, fwmark).
  • Scheduler: Method of assigning connections to downstream servers (rr, wrr, lc, wlc, lblc, lblcr, dh, sh, sed, nq).
  • Persistence: Persistent connection timeout.
  • Netmask: Netmask to use to group connections together.
  • Servers: Slice of Servers.

Methods:

  • FindServer
  • AddServer
  • EditServer
  • RemoveServer
  • Zero
  • ToJson
  • FromJson
  • String

Server

Data:

  • Host: IP associated with the server.
  • Port: Port the downstream server is listening on.
  • Forwarder: Method to forward to the downstream server (g=gatewaying, i=ipip, m=masquerading).
  • Weight: Relative weight of this server to the others. 0 means no new connections.
  • UpperThreshold: Stop sending connections when this limit is reached. 0 means no limit.
  • LowerThreshold: Restart sending connections when connections drop to this number. 0 means not set.

Methods:

  • ToJson
  • FromJson
  • String

主要指標

概覽
名稱與所有者nanobox-io/golang-lvs
主編程語言Go
編程語言Go (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2015-09-02 22:46:30
推送於2019-03-11 16:09:57
最后一次提交2019-03-11 10:09:56
發布數0
用户参与
星數63
關注者數9
派生數14
提交數28
已啟用問題?
問題數4
打開的問題數3
拉請求數4
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?