https://github.com/ziozzang/simple-haproxy-l4
Simple Haproxy container for TCP Load balancer (L4). to make LB-as-a-Service
https://github.com/ziozzang/simple-haproxy-l4
Last synced: 3 months ago
JSON representation
Simple Haproxy container for TCP Load balancer (L4). to make LB-as-a-Service
- Host: GitHub
- URL: https://github.com/ziozzang/simple-haproxy-l4
- Owner: ziozzang
- License: bsd-3-clause
- Created: 2022-11-04T09:25:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-04T09:39:07.000Z (over 3 years ago)
- Last Synced: 2025-06-19T15:49:43.511Z (about 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-haproxy-l4
Simple Haproxy container for TCP Load balancer (L4).
# Why make this?
to make LB-as-a-Service. (w/ Kubernetes??)
# Author
- Jioh L. Jung
# How to Use
- build container. and set environments for injection.
# Environments values
| Environ Value | Comment | Default Value |
| --- | --- | --- |
| MAXCONN | maximum connection | 50000 |
| SERVER_PORT | port to listen | 8888 |
| STATUS_PORT | status port (at /) | 8080 |
| CLIENT_TIMEOUT | timeout for client | 60s |
| SERVER_TIMEOUT | timeout for server(backend) | 30s |
| SERVER_OPT | Backend host connection option | inter 3s fastinter 1s rise 3 fail 2 |
| CONN_TRY_TIMNE_OUT | | 8s |
| LB_POLICY | load balancer type | source |
| TARGET_SERVER | target backend server | N/A |
- SERVER_OPT
- inter: checking interval
- fastinter: if failed status, checking interval
- rise: after n times checking passed, add to service up
- fail: after n times checking failed, remove from service
- TARGET_SERVER
- target backend servers list. splited by ','
- ex: google.com:443,naver.com:443