Scale Down Openshift Deployed Services Quickly

I recently had to decommission a couple of live services which meant disabling certain aspects before the production region was decomissioned by others. This however left pre-production still running in two regions which equated to about 2*2*35=140 services that I had to shutdown. Using the openshift UI is too slow and clunky so I opted for the right way which is to use the oc cli.

Read more of Scale Down Openshift Deployed Services Quickly


Display Mongo Bunyan Logs In The Terminal

If you use Bunyan and decide to use a MongoDB as a logging appender (destination) then you will arguably know what a great use of MongoDB it can be. Querying is easy but sometimes visibly parsing a raw Bunyan log entry JSON is a pain but luckily Bunyan CLI will parse and display these in a much easier format. However just extracting the raw Mongo documents using Robomongo and piping to bunyan will not work as the document schema and extra added Robomongo cruft differs a little making it non-parseable by Bunyan therefore we need to transform the entries a little which we can do using standard Mac or linux utils.

Read more of Display Mongo Bunyan Logs In The Terminal