-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
62 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Logging to AWS Cloudwatch | ||
##################################### | ||
|
||
Workflow steps executed in Lambda Functions | ||
===================================== | ||
|
||
Lambda functions log directly to AWS Cloudwatch - make sure the role executing | ||
the lambda function has Create/Write permissions to AWS Cloudwatch. All print | ||
statements will go to the log. | ||
|
||
Logs will be sent to a Log Group, prefixed by '/aws/lambda/' followed by the name of | ||
the lambda function, such as **/aws/lambda/bison_s4_intersect_bison**. A new stream | ||
under that log group will be created for every run of the function. | ||
|
||
Workflow steps executed in EC2 instance | ||
======================================== | ||
|
||
EC2 instances which execute steps will send Docker logs to a Log Group created for this | ||
purpose, **bison_task**. A stream will be created for each task, with logging | ||
statements for all runs in the same stream. | ||
|
||
This logging is configured in the Docker compose file for each task. Use the task name | ||
defined in the EC2 Launch Template version for the task. For task calc_stats, this | ||
is the logging configuration of the compose file:: | ||
|
||
logging: | ||
driver: awslogs | ||
options: | ||
awslogs-region: us-east-1 | ||
awslogs-group: bison_task_calc_stats | ||
awslogs-stream: calc_stats | ||
|
||
TODO: Create a new log group for each lambda- initiated EC2 workflow task, with a new | ||
stream (named with timestamp) for each execution. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.