Digital Ocean Droplets

From: "Peters, Lenny (HAL)"
Subject: Continuous Integration Resources... Cross-Team Demo follow-up
Date: September 12, 2017 at 1:20:02 PM PDT

For less than a cup of coffee! The 5 dollar CI/CD flow for continuous intergration!

Tutorial: https://code.tutsplus.com/tutorials/setting-up-continuous-integration-continuous-deployment-with-jenkins--cms-21511
Repo: https://github.com/Loonz206/hello-jenkins
Cloud Servers: https://www.digitalocean.com/ (one for Jenkins, one for application hosting etc.)

Other resources:
https://jenkins.io/
https://eslint.org/
https://www.npmjs.com/package/npm-release

Next Steps:
Docker containerization with Jenkins workflow (hint hint, Maurice… HACKATHON)
Docker Image/Repo cleanup tasks
Tagging via npm-release

Obviously, the demo was related to UI code but it’s fundamentals can be extended to Services code, fortify scans, analytics and several other integrations.
This was a fun demo to show and really grateful at these demos cross-team. Thank you Allison for putting this on, supporting this.

Ubuntu Command Line Short Cuts (CLI)

Some useful line editing key bindings provided by the Readline library:

  • Ctrl-A: go to the beginning of line
  • Ctrl-E: go to the end of line
  • Alt-B: skip one word backward
  • Alt-F: skip one word forward
  • Ctrl-U: delete to the beginning of line
  • Ctrl-K: delete to the end of line
  • Alt-D: delete to the end of word

Grep only certain files

$ grep -ir --include pom.xml "<java.version>"

Refer: https://stackoverflow.com/questions/12516937/grep-but-only-certain-file-extensions

$ grep -r -i --include \*.h --include \*.cpp CP_Image ~/path[12345] | mailx -s GREP email@domain.com

Secondary Flow Outage Google CDN Failure

Short Answer:

Yesterday’s Secondary Flow Outage was a UI issue, and not a DSSF issue.  Some of the AngularJS files for SF come from external sources which became unavailable.  There was a Google load balancing issue yesterday.

Long Answer:

I have a Splunk alert that fires whenever there have been zero secondary flow purchases within a 15 minute period.  It normally fires a few false alarms at night but some of the alarms started firing in the morning.  I sent the first email saying something might be wrong at 8:46am, and reached Rohith on HipChat.

Since the 500 alerts were not firing, the first guess was maybe the logs stop rolling.   That was not the case, so I just went to WWW and clicked the link the Secondary Flow, and the logon portal did not appear.  I opened an incident for anything that Rohith was doing could be logged.

This looks exactly like the symptom of a 500 error, but it was not.  Secondary Flow team took over the digging and Lenny and others found that the UI was not loading properly.

Load Balance Issue with Google:

https://status.cloud.google.com/incident/cloud-networking/17002

Example of incident reported by Google

Aug 30, 2017 09:30

We are experiencing an issue with a subset of Network Load Balance. The configuration change to mitigate this issue has been rolled out and we are working on further measures to completely resolve the issue. For everyone who is affected, we apologize for any inconvenience you may be experiencing. We will provide an update by 10:30 US/Pacific with current details.

Examples of CDN’s Used:

https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.min.js

https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css