Comments (6)
@bencourliss and @naphelps Can we get someone to look at this? This issue is causing the community lab exchange to go into restart loops when the disk fills up. Can we provide a mechanism (flag, env var, whatever) that allows us to prune, limit or suppress the log files?
from devops.
The log level in the Exchange is configurable in the config.json
. It can even be turned off if you like.
https://github.com/open-horizon/exchange-api/tree/master/docs#apilogging
Values: https://logback.qos.ch/apidocs/ch/qos/logback/classic/Level.html
from devops.
INFO
is the config default.
from devops.
It's my understanding that all of the containers write to stdout correct? If so then is that captured in /var/log/messages
or /var/log/syslog
? You should be able to configure your system with logrotate to make sure those files stay manageable. Outside of controlling what gets logged as Nathan mentions, I don't think this is something that should be configured in the all-in-one mgmt hub script.
from devops.
@bencourliss The containers are writing their logs in /var/log/docker/containers/*/*-json.log
as a list of serialized JSON objects, where * represents any container's ID. Those are the log files shown in the screenshot that are using high amounts of disk space.
All of the containers write to stdout inside the container environment. Docker reads that and uses a "logging driver" to choose what happens to that output. There is a driver that writes to the syslog, but that isn't the default behavior. The default logging driver is the json-file driver, which is what's creating these large files. There are other drivers that are lighter on disk space that you can choose from here: https://docs.docker.com/config/containers/logging/configure/
I can set the default logging driver in the daemon config to fix this for now, but whether this should be the default behavior of the management hub after it's installed out-of-the-box is the real question.
from devops.
@loudonlune ah, got it. It still seems to me to be something that should be configured on the system itself. I don't feel the management hub should be configuring the system-wide Docker daemon settings. That seems to be more suited for the system administrator. Perhaps it would be good to document it. https://docs.docker.com/config/containers/logging/configure/
from devops.
Related Issues (20)
- Error running make publish-only: ARCH=amd64 make publish-service-overwrite
- ...
- Encounter Error in ./deploy-mgmt-hub.sh Error: exit code 5 HOT 4
- Create installation instructions for Agent on Windows Subsystem for Linux HOT 1
- Version pinning external images such as Mongo and Postgres
- Documentation: Issue 394 in docs - broken links
- Add FDO Support
- Problem with Stopping and Restarting containers. HOT 1
- Add an Ansible playbook to deploy the management hub all-in-one. HOT 2
- Any steps for installing it on kube cluster
- Documentation: Add frontmatter to WSL docs HOT 2
- Update FDO Components To Version 1.1.6
- Update FDO Components To Version 1.1.7
- Automation: Create GHA to generate CHANGELOG entries aligned with a release
- All-in-one installation failed HOT 2
- All-in-One Management Hub Installation HOT 1
- The deploy script is only pulling x86 even for Macs M1 HOT 2
- `test-mgmt-hub.sh` fails after fresh install through all-in-one script HOT 1
- Development: OpenBao support
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 devops.