Skip to content

Swarm CloudWatch#447

Merged
anandkumarpatel merged 7 commits intomasterfrom
swarm-cloudwatch
Apr 28, 2016
Merged

Swarm CloudWatch#447
anandkumarpatel merged 7 commits intomasterfrom
swarm-cloudwatch

Conversation

@bkendall
Copy link
Copy Markdown
Contributor

@bkendall bkendall commented Apr 27, 2016

  • added script for generating cloudwatch metrics
  • added playbook for putting script onto swarm box
  • removed duplicate values in gamma-hosts

Reviewers

Tests

Test any modifications on one of our environments.

Deployment (post-merge)

Ensure that all environments have the given changes.

  • deployed to epsilon
  • deployed to gamma
  • deployed to delta

Comment thread ansible/swarm-cloudwatch-reporter.yml Outdated
state: directory
owner: ubuntu
group: ubuntu
mode: 0775
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why drwxrwxr-x?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

want to be able to write to it and get into the folder? and doesn't need to be as root? do you have a suggestion for something different?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of the four octets, the trailing three are, in order, user, group and other. If you are only concerned about user ubuntu being able to read the directory, literally setting the octet to "5" is sufficient (read=true, execute=true), or mode 0500. I am not aware of Runnable running anything set-groupId, so the group octet (00X0) is irrelevant, but to be safe mode 0755 (user read, write, execute; group read and execute; other read and execute).

@und1sk0
Copy link
Copy Markdown
Contributor

und1sk0 commented Apr 28, 2016

Adding my check... I get the general gist of the Javascript even if I am not there yet in terms of it totally making sense to me, everything looks copacetic.

ETA - make /opt/runnable mode 0700 or 0755

@bkendall
Copy link
Copy Markdown
Contributor Author

make /opt/runnable mode 0700 or 0755

done

Comment thread ansible/get-info.js Outdated
@@ -0,0 +1,181 @@
var AWS_ACCESS_KEY = process.env.AWS_ACCESS_KEY
Copy link
Copy Markdown

@anandkumarpatel anandkumarpatel Apr 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

surprised this file is not in a seperate repo somewhere ... as it get more advance/critical lets make sure to break it out

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know where to put it...

-v /opt/ssl/docker/swarm-manager:/opt/ssl/docker/swarm-manager:ro
-v /var/log:/var/log

container_run_args: npm start >> /var/log/{{ name }}.log 2>&1
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't do this anymore?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see other comment about logging...

@anandkumarpatel
Copy link
Copy Markdown

LGTM

@anandkumarpatel anandkumarpatel merged commit c91f8b9 into master Apr 28, 2016
@anandkumarpatel anandkumarpatel deleted the swarm-cloudwatch branch April 28, 2016 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants