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
02cda120
Commit
02cda120
authored
Aug 14, 2015
by
Max Rothman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2214 from edx/max/mongostat
Add mongostat logging
parents
e4848f95
77224bdd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
playbooks/roles/mongo/defaults/main.yml
+1
-0
playbooks/roles/mongo/tasks/main.yml
+16
-0
playbooks/roles/splunkforwarder/templates/edx/bin/log-mongostat.sh.j2
+1
-0
No files found.
playbooks/roles/mongo/defaults/main.yml
View file @
02cda120
...
...
@@ -61,3 +61,4 @@ MONGO_S3_S3CMD_CONFIG: "{{ COMMON_DATA_DIR }}/mongo-s3-backup.s3cfg"
MONGO_S3_BACKUP_AWS_ACCESS_KEY
:
!!null
MONGO_S3_BACKUP_AWS_SECRET_KEY
:
!!null
MONGO_LOG_MONGOSTAT
:
true
playbooks/roles/mongo/tasks/main.yml
View file @
02cda120
...
...
@@ -160,3 +160,19 @@
minute="0"
day="{{ MONGO_S3_BACKUP_DAY }}"
when
:
MONGO_S3_BACKUP
-
name
:
add mongostat logging script
template
:
src="edx/bin/log-mongostat.sh.j2"
dest="{{ COMMON_BIN_DIR }}/log-mongostat.sh"
owner="{{ mongo_user }}"
group="{{ mongo_user }}"
mode=0700
when
:
MONGO_LOG_MONGOSTAT
-
name
:
add mongostat logging script to cron
cron
:
name
:
"
mongostat
logging
job"
job
:
/edx/bin/log-mongostat.sh >{{ mongo_log_dir }}/mongostat.log 2>&1
become
:
yes
when
:
MONGO_LOG_MONGOSTAT
playbooks/roles/splunkforwarder/templates/edx/bin/log-mongostat.sh.j2
0 → 100644
View file @
02cda120
/usr/bin/mongostat -u {{ MONGO_ADMIN_USER }} --authenticationDatabase admin -p '{{ MONGO_ADMIN_PASSWORD }}' --all -n 1 --json
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