Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
12a7fc18
Commit
12a7fc18
authored
9 years ago
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mongostat logging
parent
aedf9ad8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
playbooks/roles/mongo/tasks/main.yml
+8
-0
No files found.
playbooks/roles/mongo/tasks/main.yml
View file @
12a7fc18
...
...
@@ -160,3 +160,10 @@
minute="0"
day="{{ MONGO_S3_BACKUP_DAY }}"
when
:
MONGO_S3_BACKUP
-
name
:
add mongodump logging command to cron
cron
:
name
:
"
mongodump"
job
:
>
/usr/bin/mongostat -u {{ MONGO_ADMIN_USER }} --authenticationDatabase admin
-p '{{ MONGO_ADMIN_PASSWORD }}' --all -n 1 --json >{{ COMMON_LOG_DIR }}/mongo/mongostat.log 2>&1
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment