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
77224bdd
Commit
77224bdd
authored
Aug 13, 2015
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Respond to comments
parent
12a7fc18
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
playbooks/roles/mongo/defaults/main.yml
+1
-0
playbooks/roles/mongo/tasks/main.yml
+14
-6
playbooks/roles/splunkforwarder/templates/edx/bin/log-mongostat.sh.j2
+1
-0
No files found.
playbooks/roles/mongo/defaults/main.yml
View file @
77224bdd
...
...
@@ -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 @
77224bdd
...
...
@@ -161,9 +161,18 @@
day="{{ MONGO_S3_BACKUP_DAY }}"
when
:
MONGO_S3_BACKUP
-
name
:
add mongodump logging command to cron
-
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
:
"
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
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 @
77224bdd
/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