Comments (10)
Hi! Finally found some time to create a PR:
The gist is that setting agent.logFile: /dev/stdout will unset the -logFile command line option which make the agent log to stdout.
Please review. Any comments welcome.
from mongodb-kubernetes-operator.
I am having the same issue after upgrading the mongodb-operator from 0.7.6 to 0.8.3 (Looks like anything >0.7.8 has this issue)
By default it's logging as per AGENT_LOG_LEVEL to AGENT_LOG_FILE=/var/log/mongodb-mms-automation/automation-agent.log
However the moment I change AGENT_LOG_FILE=/dev/stdout it started logging everything like .trace as well as .debug
This is causing too much logging
Moreover, Following error is being logged while using logFile=/dev/stdout
[.error] [src/main/cm.go:main:118] Failed to create AsyncRollingFileAppender for full log file : open /dev/stdout-verbose: permission denied
[.error] [src/main/cm.go:main:119] [02:01:44.428] Failed to setup logging! : Failed to create AsyncRollingFileAppender for full log file : open /dev/stdout-verbose: permission denied
from mongodb-kubernetes-operator.
The problem here seems to be that the mongo agent requires the absence of the logFile cmdline option to log to /dev/stdout. So if in the operator config the logFile is absent or set to /dev/stdout the cmdline should not include the logFile option part.
See:
https://stackoverflow.com/questions/13506198/mongodb-log-mongod-to-stdout
Although the official docs do not mention this:
https://www.mongodb.com/docs/ops-manager/current/reference/mongodb-agent-settings/#logging-settings
from mongodb-kubernetes-operator.
The issue is still actual
from mongodb-kubernetes-operator.
Damn, just deployed an operator upgrade and got paged that our log volumes are filling up with bloat...
from mongodb-kubernetes-operator.
This issue is being marked stale because it has been open for 60 days with no activity. Please comment if this issue is still affecting you. If there is no change, this issue will be closed in 30 days.
from mongodb-kubernetes-operator.
Issue is still valid and blocking the upgrade of mongodb-operator from 0.7.8 onwards
from mongodb-kubernetes-operator.
@schans change has been merged. Closing this Issue
Please follow this setting: #1439 (comment) to send to stderr/stdout instead of a file
from mongodb-kubernetes-operator.
Perfect. Thanks for your help!
from mongodb-kubernetes-operator.
Thank you! This is a huge help 🙏
from mongodb-kubernetes-operator.
Related Issues (20)
- [HELP] Migrate data from bitnami MongoDB to community MongoDB. HOT 2
- Deploy a sharded cluster HOT 3
- Statefulset: volumeClaimTemplates doesn't match volumeName annotation HOT 2
- Operator fail to install Mongo 7.0.9 HOT 1
- Too many "Connection accepted" and "Connection ended" in the logs HOT 3
- mongo not working with external access HOT 2
- MongoDB Failed Status HOT 4
- Scaling beyond 7 replicas causes failure in MongoDB Kubernetes Cluster with Mongo Community Operator HOT 2
- failed to create containerd task: failed to create shim HOT 2
- Publish the MongoDB community operator under OperatorHub HOT 2
- node had volume node affinity conflict HOT 2
- Arguments order for AutomationAgentCommand is incorrect HOT 2
- agent image referenced by 0.10.0 release not available on quay.io HOT 1
- Can't create a connection string secret in a different namespace HOT 4
- Broken link in `latest` release notes HOT 2
- quay.io/mongodb/mongodb-agent-ubi:107.0.1.8507-1 has wrong architecture of binaries HOT 3
- operator CrashLoopBackOff, no logs, is my k8s version is too high? HOT 2
- memberConfig not applying priority/tags/votes changes as expected HOT 1
- Operator falsely errors and does not let to upgrade MongoDB cluster replicas HOT 9
- MongoDBCommunity not using the `replicaSetHorizons` values to generate `Mongo Uri` resulting in `MongoNetworkError` 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 mongodb-kubernetes-operator.