首页 > 业内资讯 > Seesaw:Google 开源的负载均衡系统

Seesaw:Google 开源的负载均衡系统

时间:2016-02-02 | 来源:developerWorks | 阅读:54

话题: developerWorks


An example seesaw.cfg file can be found in etc/seesaw/seesaw.cfg.example - a minimal seesaw.cfg provides the following:

  • anycast_enabled - True if anycast should be enabled for this cluster.

  • name - The short name of this cluster.

  • node_ipv4 - The IPv4 address of this Seesaw node.

  • peer_ipv4 - The IPv4 address of our peer Seesaw node.

  • vip_ipv4 - The IPv4 address for this cluster VIP.


The VIP floats between the Seesaw nodes and is only active on the current master. This address needs to be allocated within the same netblock as both the node IP address and peer IP address.


An example cluster.pb file can be found in etc/seesaw/cluster.pb.example - a minimal cluster.pb contains a seesaw_vipentry and two node entries. For each service that you want to load balance, a separate vserver entry is needed, with one or more vserver_entry sections (one per port/proto pair), one or more backends and one or more healthchecks. Further information is available in the protobuf definition - see pb/config/config.proto.


On an upstart based system, running restart seesaw_watchdog will start (or restart) the watchdog process, which will in turn start the other components.


Anycast

Seesaw v2 provides full support for anycast VIPs - that is, it will advertise an anycast VIP when it becomes available and will withdraw the anycast VIP if it becomes unavailable. For this to work the Quagga BGP daemon needs to be installed and configured, with the BGP peers accepting host-specific routes that are advertised from the Seesaw nodes within the anycast range (currently hardcoded as 192.168.255.0/24).

推荐

最新好玩手游

更多

手游风云榜

更多

资讯阅读

更多


湘ICP备2022002427号-10 湘公网安备:43070202000427号
© 2013~2024 haote.com 好特网