# Gobetween

# What is Gobetween?

Gobetween은 Go로 개발된 Load Balancer 입니다.

Gobetween Logo
Gobetween Logo

# Prerequisites

# How-to


# Install

version: '3.3'
services:
  gobetween:
    image: yyyar/gobetween
    container_name: gobetween
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./gobetween_data/config.toml:/etc/gobetween/conf/gobetween.toml

하단의 예제는 80, 443 포트에 대해 Load Balancer 설정된 파일입니다.

[servers.https]
bind = ":443"
protocol = "tcp"
balance = "weight"

max_connections = 1000
client_idle_timeout = "10m"
backend_idle_timeout = "10m"
backend_connection_timeout = "2s"

[servers.https.discovery]
kind = "static"
static_list = [
    "192.168.0.130:443 weight=1"
    "192.168.0.131:443 weight=1"
]

[servers.http]
bind = ":80"
protocol = "tcp"
balance = "weight"

max_connections = 1000
client_idle_timeout = "10m"
backend_idle_timeout = "10m"
backend_connection_timeout = "2s"

[servers.http.discovery]
kind = "static"
static_list = [
    "192.168.0.130:80 weight=1"
    "192.168.0.131:80 weight=1"
]

That's it! 🎉


# memo