Skip to content

Conversation

@bznein
Copy link
Contributor

@bznein bznein commented Jun 21, 2021

closes #570
by not defaulting to saving mongodb logs to file. Users can still obtain the old behaviour through spec.additionalMongodConfig

All Submissions:

  • Have you opened an Issue before filing this PR?
  • Have you signed our CLA?
  • Have you signed all of your commits?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).

Comment on lines -217 to -221
process.SetSystemLog(SystemLog{
Destination: "file",
Path: path.Join(DefaultAgentLogPath, "/mongodb.log"),
LogAppend: true,
})
Copy link
Contributor Author

@bznein bznein Jun 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By removing this mongodb now by default sends its output to stdout: https://docs.mongodb.com/manual/reference/configuration-options/#mongodb-setting-systemLog.destination


s := secret.Builder().
SetName(secretNsName.Name).
SetNamespace(secretNsName.Namespace).
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes in this file are unrelated and come from pre-commit hook errors

Copy link
Contributor

@chatton chatton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for the quick fix. Can we update the release notes before merging though!

@bznein bznein merged commit 9ab2dc2 into master Jun 22, 2021
@bznein bznein deleted the CLOUDP-92631_log_to_stdout branch June 22, 2021 08:34
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

Successfully merging this pull request may close these issues.

Log takes all space and mongodb is down

3 participants