nlpsandbox / nlpsandbox-infra

AWS CloudFormation templates for deploying the NLP Sandbox infrastructure
Apache License 2.0
0 stars 1 forks source link

Configure the controller and data node containers to send log to CW #37

Open tschaffter opened 3 years ago

tschaffter commented 3 years ago

Depends on #33

There are three properties to configure for each container:

These log will be useful to troubleshoot #35 .

tschaffter commented 3 years ago

@thomasyu888 Note that MCW should not use the aws logging driver. Is there a way to parametrize the log driver, e.g. via a .env file?

thomasyu888 commented 3 years ago

@tschaffter, this is just included in the docker run command right? I would need to figure out how to use this: https://docker-py.readthedocs.io/en/stable/api.html#docker.types.LogConfig for the submissions. As for the data-node, I can't seem to find the official docker-compose specs on logging, but there seems to be a section for it: https://stackoverflow.com/questions/43486505/docker-compose-json-logging-driver-labels-env.

For the data node, we can definitely have different .env files per data site so that they don't utilize the aws logging driver. As for the submissions themselves, we would just have different logging configurations within python as linked above. Unsure of bandwidth to tackle this.

tschaffter commented 3 years ago

Let's review this together tomorrow morning during our 1:1

tschaffter commented 3 years ago

https://docs.docker.com/config/containers/logging/awslogs/