Skip to content

Commit

Permalink
add clarification about redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Nov 2, 2019
1 parent 22348a7 commit 5e126e6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# RLB - Redirecting Load Balancer
[![Build Status](https://github.com/umputun/rlb/workflows/build/badge.svg)](https://github.com/umputun/rlb/actions) [![Coverage Status](https://coveralls.io/repos/github/umputun/rlb/badge.svg)](https://coveralls.io/github/umputun/rlb) [![Go Report Card](https://goreportcard.com/badge/github.com/umputun/rlb)](https://goreportcard.com/report/github.com/umputun/rlb) [![Docker Automated build](https://img.shields.io/docker/automated/jrottenberg/ffmpeg.svg)](https://hub.docker.com/r/umputun/rlb/)

This service redirects incoming `GET` and `HEAD` requests to the upstream servers.
This service redirects incoming `GET` and `HEAD` requests (with 302) to the upstream servers.
Servers picked up randomly, unhealthy boxes excluded dynamically.

_Note: This is not a replacement for reverse proxy. All it does is HTTP redirect, not real network proxying._

## Install

1. Copy provided `docker-compose.yml`
Expand Down Expand Up @@ -66,11 +68,12 @@ RLB does not implement any statistics internally but supports external service f

```go
type LogRecord struct {
ID string `json:"id,omitempty"`
FromIP string `json:"from_ip"`
TS time.Time `json:"ts,omitempty"`
Fname string `json:"fname"`
DestHost string `json:"dest"`
ID string `json:"id,omitempty"` // uniuque id
FromIP string `json:"from_ip"` // source ip
TS time.Time `json:"ts,omitempty"` // timestamp
Fname string `json:"file_name"` // requested file name
Servcie string `json:"service"` // requested service
DestHost string `json:"dest"` // picked destination node
}
```

Expand Down

0 comments on commit 5e126e6

Please sign in to comment.