Giter Club home page Giter Club logo

Comments (6)

michaeltchapman avatar michaeltchapman commented on September 10, 2024

You're right, and yet the centos7.pp in examples seems to work for me under vagrant, which is a bit strange. Thanks for pointing this out.

from puppet-galera.

mf-lit avatar mf-lit commented on September 10, 2024

Hmm, this is spooky. I've been running this module for several weeks without issue, then yesterday I ran puppet against the "$galera_master" and the node went ahead and bootstrapped itself due to exactly this problem. Yikes.

It's a nasty bug as it left me with the remaining nodes in one cluster and one node in a new cluster. The cluster is frontended by haproxy and this continued to healthcheck all nodes successfully. The next result was that one in N queries was against a bad database!

ylockerman's workaround looks pretty solid, but does take significantly longer to timeout than 'nc -z'. It may be preferable to use something like tcping?

from puppet-galera.

michaeltchapman avatar michaeltchapman commented on September 10, 2024

Yep gonna change it to nmap or tcping I think.

from puppet-galera.

ylockerman avatar ylockerman commented on September 10, 2024

I looked into using nmap when I was writing my workaround. The issue I ran into is that nmap (and tcping) is not installed by default in Centos. Thus, if you use it, it seems like the package will need to be installed manually.

from puppet-galera.

michaeltchapman avatar michaeltchapman commented on September 10, 2024

Requiring packages isn't a big problem as long as they're in the standard repos or epel at least. I think nmap is in the base ones so that's probably better.

from puppet-galera.

michaeltchapman avatar michaeltchapman commented on September 10, 2024

@mf-lit you raise a good point as well - the timeouts (and maybe retries) probably need to be configurable so that a second of packet loss doesn't result in a bad bootstrap.

How's this to address the nc issue?

#49

from puppet-galera.

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.