Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to journald logging driver for the Docker container after confirming it is appropriate for our needs #35

Open
sync-by-unito bot opened this issue Dec 1, 2022 · 1 comment

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Dec 1, 2022

Currently the proxy container deployed by the automation uses the JSON logging driver, which is the Docker default.

However, the downside of this driver is that when a container is recreated, the logs of the previous container are lost. While this does not happen for normal container restarts, it does happen when a container's configuration is changed (as containers are immutable, so changing the configuration requires a new container to be created from scratch). This is inconvenient, especially when the configuration change is to change the logging level, and generally it is undesirable.

We considered switching to the journald logging driver, which should solve this problem and generally work well for our needs.

This issue is about finalising this decision and, if we are happy with this, changing the automation to use the journald logging driver for future deployments.

Note for future development: the current version of Docker supports writing to multiple logging destinations so if we wanted to we could also consider a centralised logging collection solution like Fluentd or similar.

┆Issue is synchronized with this Jira Improvement by Unito
┆Components: Automation
┆Priority: Major

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Dec 1, 2022

➤ Wei Deng commented:

https://datastax.jira.com/browse/ZDM-338 ( https://datastax.jira.com/browse/ZDM-338|smart-link ) would be more future-proof than implementing this one.

@sync-by-unito sync-by-unito bot closed this as completed Dec 21, 2022
@weideng1 weideng1 reopened this Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant