Giter Site home page Giter Site logo

Comments (4)

yosifkit avatar yosifkit commented on May 30, 2024 1

The haproxy image does support the "graceful restarts" (since #17), which is now documented in docker-library/docs#534. But as far as the transparent proxying, it seems that requires --net=host and additional security privileges so I think we would be unlikely to add it to this image. @tombull's image seems like a great place to start though (:+1: that it is FROM haproxy).

from haproxy.

tombull avatar tombull commented on May 30, 2024

Transparent proxying is possible in a docker container, but there are various security implications. I've built a docker container for HAProxy that supports transparent proxying that you might want to check out: docker hub and github
Note: it also does zero-downtime reloads... πŸ˜„

from haproxy.

tombull avatar tombull commented on May 30, 2024

Yeah, forgot to mention that it's based on this wonderful haproxy container πŸ˜„
The 'graceful' reloads thing that haproxy does can drop a few packets in the time between when one process drops the socket and the next takes it up. It's probably not worth worrying about unless the service you're proxying has no error-recovery mechanisms or it's a mega-busy service. Because my container that does transparent proxying requires access to iptables (NET_ADMIN capability) it can do a slightly more advanced reload based on the technique described here that guarantees not to drop any packets. Probably.

from haproxy.

tianon avatar tianon commented on May 30, 2024

Closing since this appears to be resolved. πŸ‘

from haproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.