<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Diego Garber on Medium]]></title>
        <description><![CDATA[Stories by Diego Garber on Medium]]></description>
        <link>https://medium.com/@diego.garber?source=rss-7f2c36db055e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Vl4slaP4LSVCOWpa.</url>
            <title>Stories by Diego Garber on Medium</title>
            <link>https://medium.com/@diego.garber?source=rss-7f2c36db055e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:56:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@diego.garber/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Automation is not enough, start automating automation]]></title>
            <link>https://tech.olx.com/automation-is-not-enough-start-automating-automation-eb91be327b8d?source=rss-7f2c36db055e------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb91be327b8d</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Diego Garber]]></dc:creator>
            <pubDate>Fri, 13 Jan 2017 08:00:00 GMT</pubDate>
            <atom:updated>2017-01-13T15:25:53.667Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K8A3aXts5rTCHYRcdHIR6g.jpeg" /></figure><p>It all started on my holiday break, since I was in charge of creating deployment pipelines for new components, I was pretty used to the routine, I even had it documented and all:</p><ul><li>Copy one example YAML spec file and adapt it for the new component</li><li>Add the new component to my <a href="https://www.ansible.com/">Ansible</a> inventory</li><li>Copy &amp; paste init scripts from another similar component</li><li>Create a new <a href="https://jenkins.io/">Jenkins</a> job (also copy &amp; paste it from a similar component)</li><li>Add a new line to my jenkins config-package-creation job</li><li>Commit &amp; Push</li><li>Test, fail, correct and fail a few more times until done!</li></ul><p>Many of you might be familiarized with some of this steps, some of us use <em>Jenkins</em>, others <em>Bamboo</em>; for scripting some use <em>Ansible</em>, others <em>Salt</em>, <em>bash</em> or whatever, but <strong>we ALL copy &amp; paste things from well working examples and re-adapt them accordingly</strong>.</p><p>And I think, I speak for all of us, when I say that once you start copy-pasting too much, you start feeling an itch on some anti-pattern gland of our geeky body.</p><p>The thing is, I might have ignored or overlooked this itch before my break, since all these steps never took me more than a day or two to get my new pipeline up and running, and it was a fair trade off since we didn’t get as many new components requests to consider this a problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*nKypKRxeLNFOYkFV2ZeeXA.jpeg" /></figure><p>BUT, I left off, for my family holidays, pretty confident everything was going to be A-OK!. Well, kind of.. on my return I found myself with a couple of criticisms from my peers telling me that the whole process was too complicated, too many steps, etc… I have to admit I didn’t take it very well at first, I mean, what was soooo complicated? but then it hit me, someone else might not share the same background, have the same context and no matter how clear the steps were documented, It was a pain! More so in an increasingly larger and complex infrastructure. Now I found myself with the opportunity to improve something, and rather than throwing more documentation at it, doing it the Devops way: Automating!.</p><h4>Getting to work</h4><p>So the first thing to do was getting rid of all that copy+pasting stuff, and the best way I know is refactoring, I won’t bore you with all the details of my own implementation, but basically once you manually perform a task more than 5, 6 times you can easily pinpoint the repetitive stuff, and then you consolidate it in a single place. Ansible is very good at this, so good that I could even remove most of my group_vars files.</p><p>Both the refactoring part and the re-engineering were facilitated thanks to one simple but essential concept for automation: <em>Convention</em>! and that’s why my new motto is always <a href="https://en.wikipedia.org/wiki/Convention_over_configuration"><strong>Convention over Configuration</strong></a>.</p><p>It took me some time but I finally got to a stage in my company where everybody is convinced that getting too creative is very nice for advertising people, but for us it should almost be banned! OK! ok, not that much, but conventions save as a lot of time and give us a framework where we can feel safe that following some simple rules, things will work, and without so much effort.</p><p>If we could guarantee that the same component name will apply for:</p><ul><li>Code Repository</li><li>Config Repository</li><li>Instance name and tags (AWS)</li><li>DEB Package name</li><li>Jenkins jobs</li></ul><p>We could save lot of time and lines of code.</p><p>So I did, and never looked back ever since!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*1ceZ3tCVJ-iRyS7B2THn7Q.png" /><figcaption>Courtesy by <a href="https://xkcd.com/974/">xkcd</a></figcaption></figure><p>The new “automated automation” script, is basically a Jenkins job that commits a couple of lines to a couple of repos and hacks the very same Jenkins it’s running on, since it needs to add a new commit hook to another job, <em>it&#39;s kinda nasty but it works!</em></p><p>Another approach we took for creating the Building part of the Pipeline was using a Jenkins <a href="https://wiki.jenkins-ci.org/display/JENKINS/Job+Generator+Plugin">plugin</a> called “Job Generator”, which is very useful when you need to replicate a model job, we use it as a <strong>job template pipeline</strong> and saves us a lot of effort.</p><p>This is just one example, but it illustrates another big concept, <strong>Automation is the new Documentation</strong>, at least for us DevOps. It&#39;s always funner to do and easier to execute: a Jenkins job than a Documentation page. From backups, file encryptions, cache flushes, or even DNS configurations... you name it!</p><h4>Concluding</h4><p>In the age of the big microservices hype and cloud-based infrastructures this kind of automation becomes more and more important, it’s no longer acceptable to have a big overhead for new services deployment. When you work in a company where you can have dozens (our case) or even hundreds (like Netflix, Airbnb, etc..) of services, doing things manually simply does NOT scale anymore, even the creation of automated processes should be laid in the hands of automation.</p><p><strong><em>Did you like what you just read?</em></strong><em><br>Recommend this story (by pressing the ❤ button) so other people can read it!<br>You can also react on Twitter: </em><a href="https://twitter.com/diegarber"><em>@diegarber</em></a><em> or </em><a href="https://twitter.com/OlxTech"><em>@</em>OlxTech</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb91be327b8d" width="1" height="1" alt=""><hr><p><a href="https://tech.olx.com/automation-is-not-enough-start-automating-automation-eb91be327b8d">Automation is not enough, start automating automation</a> was originally published in <a href="https://tech.olx.com/">OLX Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dr PushLove or: How I Learned to Stop Worrying and Love the Deploy]]></title>
            <link>https://tech.olx.com/dr-pushlove-or-how-i-learned-to-stop-worrying-and-love-the-deploy-b820128b74f3?source=rss-7f2c36db055e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b820128b74f3</guid>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Diego Garber]]></dc:creator>
            <pubDate>Fri, 30 Sep 2016 15:25:05 GMT</pubDate>
            <atom:updated>2017-01-16T13:31:28.459Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lLTmJXbL573CjniL7F4q0A.jpeg" /><figcaption>Iconic image of the classic film <a href="https://en.wikipedia.org/wiki/Dr._Strangelove">Dr Strangelove (1964)</a></figcaption></figure><p>Here at OLX Latam we have quite a classic story about how we release code, we came from quite a long way (of fuck-ups) until we finally achieved THE .com’s <em>Nirvana</em> of Continuous Delivery.</p><p>Just a couple of years ago we were struggling with physical servers, requesting them with weeks of anticipation and carving them from the ground up like an old craftsman, we used SVN and deployed a PHP monolith manually to every environment, and now [SPOILER ALERT] we let our developers deploy their microservices at will <strong>with a push of a button to as many instances on our AWS cloud as the traffic demands</strong>. This might not sound to many of you as such a big deal, but during the article I’ll try to share with you some details that might be useful, or at least amusing, to some.</p><h4>Tooling</h4><p>Our key tool for the whole deployment machinery is Jenkins, nothing new under the sun, is like the glue that binds all the parts together, the <em>symphony’s Director</em>, orchestrating all the instruments, such as the Ansible scripts that run deploys in our servers, or our Github Repositories that trigger builds and start the pipelines. Jenkins is like that old reliable pal you can always trust but is not that fun to hangout with anymore, the UI looks a little bit retro, kind of watching an old TV show like Friends, it will always make you smile but the punch line never surprises you anymore, right? Well they have lately released the 2.0 version which comes with some nice new <a href="https://jenkins.io/solutions/pipeline/">features</a>, but the only thing that will truly make you feel you are watching something like Game of Thrones is <a href="https://jenkins.io/projects/blueocean/">Blue Ocean</a> but it’s still in Alpha by the time I wrote this article.</p><blockquote>Jenkins is like that old reliable pal you can always trust but is not that fun to hangout with anymore</blockquote><p>We actually <strong>have two different Jenkins instances, one for Build and Testing, aka Devs playground, and another for Deployments and infrastructure concerns, SysOps playground</strong>. The first one uses Docker to build technologically different components the same way (Java, NodeJS, PHP, etc), running an image to build and test inside it, like:</p><pre>docker run --rm -v ${PWD}:/data -w /data --env-file ${VARIABLES} olx-inc/maven:3-jdk-7 “mvn clean install”</pre><p>The Sysop Jenkins has actual access to all environments and runs the Ansible scripts over them. Something like:</p><pre>ansible-playbook -i AWS main-ec2.yml -e &quot;component=’${COMPONENT}’ role=’${role}’ environment_name=${ENVIRONMENT} version=’${VERSION}*’” --extra-vars “rollback_enabled=${ROLLBACK_ENABLED}” </pre><p>You can find some other Jenkins fun stuff in my <a href="https://medium.com/olx-engineering-latam/automation-is-not-enough-start-automating-automation-eb91be327b8d#.ig00xvbpj">previous article</a>.</p><p>Another important feature of our deployment pipelines is our <em>deployment unit, aka what we install, </em>some will deploy a tar file, others a git tag or even a Docker image, <strong>we use DEB packages</strong>. We find this very convenient since is the easiest, most natural (actually <em>native</em>) thing to install on Linux Debian based servers. Without any extra third party tool, we get a very powerful set of command line tooling like dpkg, apt-*, etc.. which can do or tell you all about your installed packages. To create such packages we use a couple of very nice gems called <a href="https://github.com/jordansissel/fpm">fpm</a> and <a href="https://github.com/krobertson/deb-s3">deb-s3</a>, the first to create the package, the 2nd to <strong>upload it and all its meta-files to an AWS S3 bucket</strong> of yours. So yes!, we also use S3 as our package repository, providing an endless amount of historic versions to deploy or rollback to, whenever we need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*Zh7NGu6WVcs6TZvelsr7aw.jpeg" /></figure><p>The last instrument in our tooling orchestra would be our own Deployment Application: <a href="https://github.com/olx-inc/octopush">Octopush</a>. We developed, and open sourced, it in order to give more visibility and empowerment to devs, it allows them to follow up releases, check versions and trigger LIVE deployments (and rollbacks) on demand. It helps out tracking all pipeline steps and historical rollouts. It’s a simple but powerful tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D9SxhV_1sOagwTEUCvUY0w.png" /><figcaption>The deployment tab shows deployed versions and allows one-button-push deployments</figcaption></figure><p>What Octopush does is mostly offering a UI layer over Jenkins, in our case equally on both our instances, because it completely relies on it to execute (and show resulting) builds, tests and deployments.</p><p>It also provides an API for other tools to control and consume deployment behaviour and data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uhCLiqEpIsWoHVJ_e3HsQQ.png" /><figcaption>The versions tab shows all microservices versions on each environment</figcaption></figure><p>We also developed an <strong>integration with Github and JIRA</strong>, the first to provide single-sign-on and provide links to the repo and versioning commits. The second so that it creates tickets automatically for LIVE deployments.</p><h4>Process</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O6ylTBRhPGvx6pNtbQhGbA.png" /></figure><p>One particularity about our Workflow is that we trigger the Build-Test-Deployment process on each git tag, instead of single commits. It has it cons and pros, but it’s what actually works for us. Anyway, on each tag we trigger a Build &amp; Test process, it’s positive outcome must be a new and deployed package on our Testing environment. And right after that, we trigger acceptance tests on the that same environment.</p><p>The deployment process integrates with some other external tools of our infrastructure like:</p><ul><li><a href="https://graphiteapp.org/"><strong>Graphite</strong></a> and <a href="https://newrelic.com/"><strong>New Relic</strong></a>: to mark beginning and ending of each deployment.</li><li><a href="https://sensuapp.org/"><strong>Sensu</strong></a>: disables/enables alerts upon deployment and also check whether an alert has triggered and requires a rollback.</li><li><a href="https://www.elastic.co/products/kibana"><strong>Kibana</strong></a>: provides customized links to error logs upon failure.</li></ul><h4>Coming up</h4><p>This is just the tip of the iceberg, on following articles we will get into more detail on the build process, the packages, rollbacks and canary releases, auto-scaling, etc… depending on your feedback and interest I might favor one topic over the other. ;)</p><p><strong><em>Did you like what you just read?</em></strong><em><br>Recommend this story (by pressing the ❤ button) so other people can read it. <br>You can also react on Twitter: </em><a href="https://twitter.com/diegarber"><em>@diegarber</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b820128b74f3" width="1" height="1" alt=""><hr><p><a href="https://tech.olx.com/dr-pushlove-or-how-i-learned-to-stop-worrying-and-love-the-deploy-b820128b74f3">Dr PushLove or: How I Learned to Stop Worrying and Love the Deploy</a> was originally published in <a href="https://tech.olx.com/">OLX Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>