Felhasználói eszközök

Eszközök a webhelyen


tanszek:oktatas:iss_t:docker2

Ez a dokumentum egy előző változata!


Scale services with load balancing

https://github.com/knehez/isi - folder example2

HAProxy is an open-source software that provides High Availability services, load balancing, and proxying for TCP and HTTP-based applications. It is used to distribute incoming network traffic across multiple servers to improve performance, scalability, and reliability of applications. HAProxy acts as a reverse proxy, meaning that it receives requests from clients and forwards them to the appropriate server based on various criteria such as load balancing algorithms, server health checks, and session persistence.

docker-compose.yml

version: "3.3"
services:
  web:
    build: .
    ports:
      - "5000"
  redis:
    image: "redis:alpine"
  haproxy:
    image: "haproxytech/haproxy-alpine:2.4"
    volumes:
        - ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
    depends_on:
        - web
    ports:
      - "80:80"
tanszek/oktatas/iss_t/docker2.1681670612.txt.gz · Utolsó módosítás: 2023/04/16 18:43 szerkesztette: knehez