Giter Site home page Giter Site logo

rancher-aws's People

Contributors

bdentino avatar abpai avatar

Stargazers

Sam avatar Vinayak Kulkarni avatar

Watchers

James Cloos avatar  avatar  avatar

rancher-aws's Issues

Non-HA server setups should only run one server container at a time

When multiple servers are running in a non-HA setup connected to the same db, it causes hosts to start going in and out of the reconnecting state. I haven't looked into why yet, but my immediate hypothesis is that the secondary servers are waiting to receive pings from these agents. But agents use the load-balanced hostname, which always directs to the primary instance. So it never receives ping responses and thinks these agents are unavailable so it starts marking them as reconnecting, but the primary is receiving pings so it keeps marking them back in a not-so-beautiful dance.

Simplest solution is probably to add a service to the server image that starts/stops the rancher server container depending on whether or not it's the primary. This effectively means that failover might take a bit longer, depending on the polling interval for serf changes (though it could also be triggered with serf events), and how long it takes the rancher container to initialize. In any case, I can't see it taking more than 30s. If you only have one instance running and it goes down, you basically need to wait for the cluster to detect this for and AWS to start up a new instance, which can take 10-20m depending on the circumstances. If you can tolerate this downtime, then there's no reason to run multiple instances otherwise it's a good idea to run a secondary.

So in the meantime, we're limited to one-server setups which requires us to accept that extended downtime in the case of a node failure or termination.

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.