Giter Club home page Giter Club logo

Comments (2)

staaas avatar staaas commented on May 28, 2024

@abitrolly

So I've been working on deploy and pipeline recently. My current goal is to enable automatic updates in production.

Some arguments

  • we don't use Nginx anywhere today (there is production.yml, but it isn't used anymore)
  • I tried to fit Nginx into my deployment scheme, but I couldn't
    • what I needed was upstream reconfiguration in runtime, but that's available only in Nginx+ (which is paid)
    • well, to be perfectly honest, I could live with Nginx, but that makes deployment pipeline more complicated without a real reason
  • HAProxy and Nginx both work for our needs:
    • both can work as HTTP proxy
    • both protect worker pool from slow clients
    • both can do SSL termination

Why do I need upstream reconfiguration

So (Nginx|HAProxy) will act as an HTTP proxy. I want them to resolve app container via DNS name (instead of using IP addresses). However Nginx won't even start in this case - it performs DNS lookups at startup.

@nott, can we just use IP addresses?

Probably, yes (I haven't tried though)

@nott, if Nginx crashes at startup, can it just crash-loop until address can be resolved?

Probably, yes (well, changing IP address of app container will require manual restart of Nginx, but that still can be acceptable)

Instead of a conclusion

I don't have much experience with HAProxy too. But I can see this as a compromise for a simple (and I hope reliable) deployment scheme. You'll be able to review my PR anyway.

from next.filmfest.by.

staaas avatar staaas commented on May 28, 2024

we've switched to haproxy - we now use this haproxy.cfg

looks like haproxy is a better option for http proxy in dockerized environment these days because it can do dns resolving in run time

from next.filmfest.by.

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.