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
5659c8ce
Commit
5659c8ce
authored
Sep 10, 2014
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use bucket var, force a sync
parent
5379c181
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
15 deletions
+19
-15
playbooks/edx-east/retire_host.yml
+18
-14
playbooks/roles/minos/templates/edx/etc/minos/conf.d/TrackingLogVoter.yml.j2
+1
-1
No files found.
playbooks/edx-east/retire_host.yml
View file @
5659c8ce
...
@@ -20,24 +20,28 @@
...
@@ -20,24 +20,28 @@
gather_facts
:
False
gather_facts
:
False
tasks
:
tasks
:
-
name
:
Terminate existing s3 log sync
-
name
:
Terminate existing s3 log sync
command
:
/usr/bin/pkill send-logs-to-s3 ||
true
command
:
/usr/bin/pkill send-logs-to-s3 ||
true
-
name
:
"
Send
tracking
logs
to
s3
if
it
is
not
handled
by
logrotate"
-
name
:
"
Send
tracking
logs
to
s3
if
it
is
not
handled
by
logrotate"
shell
:
grep -q send-logs-to-s3 /etc/logrotate.d/hourly/tracking.log || /edx/app/aws/send-logs-to-s3 -d "/edx/var/log/tracking/*" -b "edx-stage-edx/logs/tracking"
shell
:
grep -q send-logs-to-s3 /etc/logrotate.d/hourly/tracking.log || /edx/app/aws/send-logs-to-s3 -d "/edx/var/log/tracking/*" -b "edx-stage-edx/logs/tracking"
# We only force a rotation of edx logs.
# We only force a rotation of edx logs.
# Forced rotation of system logfiles will only
# Forced rotation of system logfiles will only
# work if there hasn't already been a previous rotation
# work if there hasn't already been a previous rotation
# The logrotate will also call send-logs-to-s3 but hasn't
# The logrotate will also call send-logs-to-s3 but hasn't
# been updated for all servers yet.
# been updated for all servers yet.
-
name
:
Force a log rotation which will call the log sync
-
name
:
Force a log rotation which will call the log sync
command
:
/usr/sbin/logrotate -f /etc/logrotate.d/hourly/{{ item }}
command
:
/usr/sbin/logrotate -f /etc/logrotate.d/hourly/{{ item }}
with_items
:
with_items
:
-
"
tracking.log"
-
"
tracking.log"
-
"
edx-services"
-
"
edx-services"
# This catches the case where tracking.log is 0b
-
name
:
Sync again
command
:
/edx/bin/send-logs-to-s3 -d "{{ COMMON_LOG_DIR }}/tracking/*" -b "{{ COMMON_AWS_SYNC_BUCKET }}/logs/tracking"
-
name
:
Run minos verification
-
name
:
Run minos verification
hosts
:
Terminating_Wait
hosts
:
Terminating_Wait
sudo
:
True
sudo
:
True
...
...
playbooks/roles/minos/templates/edx/etc/minos/conf.d/TrackingLogVoter.yml.j2
View file @
5659c8ce
...
@@ -2,5 +2,5 @@ TrackingLogVoter:
...
@@ -2,5 +2,5 @@ TrackingLogVoter:
config:
config:
aws_profile: !!null
aws_profile: !!null
local_directory: '{{ COMMON_LOG_DIR }}/tracking'
local_directory: '{{ COMMON_LOG_DIR }}/tracking'
s3_bucket: '
edx-{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMEN
T }}'
s3_bucket: '
{{ COMMON_AWS_SYNC_BUCKE
T }}'
bucket_path_prefix: 'logs/tracking'
bucket_path_prefix: 'logs/tracking'
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