Giter Club home page Giter Club logo

Comments (6)

morphy2k avatar morphy2k commented on June 5, 2024 2

Sorry for the delay! Should be fixed with v0.5.0

from k8s-mongo-sidecar.

jhughes2112 avatar jhughes2112 commented on June 5, 2024 1

The issue with this was the parsing of the DateTime of the last heartbeat. It was coming back NaN for me, at least. I submitted a PR with fixes, and verified it was removing. In the meantime, I've posted an image on DockerHub at jhughes2112/k8s-mongo-sidecar

from k8s-mongo-sidecar.

marsblkm avatar marsblkm commented on June 5, 2024

@rosslutsch Any information when you run kubectl logs YOUR-POD-NAME mongo-sidecar?

from k8s-mongo-sidecar.

rosslutsch avatar rosslutsch commented on June 5, 2024

@MarsssBlkm here is what I understand so far.

  • With a member missing because of the scaling down the quorum is lost and it logs the following every few seconds

Pod has been elected as a secondary to do primary work
Pod has been elected as a secondary to do primary work

  • as there is no primary all the remaining pods become slave
  • it seems the remove member function isn't working or it's not picking up that there is a member missing . it doesn't appear in the members to remove [] in the log either.

from k8s-mongo-sidecar.

marsblkm avatar marsblkm commented on June 5, 2024

@rosslutsch
I have met the same problem. It seems like the problem is with inReplicaSet function in src/lib/worker.js.
It only checks if (member.state === 1) while after scaling down the members which are supposed to be removed has state == 8.
Once it has found a member with state === 1 the loop breaks.. so it doesn't look at the others anymore...?
This is just my guess and I am new to k8s and node.js so I could be wrong..

from k8s-mongo-sidecar.

Zeedinstein avatar Zeedinstein commented on June 5, 2024

@rosslutsch and @MarsssBlkm I will have a look at this and see what I can do. Thanks for pointing out a starting place @MarsssBlkm. Not sure if they accepting pull requests at the moment but I will fork this on my side.

from k8s-mongo-sidecar.

Related Issues (15)

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.