-
Notifications
You must be signed in to change notification settings - Fork 0
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
Store Mongo configuration file in Git repository (Jetstream2) #233
Comments
A different one of my action items from this week's Jetstream2 squad meeting was to update the In other words, define the [
"mongod",
"--config",
"/data/db/mongod.conf",
"--setParameter",
"logComponentVerbosity={query: {verbosity: 2}}"
] For now, I am going to document that task here in this issue comment instead of creating a separate Issue. Rationale:
|
I don't see any status on the sprint or Jetstream squad board. What's the status of this issue? Is it still active? @eecavanna @mflynn-lanl |
I created the issue, but never assigned a status to it (or started working on it). I will move it to the next sprint (I do plan to either do it—or close it—next sprint). |
Here's how the config file above compares with Mongo's default values:
|
After removing the redundant information, here's what the config file would contain: # This is a MongoDB configuration file.
# You can pass it to the MongoDB daemon via: `$ mongod --config /path/to/this/file`
# Reference: http://docs.mongodb.org/manual/reference/configuration-options/
# Configure MongoDB to write its logs to a file at this path.
# Note: This depends upon the directory `/data/db/log/` already existing.
systemLog:
destination: file
logAppend: true
path: /data/db/log/mongod.log
# Configure MongoDB to listen for traffic coming from any host, not just localhost.
net:
bindIp: 0.0.0.0 I have created a file containing this, on the Jetstream2 VM: |
After observing that the container logs (accessible via So, here's the latest config file. I added a section that explicitly enables authorization. In the container-based deployment (based on the off-the-shelf Mongo image), this section is redundant with the default behavior of Mongo; but that is not the case when (a) we use a config file at all or (b) in the non-container-based deployment on SDSC. # This is a MongoDB configuration file.
# You can pass it to the MongoDB daemon via: `$ mongod --config /path/to/this/file`
# Reference: http://docs.mongodb.org/manual/reference/configuration-options/
# Configure MongoDB to require clients to authenticate themselves, instead of allowing access by all clients.
# Reference: https://www.mongodb.com/docs/manual/tutorial/configure-scram-client-authentication/#re-start-the-mongodb-instance-with-access-control
# Reference: https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-security.authorization
security:
authorization: enabled
# Configure MongoDB to listen for traffic coming from any host, not just localhost.
# Reference: https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-net.bindIp
net:
bindIp: 0.0.0.0 |
FYI: In the production instance of NMDC EDGE (on SDSC), the Mongo version being used is currently 3.6.8 (https://www.mongodb.com/docs/v5.3/release-notes/3.6/#3.6.8---sep-19--2018). |
@eecavanna would you be ok with me moving anything not Berkeley refactor to the next sprint? Like this issues, seems like this could wait. |
Hi @ssarrafan, yes on this particular issue. I'll move it now. There are things I want to do that aren't Berkeley Schema Roll Out-related, next Wednesday-Friday. |
Background
@mflynn-lanl created a Mongo configuration file named
mongod.conf
.Here's what it contains (as of July 4, 2024):
Task
The text was updated successfully, but these errors were encountered: