Comments (6)
Sorry for the delay! Should be fixed with v0.5.0
from k8s-mongo-sidecar.
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.
@rosslutsch Any information when you run kubectl logs YOUR-POD-NAME mongo-sidecar
?
from k8s-mongo-sidecar.
@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.
@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.
@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)
- no replset config has been received HOT 3
- MongoDB Sidecar doesn't work with IPv6 enabled HOT 4
- Does it support to Mongodb 4.7?
- Dependabot couldn't find a <anything>.yml for this project
- mongo pod not receiving configuration for master and secondary HOT 1
- Failed to get /openapi/v2 and /swagger.json
- No replset config has been received HOT 1
- Unable to change service account name via env
- Replicas could not join the cluster HOT 1
- Non force replica set reconfig can only add or remove at most 1 voting member. HOT 2
- When enable auth , requires authentication between mongo Heartbeat
- [k8s v1.19.2] cannot get resource "namespaces" in API group "" in the namespace "pods" HOT 1
- Cannot start StatefullSet in persistent volume NFS HOT 1
- support 4.4.+ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8s-mongo-sidecar.