<?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 Vimukthi Perera on Medium]]></title>
        <description><![CDATA[Stories by Vimukthi Perera on Medium]]></description>
        <link>https://medium.com/@vimukthiperera?source=rss-feebab0760a3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*GvfAlG0q4_TZ35MK4IfsFw.jpeg</url>
            <title>Stories by Vimukthi Perera on Medium</title>
            <link>https://medium.com/@vimukthiperera?source=rss-feebab0760a3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 08:01:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vimukthiperera/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[Thirty-Five Seconds]]></title>
            <link>https://medium.com/@vimukthiperera/thirty-five-seconds-f999f4a72dd7?source=rss-feebab0760a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f999f4a72dd7</guid>
            <category><![CDATA[boring-by-design]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[sre]]></category>
            <dc:creator><![CDATA[Vimukthi Perera]]></dc:creator>
            <pubDate>Sat, 04 Jul 2026 09:27:54 GMT</pubDate>
            <atom:updated>2026-07-04T09:27:54.797Z</atom:updated>
            <content:encoded><![CDATA[<h4>Designing for reaction time</h4><p>I’ve watched <em>Sully</em> more than once. The scene everyone remembers is the water landing. The scene I keep coming back to is a quieter one: Captain Sullenberger, in the middle of the investigation hearing, asking the simulation team to add decision making time before the pilots turn back for the runway.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F6Tbkbx4Hz8Q%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D6Tbkbx4Hz8Q&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F6Tbkbx4Hz8Q%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf37a295314e1620c4c8bee0d5d925dc/href">https://medium.com/media/cf37a295314e1620c4c8bee0d5d925dc/href</a></iframe><p>He wasn’t disputing their data. He was pointing at what their data left out: the time it takes a human to understand what just happened before doing anything about it.</p><p><strong>That ask is the whole point of this post.</strong></p><p>There is a reaction time for everything. Every human, every team, every system sits somewhere between a stimulus and a response, and that gap is never zero. Not for the best pilot of his generation. Not for your best on-call engineer. The only question is how long the gap is, and who is paying attention to it.</p><h3>The four minutes</h3><p>On January 15, 2009, US Airways Flight 1549 hit a flock of geese shortly after takeoff from LaGuardia and lost both engines. Barely four minutes later it was in the Hudson River, wings level, everyone alive. From the outside, those four minutes look like pure reflex. A snap decision by a gifted pilot.</p><p>Sullenberger never described it that way. He described it as decades of small, ordinary deposits (training, drills, thousands of flight hours) finally being withdrawn all at once, the moment he needed them.</p><p>He had 19,000+ flight hours, thousands of them in that specific aircraft, and years as a glider pilot on top of that. When both engines failed, he wasn’t starting from zero and reasoning his way to “we can’t make it to any runway.” That conclusion was already sitting in his head, built from years of a very specific kind of pattern-matching (airspeed, altitude, glide ratio, distance to the nearest options) collapsing into a decision almost as fast as he could speak it.</p><p>That’s not raw talent. It’s context, accumulated in advance, so that recognition doesn’t have to be built live under pressure.</p><h3>The simulation that assumed zero</h3><p>Which brings us back to that hearing scene.</p><p>In the film, the investigators run simulations of the exact same bird strike, and the simulator pilots make it back to LaGuardia every single time. On paper, the numbers say the river was a mistake.</p><p>The catch: the simulator pilots know the failure is coming. They bank for the runway the instant the engines die. In other words, the simulations assume a reaction time of zero, and a reaction time of zero does not exist. It has never existed, in any cockpit, in any control room, on any pager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pOeqUz7p59Cxnu-R9DcnOw.png" /></figure><p>Then the decision making time Sullenberger asked for gets added. Thirty-five seconds, the time a real crew needs to recognize the emergency before responding to it. Every simulated return to the runway crashes.</p><p>Sit with that for a second. Thirty-five seconds is what reaction time compresses down to when decades of context sit behind it, and it is still the difference between a runway and a river. It never reaches zero. It only gets shorter. And when the context isn’t there, it stretches.</p><h3>The checklist that assumed altitude</h3><p>There’s a detail in the story that most retellings skip. While Sullenberger flew, his co-pilot Jeff Skiles was working the QRH, the<em> Quick Reference Handbook</em>, running the dual engine failure checklist. He never got to finish it. That checklist was written for a failure at cruise altitude, with tens of thousands of feet of air and time underneath it. They lost both engines below three thousand.</p><p>And the most consequential action of those four minutes wasn’t in sequence at all. Sullenberger started the APU, the backup power unit, within seconds of the bird strike. In the checklist, that step comes much later. Skipping ahead is part of what kept the aircraft’s electronics and flight protections alive all the way to the water.</p><p>It’s tempting to file that under hero material. Experience beats procedure. But that’s exactly the wrong lesson, and it’s not the one the investigation drew either.</p><blockquote><strong>When your most experienced person has to abandon the procedure to save the day, the procedure is the bug.</strong></blockquote><p>The QRH wasn’t wrong. It was optimized for the failure its designers expected instead of the one that arrived, and among the recommendations that came out of the investigation was exactly this: build checklists for engine loss at low altitude too.</p><p>Every SRE team has a version of this.</p><p>Runbooks written for the tidy failure, the one that arrives alone, during business hours, with a clear signal. Then the real one shows up sideways, and the person on-call quietly abandons the document and works from experience. We usually celebrate that. We should be filing it as a defect, because a runbook that only works when the failure is polite adds reaction time exactly when there’s the least of it to spare.</p><h3>What this means on a pager</h3><p>Every incident an SRE will ever handle has the same anatomy as those four minutes: a reaction time, then a response. The fix is usually the short part. Scale a database, roll back a deploy, restart a service. Minutes, often.</p><p>The long part is everything in front of it. Noticing the right signal inside a wall of alerts. Deciding this one is real. Getting the right person online. That person building a mental model: what is failing, for whom, since when, how badly. None of that is the response. All of it is reaction time. And in most incident timelines I’ve seen, it dwarfs the fix by a wide margin.</p><p>Here’s the uncomfortable part: we rarely engineer for it.</p><p>We measure time to resolve, we celebrate fast fixes, and we quietly assume that recognition is instant. That the alert will be seen immediately, understood immediately, escalated immediately. That assumption is the same broken simulation the investigators ran. It models a responder with a reaction time of zero, and then acts surprised when reality adds the seconds back.</p><p>I wrote about this from a different angle after <a href="https://medium.com/@vimukthiperera/the-tigress-behind-the-treeline-630e602b9649">Tadoba: spotting a tigress behind a treeline</a> wasn’t sharper eyesight, it was a mental model built over dozens of prior sightings. Take that model away and drop the same eyes into unfamiliar terrain, and ten minutes go by before anyone even agrees there’s something to look at. Context isn’t a nice-to-have on top of skill. In the moment it matters, it <em>is</em> the skill, and reaction time is where its absence shows up first.</p><h3>Why “more experienced” isn’t the fix</h3><p>It would be easy to conclude the lesson of Flight 1549 is “hire pilots with 19,000+ hours.” It isn’t, because you can’t. Sullenberger’s experience was earned specifically, in that aircraft, under that kind of training, over decades. There is no shortcut to that, and there is no hiring your way to it either.</p><p>What you <em>can</em> do is make sure the context an experienced person carries in their head is also captured somewhere the next person can reach it quickly, so recognition doesn’t depend entirely on one person’s accumulated history.</p><p>That’s the actual job. As SREs, we don’t get to remove reaction time. We get to design for it, attacking every input that inflates it, and the levers are unglamorous:</p><ul><li>Every alert that can fire has a runbook, written for the failure as it actually shows up, not the tidy version of it. If your best engineer keeps abandoning a runbook mid-incident, that’s a defect report, filed by reality.</li><li>Alerts carry enough pre-built context (impact, scope, where to look first) that the responder isn’t assembling it manually under pressure.</li><li>Dashboards and routine checks stay on schedule, especially during reorgs and team changes, because that’s exactly when institutional context is thinnest.</li><li>Alert noise gets treated as a reliability problem in its own right. Every page that turns out to be nothing trains people to react a little slower to the one that isn’t.</li><li>Escalation paths are designed for speed, with clear rules for when to pull the cord immediately instead of triaging alone first.</li><li>Incident drills run during office hours, so the first time someone works through an escalation isn’t during a real emergency. Pilots earn their reaction time in simulators. Drills are ours.</li><li>And we measure the gap itself. Not just time to resolve, but time to recognize. You can’t shrink a number you never look at.</li></ul><p>None of this replaces experience. It’s what lets a less experienced person perform closer to an experienced one, and lets an experienced person spend their four minutes deciding instead of investigating.</p><h3>Closing thought</h3><p>There is a reaction time for everything. Sullenberger’s was 35 seconds, and it took decades of deposits to get it that low. Most of our systems and teams carry one far longer, and nothing about that is laziness or poor judgment. It’s just what reaction time looks like when nobody has been deliberately shrinking it.</p><p>You can’t buy your way to zero. No hire, no tool, no process gets you there, and any plan that assumes instant recognition is running the same broken simulation the investigators did.</p><p>What you can do is treat reaction time as a design problem in its own right: measure it, break it into its parts, and shave every part that isn’t physics.</p><p>Thirty-five seconds was enough to separate a runway from a river. Ask yourself what your team’s thirty-five seconds is.</p><p>That’s the part worth investing in.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f999f4a72dd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Tigress Behind the Treeline]]></title>
            <link>https://medium.com/@vimukthiperera/the-tigress-behind-the-treeline-630e602b9649?source=rss-feebab0760a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/630e602b9649</guid>
            <dc:creator><![CDATA[Vimukthi Perera]]></dc:creator>
            <pubDate>Wed, 13 May 2026 19:20:24 GMT</pubDate>
            <atom:updated>2026-07-04T07:18:34.977Z</atom:updated>
            <content:encoded><![CDATA[<h4>A hidden tigress, production systems, and noticing what others miss</h4><p>I recently visited <a href="https://mytadoba.mahaforest.gov.in/">Tadoba-Andhari Tiger Reserve</a> for the first time.</p><p>If you know me, you know I usually spend my wildlife time in <a href="https://en.wikipedia.org/wiki/Wilpattu_National_Park">Wilpattu</a>. Over the years, I have become used to spotting leopards there, not just by luck, but by learning how to read the environment. I know the shape of a leopard in the shadows, the way it moves, how its coat blends into the dry Wilpattu wilderness, and even the little details like the white belly that can give it away.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-MH6X0nCuzQb8DJZP3sgpA.jpeg" /><figcaption>Chitra (WF50) photographed by me at Wilpattu National Park, Sri Lanka</figcaption></figure><p>But Tadoba was different.</p><p>It was my first time in India, my first time seeing tigers in their own habitat, and my first time trying to understand a completely new jungle.</p><p>The weather was colder, the forest was different, and the animal we were searching for was different too.</p><p>A tiger is not a leopard. The movement is different. The size is very different. The pattern, the color, the way it sits in the landscape, everything changes.</p><p>That is what made the experience memorable.</p><h3>Learning a new environment</h3><p>The trip lasted five days, and we went on multiple safaris through different areas. At the beginning, I did not really know what I was supposed to look for when it came to tigers.</p><p>With leopards, I had years of experience behind me. My eyes and brain already knew what to search for.</p><p>With tigers, I had to learn from scratch.</p><p>Safari by safari, I started picking up patterns. I began to notice how tigers move through the forest, how their striped coats break up their shape, how large they appear compared to leopards, and how differently they sit inside the landscape. Slowly, my eyes adjusted. The forest started making more sense.</p><p>By the last safari, in the <a href="https://tadobajungle.com/Somnath-Gate.aspx">Somnath area</a>, something had changed.<br>I was no longer just looking randomly. I had started to understand what I was seeing.</p><h3>The moment I noticed her</h3><p>During that final safari, we were waiting near a waterhole. We were told that a tiger couple usually visited that spot to drink. There were multiple jeeps around us, and everyone was focused on the treeline across the waterhole.</p><p>Then I noticed movement.</p><p>It was deep in the forest, not clearly visible because of the thick treeline. But something about it stood out to me. It was not obvious. It was not a full view. It was just enough.</p><p>I said to my team, “There is a tiger behind the treeline.&quot;</p><p>Maybe I said it a bit too loudly. Maybe my movement startled her. But she stopped. At that point, she had been walking toward us, but instead, she sat down just inches away from the treeline, almost hidden.</p><p>I kept trying to tell everyone there was a tiger.</p><p>No one saw it.</p><p>Not the team. Not the guide. Not the driver. Not the gate owner who happened to be in our jeep. Not even the fellow photographers around me in other jeeps.</p><p>For a good ten minutes, everyone kept saying, “No, no, there’s nothing there.” One of my friends even jokingly said, “Don’t embarrass us.”</p><p>So I did the only thing I could do.</p><p>I took a photo, zoomed in, and showed them the pattern and the coat.<br>That was when they finally saw it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kFzaqJoAQ0GKok47AkxAYA@2x.jpeg" /><figcaption>Can you spot her? Right in the middle.</figcaption></figure><p>We waited silently after that. And then, after some time, she came out into the open to drink water.</p><p>That was the moment.</p><p>And then came the best part: it turned out to be a new tigress that had never been spotted in Tadoba before.</p><h3>What this reminded me about SRE</h3><p>The entire experience felt strangely familiar to me, because this is also what good SRE work feels like.</p><p>A lot of people think SRE is about reacting when something is obviously broken. But a big part of the job is noticing subtle signals before anyone else sees them clearly.</p><p>That is exactly what happened in Tadoba.</p><p>At first, I was in a new environment. I had experience, but not in that specific terrain. I had to learn what “normal” looked like there. I had to adjust my instincts. I had to observe, fail, learn, and recalibrate.</p><p>That is what happens when working on any system too.</p><p>An experienced engineer may still need time to understand a new domain, a new product, or a new production environment. Skills transfer, but context matters. You cannot assume that what worked in one environment will automatically work in another. You have to learn the signals again.</p><h3>Pattern recognition matters</h3><p>In Tadoba, I did not spot the tigress because I had superhuman eyesight.<br>I spotted her because, over several safaris, my brain had started to build a mental model.</p><p>I had begun to understand the movement. The size. The pattern. The way the stripes blended into the forest. The kind of motion that did not belong to the background.</p><p>In SRE, it is the same.</p><p>You start learning the patterns of a system:</p><ul><li>What normal latency looks like</li><li>How traffic behaves during peak hours</li><li>What a healthy pod lifecycle looks like</li><li>How the database behaves under load</li><li>What kind of alerts are noise, and which ones are early warning signs</li></ul><p>The more time you spend observing, the better you get at noticing when something is slightly off. And often, those weak signals are where the real value is.</p><h3>Sometimes others do not see it yet</h3><p>One part of the experience stood out to me a lot: I saw the tiger, but no one else did.</p><p>For almost ten minutes, everyone kept saying there was nothing there. One of my friends even laughed and said, “Please don’t embarrass us in front of everyone.”</p><p>It was funny, but it also reminded me of something that happens in engineering.</p><p>Sometimes, when you notice an early signal, others may not see it yet. To them, it may look like you are overthinking, being too cautious, or raising an unnecessary alarm.</p><p>You may even get blamed a little at the start. :)</p><p>“Are we sure this is really an issue?”<br> “Isn’t this normal?”<br> “Are we creating noise?”<br> “Do we really need to look into this now?”</p><p>But weak signals are like that. They are not obvious to everyone immediately.</p><p>At that point, intuition alone is not enough. You need evidence. That is why I had to take the photo and zoom in. That is also what we do in SRE.</p><blockquote><strong>We bring graphs. Logs. Traces. Timelines. Data.</strong></blockquote><p>Not to prove that we are right for the sake of being right, but to help others see what we are seeing.</p><p>Good SRE is not about shouting “there is a tiger” and expecting everyone to believe you.</p><p>It is about noticing the movement behind the treeline, collecting the evidence, and helping the team act before a small warning sign turns into a customer-impacting incident.</p><h3>Observability is not just tools</h3><p>People often talk about observability as dashboards, logs, traces, and alerts.<br>But observability is also a human skill.</p><blockquote><strong>It is the ability to notice. To compare. To understand context. To separate background noise from meaningful movement.</strong></blockquote><p>In Tadoba, the treeline was full of noise — branches, shadows, texture, shapes. The tigress was almost invisible unless you knew what to look for.</p><p>Production systems are like that too. There is always noise.</p><p>The real skill is being able to pick out the meaningful signal hidden inside the noise.</p><h3>Experience helps, but adaptation matters more</h3><p>My experience in Wilpattu definitely helped me. It trained me to be patient, detail-oriented, and alert to patterns.</p><p>But it did not directly give me tiger-spotting skills. I still had to adapt.</p><p>That is another lesson that applies directly to SRE.</p><p>Past experience matters, but experience without adaptation can become a blind spot. Every system has its own behavior. Every domain has its own rules. Every environment teaches you different things.</p><p>Good engineers do not just reuse old instincts. They refine them for the new terrain.</p><h3>The tigress behind the treeline</h3><p>That final safari in Tadoba gave me more than a memorable wildlife sighting.</p><p>It reminded me that spotting something important is rarely about luck alone. It takes patience, attention to detail, repeated observation, and the willingness to trust a weak signal long enough to investigate it.</p><p>In the forest, that signal was a faint movement behind the treeline.</p><p>In SRE, it may be a small latency shift, a slow-growing queue, a strange retry pattern, or a log line that does not feel right yet.</p><p>Sometimes the thing everyone is waiting to see is already there. It is just hidden well.</p><p>And finally, this is her. Morani.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bx026_oVc9gtZBqz8WLk5Q@2x.jpeg" /><figcaption>Morani — <a href="https://mytadoba.mahaforest.gov.in/">Tadoba-Andhari Tiger Reserve</a></figcaption></figure><p>The tigress nobody believed was there for nearly ten minutes.</p><p>Sometimes, the most important signal is not the loudest one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=630e602b9649" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Boring by Design: The SRE Mindset]]></title>
            <link>https://medium.com/operational-sympathy/boring-by-design-the-sre-mindset-50da3c3a8540?source=rss-feebab0760a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/50da3c3a8540</guid>
            <category><![CDATA[site-reliability-engineer]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[mindset]]></category>
            <category><![CDATA[discipline]]></category>
            <dc:creator><![CDATA[Vimukthi Perera]]></dc:creator>
            <pubDate>Wed, 06 May 2026 08:47:14 GMT</pubDate>
            <atom:updated>2026-05-06T08:47:14.340Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why reliable systems are built with discipline, not cleverness</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*czWIiY-IWNH3HGO-NzH9Kg.png" /><figcaption>Generated with ChatGPT</figcaption></figure><p>“Boring” often sounds like an insult.</p><p>It can sound like something outdated, uninspired, or lacking ambition. <strong>But in Site Reliability Engineering, boring is often a compliment</strong>.</p><p>A boring production system is not a weak system. It is a system that is predictable, observable, recoverable, and easy to operate under pressure. It is a system where deployments are routine, rollbacks are safe, alerts are meaningful, and incidents do not depend on one person’s memory or heroic intervention.</p><p>That is the heart of the SRE mindset: <strong>make reliability intentional</strong>. Production should not be exciting every day. If it is, something is probably wrong.</p><p><strong>“Boring by Design”</strong> is the idea that reliable systems are not created by adding unnecessary complexity. They are created by understanding the real problem deeply and solving it with the simplest safe design. The goal is not to remove complexity from the business problem. Some domains are naturally complex. The goal is to avoid adding accidental complexity to the engineering solution.</p><h3>Reliability over heroics</h3><p>One of the biggest mindset shifts in SRE is moving away from hero-driven operations.</p><p>In many immature systems, reliability depends on people jumping in during outages, manually fixing issues, restarting services, applying patches, and remembering undocumented steps. This may look heroic from the outside, but it is fragile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BtD3Huzs0oAySpzI_H_LpQ.png" /><figcaption>Generated with ChatGPT</figcaption></figure><p>Heroics are not a reliability strategy.</p><p>A strong SRE culture does not celebrate repeated firefighting. It asks why the fire keeps happening in the first place. The SRE mindset is about preventing fires through design instead of depending on people to fight them every time. That means investing in better deployment safety, automated recovery, meaningful alerts, capacity planning, clear runbooks, and systems that fail in understandable ways.</p><p>A mature SRE does not only ask:</p><blockquote>How do we fix this incident?</blockquote><p>They also ask:</p><blockquote>What conditions allowed this incident to happen?</blockquote><p>That second question is where real reliability improvement begins.</p><h3>Simplicity is an operational advantage</h3><p>Complex systems are harder to debug, harder to explain, and harder to recover.</p><p>Every additional component, custom script, dependency, integration, and special case becomes another possible failure point. During normal working hours, this complexity may feel manageable. During an incident, it becomes risk.</p><p>This is why boring engineering prefers:</p><ul><li>Proven tools over experimental ones</li><li>Simple flows over clever abstractions</li><li>Standard automation over manual steps</li><li>Clear ownership over tribal knowledge</li><li>Predictable failure modes over hidden behavior</li></ul><p>This does not mean SREs should reject new technology. It means new technology should earn its place.</p><p>A new tool, platform, or architecture pattern should solve a real reliability, scalability, security, or operational problem. It should not be introduced only because it looks impressive or because it is popular.</p><p>Production does not care how modern your architecture diagram looks.</p><p>Production cares whether the system can survive failure.</p><h3>Boring is not lazy</h3><p>There is an important distinction here. Boring engineering is not lazy engineering.</p><p>It is not about avoiding improvement. It is not about refusing innovation. It is not about doing the minimum. It is not about staying outdated forever.</p><p>Boring engineering is disciplined engineering.</p><p>It means choosing mature, well-understood solutions when they are enough. It means reducing unnecessary operational risk. It means designing for the person who will be on-call at 2 AM. It means creating systems that others can understand, support, and improve.</p><p>A boring system is not one that lacks engineering depth. Often, it takes deep engineering maturity to make something simple.</p><p>Anyone can add complexity. It takes experience to remove it.</p><h3>Automation by default</h3><p>A boring production system should not require constant manual intervention.</p><p>If a task is frequent, repetitive, and well understood, it should eventually be automated. Automation reduces human error, improves consistency, and gives engineers time to focus on higher-value work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9GxtW3zq3uocYf-Ias0ebA.png" /><figcaption>Generated with ChatGPT</figcaption></figure><p>But automation must be designed carefully. Automating the wrong action can make a bad situation worse.</p><p>This is where <strong>domain knowledge </strong>matters.</p><p>A script can restart a service. But should it? What if the restart causes more traffic to shift to an already overloaded dependency? What if the real problem is a database bottleneck? What if restarting clears useful diagnostic evidence?</p><p>Good SRE automation is not just about removing humans from the loop. It is about automating actions that are safe, tested, observable, and reversible.</p><h3>Eliminating toil</h3><p>Toil is manual, repetitive, automatable work that does not create lasting value.</p><p>It is the kind of work that keeps teams busy without making the system better.</p><p>Examples of toil include manually restarting services, checking dashboards repeatedly, generating the same reports every week, applying the same configuration changes again and again, or responding to noisy alerts that do not require real human judgment.</p><p>SRE teams should actively reduce toil because toil steals time from engineering work that improves reliability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sDvfSWsmWpac0haQ-rmN0g.png" /><figcaption>Generated with ChatGPT</figcaption></figure><p>The goal is not to eliminate all operational work. Some operational work requires judgment and context. The goal is to eliminate repetitive work that should not require human effort every time.</p><p>When toil is reduced, SREs can spend more time on automation, observability, incident prevention, capacity planning, performance improvements, and safer release processes.</p><p>That is how reliability improves over time.</p><h3>Error budgets: balancing speed and stability</h3><p>Boring engineering does not mean “never change anything.”</p><p>A system that never changes may be stable for a while, but it will eventually become irrelevant, insecure, or unable to meet user needs. Change is necessary.</p><p>The real question is:</p><blockquote>How much risk can we safely take?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nsxOfdwgOv9Sd4Lffoxzkg.png" /><figcaption>Generated with ChatGPT</figcaption></figure><p>This is where error budgets are useful.</p><p>An error budget creates a practical balance between reliability and innovation. If the system is meeting its reliability targets, the team has room to ship changes. If the system is unstable and the error budget is being consumed too quickly, the team should slow down and focus on reliability.</p><p>This changes the conversation. Instead of reliability being an emotional argument between engineering and operations, it becomes a measurable product decision.</p><p>SRE makes reliability visible, measurable, and manageable.</p><h3>Measuring what matters</h3><p>SRE is not based on feelings. Reliability must be measured.</p><p>But measuring everything equally can create noise. A system can have hundreds of metrics and still fail to tell the team what users are actually experiencing.</p><p>This is why SRE focuses on signals that matter.</p><h4>The classic four golden signals are:</h4><ul><li><strong>Latency</strong> — how long requests take</li><li><strong>Traffic</strong> — how much demand the system receives</li><li><strong>Errors</strong> — how many requests fail</li><li><strong>Saturation</strong> — how close the system is to its limits</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ez2cHHG_qGi4Z4-xrtw8Ww.png" /><figcaption>Generated with ChatGPT</figcaption></figure><p>These signals help teams understand whether the system is healthy from a user and capacity perspective.</p><p>Good monitoring should answer practical questions:</p><ul><li>Are users affected?</li><li>What changed?</li><li>Which dependency is failing?</li><li>Is the system overloaded?</li><li>Is the failure spreading?</li><li>Do we need to roll back, scale, fail over, or rate limit?</li></ul><p>Monitoring should reduce confusion during incidents. If dashboards create more questions than answers, they need to be improved.</p><h3>Designing for failure</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SAYuLSGJZEz1QJPssQdLxg.png" /><figcaption>Generated with ChatGPT</figcaption></figure><p>Werner Vogels famously said, <strong>“Everything fails, all the time.”</strong></p><p>That is one of the most important ideas in Site Reliability Engineering. A boring system is not a system that never fails. That is unrealistic.</p><p>A boring system is one that fails in expected, controlled, and recoverable ways. The SRE mindset assumes that failure will happen:</p><ul><li>Dependencies will fail</li><li>Deployments will go wrong</li><li>Traffic will spike</li><li>Databases will become bottlenecks</li><li>Certificates will expire</li><li>Networks will behave unpredictably</li><li>People will make mistakes</li><li>Cloud regions may have issues/downtimes</li></ul><p>Designing for failure means building safety around those assumptions.</p><p>This includes practices such as canary releases, gradual rollouts, health checks, circuit breakers, rate limits, backups, failover plans, rollback mechanisms, and disaster recovery testing.</p><p>These practices reduce blast radius. They make failures smaller, easier to detect, and easier to recover from.</p><p>The goal is not to pretend failure can be avoided completely. The goal is to make failure less chaotic.</p><h3>Blameless learning</h3><p>When incidents happen, the goal should not be to find someone to blame.</p><p>The goal should be to understand why the system allowed the failure to happen and how to prevent similar failures in the future.</p><p>Blameless postmortems are important because people are more honest when they are not afraid of punishment. And honesty matters. Hidden mistakes become repeated mistakes.</p><p>A weak postmortem ends with:</p><blockquote>Someone should be more careful next time.</blockquote><p>A strong postmortem asks:</p><blockquote>What can we change in the system so this is less likely to happen again?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZDC7JzK8r6ZdCIU4AOh3Yg.png" /><figcaption>Generated with ChatGPT</figcaption></figure><p>That may lead to better validation, safer defaults, improved automation, clearer alerts, better documentation, stronger ownership, or simpler architecture.</p><p>Blameless does not mean careless. It means accountability is directed toward improving the system, not blaming individuals.</p><p><a href="https://medium.com/operational-sympathy/the-curious-case-of-the-leaking-land-rover-38e28758e6f5">The curious case of the leaking land rover</a> is a very good blog about this by <a href="https://medium.com/u/d32ea2ba6958">Afkham Azeez</a>.</p><h3>Where domain knowledge fits in</h3><p>Boring engineering alone is not enough.</p><p>A manual can explain how an aircraft works and what a pilot should do in different situations. But it is essentially impossible for an untrained person to safely fly a plane using only a manual. Aviation requires muscle memory, spatial awareness, real-time judgment, and sensory processing that text alone cannot provide. A manual can describe the procedure, but it cannot teach the feel of the aircraft or the reflexive coordination needed to manage it safely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Ryvol2Mi3fzKanbZSKGGQ.png" /><figcaption>Generated with ChatGPT</figcaption></figure><p>Engineering is similar.</p><p>A pattern book can tell you to cache, retry, autoscale, shard, or fail over. But it cannot tell you whether that pattern is safe in your specific system without domain understanding.</p><p>A generic solution can still be wrong if it ignores the domain.<br>For example, “add caching” sounds like a simple and boring engineering pattern. In many systems, it is. But in an identity system, caching authentication, authorization, session, or revocation-related data without understanding the domain can create serious security and correctness issues.</p><p>An SRE with domain knowledge will ask:</p><ul><li>Is this safe to cache?</li><li>What should the TTL be?</li><li>What happens when a session is revoked?</li><li>Could stale data create a security issue?</li><li>Does this affect tenant isolation?</li><li>What happens during failover?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y4W9oqG0h2b9BYVT3OZa9g.png" /><figcaption>Generated with ChatGPT</figcaption></figure><p>The same applies to retries.</p><p>“Add retries” is common advice. But uncontrolled retries can amplify load during a degraded state and turn a small failure into a larger outage.</p><p>An SRE with domain knowledge will ask:</p><ul><li>Should this operation be retried?</li><li>Is the operation idempotent?</li><li>What timeout should we use?</li><li>Do we need backoff and jitter?</li><li>Could retries overload the database?</li><li>Should we use a circuit breaker instead?</li></ul><p>This is the real value of combining boring engineering with domain knowledge.</p><p>Boring engineering gives us stable patterns. Domain knowledge tells us how to apply them safely.</p><h3>The 2 AM test</h3><p>A useful way to judge any production design is the 2 AM test:</p><blockquote>If this fails at 2 AM, can the on-call engineer understand it, mitigate it, and recover safely?</blockquote><p>If the answer is no, the design may be too clever, too custom, or too dependent on tribal knowledge.</p><p>This test is simple but powerful. It forces us to think beyond the architecture review and consider the operational reality of the system.</p><p>Can the on-call engineer see what is happening? Can they identify the failing component? Is there a runbook? Are the dashboards useful? Is rollback safe? Are dependencies understood? Is there a known mitigation? Can the system fail partially without taking everything down?</p><p><strong>If not, the system is not boring enough.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zl2vBTM_z3Ps2jz7Mpbn8w.png" /><figcaption>Generated with ChatGPT</figcaption></figure><h3>What good SREs actually optimize for</h3><p>Good SREs are not trying to make systems look impressive.</p><p>They are trying to make systems reliable, understandable, and recoverable.</p><p>That means optimizing for:</p><ul><li>Clarity over Cleverness</li><li>Recovery over Perfection</li><li>Automation over Repetition</li><li>Observability over Assumptions</li><li>Prevention over Heroics</li><li>Simplicity over Unnecessary Abstraction</li><li>Measurable Reliability over Vague Confidence</li></ul><p>This does not make SRE less technical. It makes SRE deeply technical in a practical way.</p><p>The best SREs understand the technology, the architecture, the product, the users, the failure modes, and the business impact. Then they choose the simplest solution that can safely meet the reliability requirement.</p><p>That is not boring because of a lack of imagination.</p><p>It is boring because the system was designed with discipline.</p><h3>Before adding complexity, ask these questions</h3><p>Before introducing a new tool, pattern, service, or architecture layer, it is worth asking:</p><ul><li>What reliability problem does this solve?</li><li>Can we solve it with an existing proven pattern?</li><li>What new failure modes does this introduce?</li><li>Who will operate this during an incident?</li><li>Can we observe it clearly?</li><li>Can we roll it back safely?</li><li>Can the team support it without one specific person?</li><li>Does this reduce more risk than it adds?</li><li>Is the complexity justified by the value?</li></ul><p>If the answer is unclear, the design may need to be simplified.</p><h3>Closing thought…</h3><p>Boring engineering is not the absence of ambition. It is the discipline to spend complexity only where it is truly needed.</p><p>For SREs, boring is not the enemy. Chaos is.</p><p>The best SREs are not the ones who make architecture diagrams look the most impressive. They are the ones who make production uneventful.</p><p>That requires two things:</p><blockquote><strong><em>The humility to choose boring engineering, and the depth to know where boring is not enough.</em></strong></blockquote><p>That is the SRE mindset.</p><p>That is boring by design.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50da3c3a8540" width="1" height="1" alt=""><hr><p><a href="https://medium.com/operational-sympathy/boring-by-design-the-sre-mindset-50da3c3a8540">Boring by Design: The SRE Mindset</a> was originally published in <a href="https://medium.com/operational-sympathy">operational-sympathy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrate Checkov with Azure DevOps Pipelines]]></title>
            <link>https://faun.pub/integrate-checkov-with-azure-devops-pipelines-fff037a2735e?source=rss-feebab0760a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/fff037a2735e</guid>
            <category><![CDATA[iac]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[checkov]]></category>
            <category><![CDATA[azure-devops]]></category>
            <dc:creator><![CDATA[Vimukthi Perera]]></dc:creator>
            <pubDate>Sat, 28 Aug 2021 12:36:01 GMT</pubDate>
            <atom:updated>2021-09-07T17:02:31.234Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*Emi2R_Dso18YJYU3iE0cqw.png" /><figcaption><a href="https://github.com/bridgecrewio/checkov">https://github.com/bridgecrewio/checkov</a></figcaption></figure><p><a href="https://www.checkov.io/">Checkov</a> is an open-source Infrastructure as Code(IaC) scanning tool powered by <a href="https://bridgecrew.io/">Bridgecrew</a>. It supports Azure Resource Manager, AWS CloudFormation, GCP, Terraform, and Kubernetes resources such as Helm and contain a fairly large amount of checks compared to the other IaC scanning tools out there.</p><p>In this blog, I will explain how to integrate Checkov with Azure DevOps Pipelines for static scanning of IaC.</p><h4>Setup</h4><p>It is better to manage the Azure DevOps Pipeline code in the same place where your IaC is. In this blog, we will assume that your code is in GitHub. In the GitHub repository(deployment-iac), create a .azure folder in the root directory to keep your Pipeline code.</p><h4>Configure GitHub Connection</h4><p>You need to create a GitHub user with admin permission to configure the pipelines with access to the deployment-iac repository.</p><h4>Pipeline YAML</h4><p>Add the following Pipeline YAML to the .azure folder. This code is minimal and if you like to improve the Pipeline by adding other features, refer to Azure DevOps Pipeline <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/?view=azure-devops">documentation</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/291431f0a88b188378d6f7b97e5ea3da/href">https://medium.com/media/291431f0a88b188378d6f7b97e5ea3da/href</a></iframe><p>There are a few things to note in the pipeline.yaml.</p><p>Steps mentioned in the yaml would run in order. It will first checkout the repo which has the pipeline.yaml. Then is will checkout the custom-checks repo mentioned under resources. After that, you the script will be executed. It will run from where the repositories are cloned. The relative path to the pipeline yaml would be deployment-iac/.azure/pipeline.yaml.</p><h4>Configure Pipeline — Azure DevOps organisation</h4><ol><li>Log into your Azure DevOps organisation and create a project.</li><li>Select Pipelines from the left menu.</li><li>Click on New pipeline.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Qm6JJi7HGq0z0um8BYIjdQ.png" /></figure><p>4. Choose Github from the options. If the code is not in one of your repositories, but in one of the repositories belong to your organisations, choose Use the classic editor instead of GitHub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8M5vFqmKLcbaYHMl2W_sJg.png" /></figure><p>If you are using the classic editor you need to configure a connection for the pipeline as well. The connection should have admin permission at the configuring stage, and contributor permission after. Configure the connection name in the pipeline.yaml as above. The connection name goes as endpoint in the pipeline yaml.</p><p>5. Choose the deployment-iac repo from the repository list. from the drop down. Configure the default branch to any branch. The pipeline.yaml should exist in all the branches you need your code scanned. In this case, copies of the same pipeline should exist in all dev, stage, and prod branches.</p><p>6. Click on continue and select YAML from the menu and apply.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YOt4pqLdVSMI_kcFa7WDZw.png" /></figure><p>7. Give a name and choose the pipeline.yaml by clicking the three dots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mB5_9Es-cE9Yminv9SkGlA.png" /></figure><p>8. Go to Triggers and under Pull request validation, tick the followings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*UPCx_f07-TW4L6NoQKJhrw.png" /></figure><p>9. Save and queue.</p><p>You are all done.</p><figure><a href="https://faun.to/i9Pt9"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t_MOgMTr_f1N4qHN_R7KVA.png" /></a></figure><p>Join FAUN: <a href="https://faun.to/i9Pt9"><strong>Website</strong></a><strong> </strong>💻<strong>|</strong><a href="https://faun.dev/podcast"><strong>Podcast</strong></a><strong> </strong>🎙️<strong>|</strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong>|</strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong>|</strong><a href="https://instagram.com/fauncommunity/"><strong>Instagram</strong></a><strong> </strong>📷|<a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>🗣️<strong>|</strong><a href="https://www.linkedin.com/company/faundev"><strong>Linkedin Group</strong></a><strong> </strong>💬<strong>|</strong> <a href="https://faun.dev/chat"><strong>Slack</strong></a> 📱<strong>|</strong><a href="https://thechief.io/"><strong>Cloud Native</strong> <strong>News</strong></a><strong> </strong>📰<strong>|</strong><a href="https://linktr.ee/faun.dev/"><strong>More</strong></a><strong>.</strong></p><p><strong>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fff037a2735e" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/integrate-checkov-with-azure-devops-pipelines-fff037a2735e">Integrate Checkov with Azure DevOps Pipelines</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Continuous update delivery to WSO2 products with Ansible]]></title>
            <link>https://medium.com/@vimukthiperera/continuous-update-delivery-to-wso2-products-with-ansible-256d90abf8ff?source=rss-feebab0760a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/256d90abf8ff</guid>
            <category><![CDATA[updates]]></category>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[wso2]]></category>
            <dc:creator><![CDATA[Vimukthi Perera]]></dc:creator>
            <pubDate>Mon, 02 Dec 2019 12:19:15 GMT</pubDate>
            <atom:updated>2019-12-02T12:19:15.751Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OGyyPmooXzZAqYXB" /><figcaption><a href="https://www.ansible.com/">https://www.ansible.com/</a></figcaption></figure><p>This blog is about how you deliver updates to WSO2 products using Ansible.</p><h4>Content</h4><ul><li>A brief introduction to Ansible</li><li>Why you should use Ansible</li><li>Ansible resources for WSO2 products</li><li>The architecture of WSO2 Ansible resource</li><li>In-Place Updates tool.</li></ul><h3>What is Ansible?</h3><p>Ansible is an Open source configuration management and provisioning tool which is similar to Chef, Puppet etc. It can be used in Automation, Intra service orchestration, App deployment, Continuous Delivery so on while ensuring security and reliability. Ansible is appropriate for managing all kinds of environments, i.e. from small setups with a few instances to enterprise environments with thousands of instances. Ansible is a powerful tool and at the same time, it is very simple and easy to use. Ansible can provision from the latest cloud platforms to networks devices and even to bare-metal servers.</p><p>Ansible has more than 1000 modules. These modules can be executed using the playbooks to achieve the end state of a managed host by controlling the services, packages and files in the managed host.</p><p>Unlike Puppet, Ansible has a push-based architecture. That is the Ansible server will connect to the managed nodes and push all the modules to them. As mentioned before, these modules are written to be resource models of the desired state of the system. Ansible then executes these modules (over SSH by default) and removes them when finished.</p><h3>Why Ansible?</h3><p>Let’s move onto why you should use Ansible to manage your environment. As I mentioned in the Ansible introduction, Ansible is easy to use, it has a very low learning curve, and it uses human-readable simple language. To write ansible playbooks, yaml is used.</p><p>It is very easy to set up and use Ansible as it has an Agentless architecture. The only requirement is that the control agent should be able to or rather should be given access to SSH into the managed nodes. You don’t need to install anything on the managed nodes.</p><p>Ansible being a declarative language means that you are writing the code, and you decide what the status of your server should be-after running the code and what the server should not have. The program will decide what to do to achieve the target state of the server and you do not have to worry about it.</p><p>When you define your system using code, it will help you minimize the risk of human errors. With automation, you can eliminate manual work and deploy faster. Using Ansible is way more reliable than configuring your systems manually.</p><p>Also, Ansible helps in automating all the system administration tasks. You can define a playbook that describes the desired end state of your systems, and Ansible takes care of making sure the system meets that desired end state.</p><p>Likewise, huge systems can be governed using an Ansible server with a well-written Ansible playbook.</p><p>You can minimize the cost when expanding your business. Let me explain what that means. Say you have a small business and based on the traffic you only need two api manager gateways in your deployment. If you configure the nodes manually without using a configuration management tool like Ansible, as it is just two nodes, it won’t be a big burden. After a while, your business expands and now you need say 10 API manager gateways. Now you have to scale your infrastructure and also you need a better way of managing the infrastructure as it is not easy to manage 10 nodes manually. The cost of this is pretty high. But if you have used Ansible at the initial stage of your deployment, that is when you are with just two nodes of api manager gateways, it is just a matter of adding a new managed nodes to the deployment and changing Ansible playbook accordingly.</p><h3>Ansible resources for WSO2 products</h3><p>We have Ansible resources for all the WSO2 products which include the WSO2 API Manager, Identity Server, Enterprise Integrator, and Stream processor. All the resources are continuously updated and easy to use. Let’s look into the features of the Ansible resources provided by WSO2.</p><h4>Features</h4><p>WSO2 Ansible modules are written in a way that would make it easier for anyone who uses them to construct a WSO2 recommended product deployment patterns easily. These product patterns could either be a set of profiles or runtime of a certain product or a combination of several product profiles or product runtimes or a combination of both.</p><p>For example, you can use the Ansible playbooks for WSO2 API Manager and create a recommended API Manager deployment pattern which might include:</p><ul><li>Two api manager gateway nodes</li><li>Two traffic manager nodes</li><li>One publisher node</li><li>Two apim-key managers nodes</li><li>One store node</li><li>Two api manager analytics worker node</li></ul><p>Also, you can <strong>use Ansible playbooks</strong> for Identity Server with the Ansible playbooks for API Manager to create a solution recommended by WSO2 which may include:</p><ul><li>Two apim all-in-one nodes</li><li>Two identity servers nodes</li></ul><p>WSO2 Ansible resources are written in a way that it will enforce the best practices recommended by WSO2 and also by Ansible. That means our Ansible contain best practices recommended by Redhat, the recommended system configurations to run a WSO2 product, and best practices recommended by WSO2 when configuring a WSO2 product.</p><p>It is very easy to use these modules as there are documents for everything you need to know about Extending and Customizing Ansible resources. Ansible has a very good set of documentation. But, if you face any blockers or if you have any questions on the Ansible resources provided by WSO2, WSO2 is there to help. You just need to open a support ticket if you have a WSO2 subscription or you can contribute to the Open source resources by creating an issue on Github. Also, you can create a free trial with WSO2 which will be valid for 15 days.</p><p>The most important feature included in WSO2 Ansible resources is continuous update delivery. The In-Place updates tool provided by WSO2 is used to enable this feature.</p><h3>WSO2 In-place Updates tool</h3><p>In-Place Updates tool is the latest addition to the WSO2 update story. The tool is capable of identifying your product, identifying if there are relevant updates(based on the channel you have updated your product previously), downloading them and applying them on top of your <strong>customized</strong> product.</p><p>The tool is capable of merging updates on top of your customized text files such as JSPs, jags <strong>automatically</strong>. If there are any conflicts, the In-Place updates tool will list out the conflicts for you to resolve manually. Please note that conflict is a very rare case. So in case if you come across a conflict, as I mentioned before, you need to resolve it manually and run the in-Place updates tool again. To see whether you have conflicts before running it actually on your product, you can use the dry run feature of the in-place updates tool as well.</p><p>It is also capable of reverting back to your previous state as it generates a backup before every run. You can find all the details about the In-Place updates tool under official WSO2 documentation and I have given the link under resources at the end of this blog.</p><p>Okay!</p><p>Back to Continuously deliver updates through Ansible. The features in the In-Place updates tool is used in the scripts to update the product before it gets shipped to the Ansible managed nodes.</p><h3>Ansible playbook architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/0*q1pBHIQ2ZC_2usk0" /><figcaption>https://wso2.com</figcaption></figure><p>So here, at the bottom, we have the site.yaml which is the Ansible playbook. There you can configure the managed nodes you need to ship your changes. The default Ansible playbook contains all the managed nodes there. But based on your requirements, you can change this for each run.</p><p>On top of that, we have the Ansible roles. Each role defines a product runtime or a product profile. For example, we have apim role, apim-analytics role, apim-gateway role. Etc.</p><p>In each role, we have a set of templates. These are files from the product which are parametrized to apply values based on your environment. Also, we have the set of tasks there, which includes everything needed to be done to achieve the required state of the managed node. There we have a main.yaml and a custom.yaml. The main yaml contains all the profile-specific tasks that are needed to be done. Anything you want to add, you can add to the custom yaml. As I explained before extending and customizing is just a matter of adding your code to the custom.yml</p><p>All the common tasks are in a common role. Creating users and user groups, installing JDK and other common tasks for all the profiles are there.</p><p>On top of roles, you can see the environments. WSO2 Ansible resources only contain the dev environment. There in the group vars, all the variables common to groups can be found. In the hosts_vars, you can find the variables specific to each host. Database configurations come under group vars as they are common to all, but a DNS name of a host comes under the host vars. Savidu will give you more information on that.</p><p>So to manage a new environment, what you need to do is, take a copy of the dev folder, and name it as staging. Change all the parameters which should change based on the environment. Then you can run the same playbook against the staging folder to create an identical environment.</p><h3>Continuous updates</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LMqPK6CGeeg7SBfQ" /><figcaption>https://wso2.com</figcaption></figure><p>This diagram is to give you an understanding of how the updates are shipped to the environments managed by Ansible. As you can see, there are three environments here. Dev, Staging and Production. All the managed nodes are synched with the Ansible server. The update level of all the environments is update level X.</p><p>To update the environments with the latest updates, (that is) update level X+1, what you need to do is run a script provided with the WSO2 Ansible resources. In this script, we use the In-Place updates tool as I mentioned before. By running the script, you can update your product to update level X+1. Then we can apply the configs and we can ship it to the environments as required.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=256d90abf8ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Continuous update delivery to WSO2 products with Puppet]]></title>
            <link>https://medium.com/@vimukthiperera/continuous-update-delivery-to-wso2-products-with-puppet-d3f524a2ee83?source=rss-feebab0760a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3f524a2ee83</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[puppet]]></category>
            <category><![CDATA[updates]]></category>
            <category><![CDATA[wso2]]></category>
            <dc:creator><![CDATA[Vimukthi Perera]]></dc:creator>
            <pubDate>Mon, 30 Sep 2019 16:39:39 GMT</pubDate>
            <atom:updated>2019-09-30T16:39:39.091Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yUjDugEaRd1S3sp3.jpg" /><figcaption><a href="https://puppet.com/">https://puppet.com</a></figcaption></figure><p>This article explains how WSO2 handles continuous update delivery to the environments managed by Puppet with the Puppet modules provided by WSO2.</p><h3>What is Puppet?</h3><p>To those who are not familiar with Puppet, I will give you a brief introduction on <a href="https://puppet.com/">Puppet</a>. Puppet is one of the most commonly used configuration management tools among Chef, Ansible, etc and used in configuring, and managing servers. Puppet is written in Ruby. To create modules, it has its own domain-specific language. The basic version of Puppet, which is called Open Source Puppet, is available through from Puppet’s website. You can just visit the website and download it from there. Puppet also has an enterprise version where you need to pay to use it.</p><p>Puppet has a master agent architecture. Puppet agent is a daemon that runs on the client servers. All the clients who are to be managed should have puppet agent installed on them. Puppet-master should have all the modules in it and it is the centralized place to manage the infrastructure. The connection between the Puppet agent and the puppet master is made in a secure encrypted channel using SSL. Puppet has a pull model architecture. As I mentioned before all the Puppet modules are available in the Puppet master. The agent can select whatever the modules it needs to run to achieve the desired state.</p><h3>Why Puppet?</h3><p>So let’s see why you should use Puppet in your environment.</p><h4>Define infrastructure as code</h4><p>You can easily define your infrastructure as code by using Puppet. That is, using Puppet modules, you can define the packages or tools you want to install, system configurations, create users and user groups with different permission levels and so on.</p><h4>Declarative</h4><p>Puppet being a declarative language means that you are writing the code, and you decide what the status of your server should be after running the code and what the server should not have. The program will decide what to do to achieve the target state of the server and you do not have to worry about it. Pretty cool right?</p><h4>Minimize Human errors</h4><p>When you define your system using code, it will help you minimize the risk of human errors. With automation, you can eliminate manual work and deploy faster. Basically, using Puppet is way more reliable than configuring your systems manually.</p><h4>Manage multiple servers/agents</h4><p>Puppet is capable of managing multiple servers at once. This can either be similar types of instances or different types of instances or a combination of both.</p><h4>Automating system administration tasks</h4><p>You can define a manifest that describes the desired end state of your systems, and Puppet takes care of making sure the system meets that desired end state. If a file is altered or deleted on the Puppet agent, it is replaced with the same copy. If a package is uninstalled somehow, it is re-installed. So the systems administrators can reduce the time spent on such repetitive tasks, ensuring consistent configuration across their infrastructure.</p><h4>Dynamic scaling</h4><p>Puppet helps Dynamic scaling as well. Say you need to increase the number of API Manager gateways in your deployment due to the increase in traffic. What you need to do is, spawn up a new instance and configure Puppet agent in it to run the apim-gateway module. It will work the same as all the other apim-gateway nodes.</p><p>Likewise, huge systems can be governed using a puppet master with a well-written set of puppet modules.</p><h4>Minimize the cost when expanding your business</h4><p>Let me explain what that means. Say you have a small business and based on the traffic you only need two API Manager gateways in your deployment. If you configure the nodes manually without using a configuration management tool like Puppet, as it is just two nodes, it won’t be a big burden. After a while, your business expands and now you need say 10 API manager gateways. Now you have to scale your infrastructure and also you need a better way of managing the infrastructure as it is not easy to manage 10 nodes manually. The cost of this is pretty high. But if you have used Puppet at the initial stage of your deployment, that is when you are with just two nodes of API Manager gateways, it is just a matter of adding a new node or rather multiple nodes to the deployment and configuring Puppet agent accordingly. Puppet will take care of everything else.</p><h3>Puppet resources for WSO2 products</h3><p>WSO2 has Puppet resources for all the WSO2 products which include the WSO2 API Manager, Identity Server, Enterprise Integrator, and Stream processor. When it comes to our solutions, there are puppet resources for Open Banking solution. But as you may know, the Open banking solution is closed source. So the Puppet resources for Open Banking is available on request. All the resources are continuously updated and easy to use. Let’s look into the features of the Puppet resources provided by WSO2.</p><h3>Features</h3><h4>Create recommended product patterns easily</h4><p>WSO2 Puppet modules are written in a way that would make it easier for anyone who uses them to construct a WSO2 recommended product deployment patterns easily. These product patterns could either be a set of profiles or runtime of a certain product or a combination of several product profiles or product runtimes or a combination of both.</p><p>For example, you can use the Puppet modules for WSO2 API Manager and create a recommended API Manager deployment pattern which might include:</p><ul><li>Two API Manager gateway nodes</li><li>Two traffic manager nodes</li><li>Two publisher nodes</li><li>Two API-M key managers nodes</li><li>Two store nodes</li><li>Two API Manager analytics worker nodes</li></ul><p>Also, you can combine Puppet Modules for Identity Server with the Puppet modules for API Manager to create a solution recommended by WSO2 which may include:</p><ul><li>Two API-M all-in-one nodes</li><li>Two Identity Server nodes</li></ul><h4>Enforce best practices</h4><p>That means WSO2 Puppet modules contain best practices recommended by Puppet itself, the recommended system configurations to run a WSO2 product, and best practices recommended by WSO2 when configuring a WSO2 product.</p><h4>Documentation on extending and customizing</h4><p>It is very easy to use these modules as WSO2 has documented everything you need to know about Extending and Customizing Puppet resources. If you are a Puppet 5 user, you may already know that there is a lack of documentation for Puppet 5. You just need to open a support ticket if you have a WSO2 subscription or you can contribute to WSO2’s Open source resources by creating an issue on GitHub. Also, you can create a free trial with WSO2 which will be valid for 15 days.</p><h4>Continuous Update Delivery</h4><p>The most important feature included in WSO2’s Puppet resources is continuous update delivery. The In-Place updates tool provided by WSO2 is used to enable this feature.</p><h3>In-Place Updates tool</h3><p><a href="https://docs.wso2.com/display/updates/Using+WSO2+In-Place+Updates">This tool</a> is capable of identifying your product, identifying if there are relevant updates(based on the channel you have updated your product previously), downloading them and applying them on top of your <strong>customized</strong> product.</p><p>The tool is capable of merging updates on top of your customized text files such as JSPs, jags <strong>automatically</strong>. If there are any conflicts, the In-Place updates tool will list out the conflicts for you to resolve manually. Please note that conflict is a very rare case. So in case if you come across a conflict, as I mentioned before, you need to resolve it manually and run the in-Place updates tool again. To see whether you have conflicts before running it actually on your product, you can use the dry run feature of the in-place updates tool as well.</p><p>It is also capable of reverting to your previous state as it generates a backup before every run. You can find all the details about the In-Place updates tool under <a href="https://docs.wso2.com/display/updates/Using+WSO2+In-Place+Updates">official WSO2 documentation</a>.</p><p>Back to Continuously deliver updates through Puppet. These features in the In-Place updates tool is used in the scripts to update the product before it gets shipped to the Puppet agents.</p><h3>Puppet module architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lG7JVj1ziDa2S8af" /><figcaption><a href="http://wso2.com/">http://wso2.com</a></figcaption></figure><h4>Common module</h4><p>There is a common module which is common to all the WSO2 product profiles or runtimes. Then there are init.pp, params.pp and service.pp. In the init.pp, what happens is:</p><ul><li>Create system users</li><li>Install Java</li><li>Copy or download the product packages</li></ul><p>In the params.pp, there are parameters which include:</p><ul><li>System user information</li><li>JDK information</li><li>Parameters common to all the product profiles or runtimes</li></ul><p>In the services.pp, the product profile or product runtime is started as a service.</p><h4>Profile modules</h4><p>Whatever specific for each product profile or product runtime is under the profile module. There is an init.pp, params.pp and a custom.pp. The params.pp contains:</p><ul><li>Profile specific parameters</li><li>The list of files which are templated (These files contain the configurations you need to do when you run WSO2 products in your environment)</li></ul><p>In the init.pp file:</p><ul><li>Apply the list of templates I mentioned previously.</li><li>If you need to copy certain files like certificates or tools like api manager import-export tool you can add it here.</li><li>Also in case if you need to delete a certain file, the code for that should be here as well.</li></ul><p>As I mentioned at the beginning of this article, you can easily extend and customize the Puppet resources provided by WSO2. To do that, you can use the custom.pp. You can write any custom code specific to your system here.</p><h3>Continuous updates</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ibmyXc9Oy2qsIFRE" /><figcaption><a href="http://wso2.com/">http://wso2.com</a></figcaption></figure><p>This diagram is to give you an understanding of how the updates are shipped to the environments managed by puppet. As you can see, there are three environments here. Dev, Staging, and Production. All the environments are synced with the Puppet master. The update level of all the environments is updated to level X.</p><p>To update the environments with the latest updates, (that is update level X+1), what you need to do is run a script provided with the WSO2 Puppet resources. API Manager script can be found <a href="https://github.com/wso2/puppet-apim/tree/master/scripts">here</a>. You can find the script for each product in a similar location with each Puppet resource provided by WSO2.</p><p>In this script, the In-Place updates tool is used as I mentioned before. By running the script, you can update your product to update level X+1. Then apply the configs and ship it to the environments as required.</p><h3>Resources</h3><ol><li><a href="https://docs.wso2.com/display/updates/Using+WSO2+In-Place+Updates">https://docs.wso2.com/display/updates/Using+WSO2+In-Place+Updates</a></li><li><a href="https://github.com/wso2/puppet-apim">https://github.com/wso2/puppet-apim</a></li><li><a href="https://github.com/wso2/puppet-is">https://github.com/wso2/puppet-is</a></li><li><a href="https://github.com/wso2/puppet-ei">https://github.com/wso2/puppet-ei</a></li><li><a href="https://github.com/wso2/puppet-sp">https://github.com/wso2/puppet-sp</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3f524a2ee83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to creating a BOSH release for a PCF tile — part I]]></title>
            <link>https://medium.com/@vimukthiperera/introduction-to-creating-a-bosh-release-for-a-pcf-tile-part-i-4707e14c098d?source=rss-feebab0760a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/4707e14c098d</guid>
            <category><![CDATA[pcf]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[bosh]]></category>
            <dc:creator><![CDATA[Vimukthi Perera]]></dc:creator>
            <pubDate>Mon, 15 Jul 2019 19:27:23 GMT</pubDate>
            <atom:updated>2019-07-15T19:27:23.132Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to creating a BOSH release for a PCF tile — part I</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OAjwos_6dNnhSxHo.png" /><figcaption><a href="https://bosh.io/docs/">https://bosh.io/docs/</a></figcaption></figure><p>The process of setting up deployment is not an easy and straight forward task when it comes to creating a PCF tile with a BOSH release. You have to have a very clear idea on your final setup and how the communication between those VMs should be handled. Also, when creating the BOSH release, you need to obtain details about other clusters, nodes, routers, etc. This blog is all about how to retrieve such details.</p><h3>Structure of the BOSH release</h3><p>Here is the structure of <a href="https://github.com/wso2/pivotal-cf-is">WSO2 Identity Server BOSH release</a> for PCF.</p><pre>.<br>├── config<br>│   ├── blobs.yml<br>│   └── final.yml<br>├── deployment<br>│   └── bosh-deployment<br>├── dist<br>├── jobs<br>│   ├── health_check<br>│   ├── nfs_server<br>│   └── wso2is<br>├── packages<br>│   ├── common<br>│   ├── jdbcdrivers<br>│   ├── openjdk<br>│   └── wso2is<br>└── src<br>    └── common</pre><p>The above BOSH release will be wrapped using the metadata in the tile.yml to create a Tile which you can deploy in a PCF Ops Manager.</p><p>As you can see, the BOSH release contains three jobs. Structure of a job is as follows.</p><pre>.<br>├── monit<br>├── spec<br>└── templates<br>    ├── ctl.erb<br>    └── ...</pre><h3>How to get the local IP</h3><p>This is pretty straight forward. Wherever you need the IP address of the node/VM, you need to add <strong>&lt;%= spec.ip %&gt; </strong>as follows.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f9d76d53f99750ab272d61b52666e8ef/href">https://medium.com/media/f9d76d53f99750ab272d61b52666e8ef/href</a></iframe><p>This will retrieve the IP address of the current VM at the runtime and apply it as the <strong>localMemberHost </strong>as follows.</p><pre>&lt;parameter name=&quot;localMemberHost&quot;&gt;192.168.28.28&lt;/parameter&gt;</pre><h3>Get all the IPs of the members in the cluster</h3><p>Now, this needs a loop as there can be an unknown number of members in the cluster.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b299495a607752d72756d5a194cee4d2/href">https://medium.com/media/b299495a607752d72756d5a194cee4d2/href</a></iframe><p>In the spec of this particular job, you need to produce and consume the same link as follows.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb813e7e09f8bffeb7ce57386c6829cc/href">https://medium.com/media/bb813e7e09f8bffeb7ce57386c6829cc/href</a></iframe><p>This will generate multiple <strong>&lt;member&gt; </strong>tags inside of <strong>&lt;members&gt; </strong>in the <strong>members.xml</strong> for each of the IP address in the set of instances <strong>peers</strong>.</p><h3>Consume another type of cluster through the route_registrar</h3><p>This is also easy work. You just need to provide the cluster1 from cluster1 job spec and consume it from the cluster2 job spec.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4bd819e92dae85dbcd8330eaeaac5cc6/href">https://medium.com/media/4bd819e92dae85dbcd8330eaeaac5cc6/href</a></iframe><p>In the above example, cluster1 is consumed by cluster2 while cluster2 is consumed by cluster1. In the tile.yml, you need to add the port where the LB should forward the request to as follows.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e764cfdf8bc01af8b8482bde574fc81/href">https://medium.com/media/9e764cfdf8bc01af8b8482bde574fc81/href</a></iframe><p>In the template, you can use it as follows.</p><pre>&lt;%= link(&quot;cluster1&quot;).p(&#39;route_registrar.routes&#39;)[0][&#39;uris&#39;][0] %&gt;</pre><p>There can be multiple entries under <strong>route_registrar.routes </strong>and also there can be multiple <strong>uris</strong> as well. Above example is referring to the first <strong>uri</strong> of the first <strong>route</strong> under the <strong>route_registrar</strong> property.</p><pre>cluster1.your.domain.com</pre><p>You do not need to worry about the order of deploying when you deploy on PCF Ops Manager. Ops Manager will handle it for you. :)</p><p>I will talk about handling runtime variables, health checks and some other details in the next blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4707e14c098d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WSO2 API Management solution is live on PivNet!!!]]></title>
            <link>https://medium.com/@vimukthiperera/wso2-api-management-solution-is-live-on-pivnet-dcb03ea85bd6?source=rss-feebab0760a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcb03ea85bd6</guid>
            <category><![CDATA[api-management]]></category>
            <category><![CDATA[wso2]]></category>
            <category><![CDATA[wso2-api-manager]]></category>
            <category><![CDATA[pivotal]]></category>
            <dc:creator><![CDATA[Vimukthi Perera]]></dc:creator>
            <pubDate>Fri, 28 Jun 2019 18:47:35 GMT</pubDate>
            <atom:updated>2019-06-28T18:47:35.026Z</atom:updated>
            <content:encoded><![CDATA[<p>In <a href="https://medium.com/@vimukthiperera/pivotal-cloud-foundry-resources-for-wso2-api-manager-2-6-0-1723d5306e3d">one of my previous articles</a>, I wrote about how to create your own WSO2 API Manager tile to deploy on your Ops Manager using <a href="https://github.com/wso2/pivotal-cf-apim">the BOSH release and the other resources</a> provided by WSO2 on GitHub.</p><p>Now the burden is over! WSO2 API Manager solution is officially available on <a href="https://network.pivotal.io/">Pivotal Network</a>. 🥳 🥳</p><h3>Deploy WSO2 APIM Solution on your Ops Manager</h3><p>Now the process is very simple and straight forward if you already have your Ops Manager setup. If you haven’t set up your Ops Manager yet, <a href="https://savidude.com/blog/programming/simple-guide-to-setting-up-pivotal-cloud-foundry-on-aws">here</a> is a good article on how to set it up on AWS. To deploy WSO2 API Manager tile you need the newest version of the Ops manager. i.e <strong>Ops Manager version 2.5.0 or higher</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*jIOaygRc1yZDWZbOnHLMdQ.png" /><figcaption>buWSO2 API Manager on PivNet</figcaption></figure><h4>Download the tile</h4><p>You can download the WSO2 API Manager tile from <a href="https://network.pivotal.io/products/wso2-api-manager">here</a>. You need to create an account on PivNet to download the tiles.</p><h4>Upload the tile to your Ops Manager</h4><p>Click on Import a Product button in the top-left corner of the Ops Manager and upload the tile. The tile has a dependency on a Ubuntu Stemcell. You have to download the stemcell from <a href="https://network.pivotal.io/products/stemcells-ubuntu-xenial">here</a> and upload it under the STEMCELL LIBRARY tab in the Ops Manager.</p><h4>Create Databases</h4><p>WSO2 API Manager deployment requires multiple databases. As long as your databases are accessible from your Ops Manager, location/type of your databases is irrelevant. It could either be an Amazon RDS or you can install <a href="https://network.pivotal.io/products/pivotal-mysql"><strong>MySQL for Pivotal Cloud Foundry</strong></a> tile in your Ops Manager and create instances. WSO2 API-M tile supports both MySQL and MS SQL databases.</p><p>If you are using a MySQL database, make sure that the character set of the database is set to latin1. You can check it by using the following commands.</p><pre>mysql&gt; use database &lt;DB_NAME&gt;;<br>show variables like &quot;%character%&quot;;<br>show variables like &quot;%collation%&quot;;</pre><p>You can use the following command to change the character set to latin1.</p><pre>ALTER DATABASE &lt;DB_NAME&gt; CHARACTER SET latin1 COLLATE latin1_general_ci;</pre><p>Use the database <a href="https://github.com/wso2/pivotal-cf-apim/tree/master/pattern-2/bosh-release/dbscripts">scripts</a> in the GitHub repo to create the databases.</p><h4>Configure the tile</h4><p>Configuring the WSO2 API-M tile is easy. Follow the <a href="https://docs.pivotal.io/partners/wso2-api-manager/installing.html">documentation</a> provided by PivNet and it is straightforward.</p><p>When it comes to Database configuration page instructions, make sure to <strong>exclude</strong> &amp;amp in all three analytics database JDBC URLs. The reason for this is all the other DB configurations are consumed by XML files in the BOSH release, but all the Analytics configurations are consumed by the yaml files.</p><p>Finally, you’ll be asked to enter a License key. This is because WSO2 API-M tile for PCF contains the latest updates. You can easily obtain a License key by creating a <a href="https://wso2.com/subscription/free-trial">free trial</a> and then <a href="https://wso2.com/contact/">contacting</a> your Account Manager.</p><h4>Deploy API Manager</h4><p>You are all set now.</p><p>Click the REVIEW PENDING CHANGES button in the top-right corner of your Ops Manager, select WSO2 API-M tile and then deploy! Now you have WSO2 API Manager running on your Pivotal Infrastructure.</p><p>Have fun! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcb03ea85bd6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Manage MySQL DB service in PCF environment using CF CLI]]></title>
            <link>https://medium.com/@vimukthiperera/manage-mysql-db-service-in-pcf-environment-using-cf-cli-24cada694d25?source=rss-feebab0760a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/24cada694d25</guid>
            <category><![CDATA[cloud-foundry]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[services]]></category>
            <dc:creator><![CDATA[Vimukthi Perera]]></dc:creator>
            <pubDate>Mon, 08 Apr 2019 09:53:48 GMT</pubDate>
            <atom:updated>2019-04-08T09:53:48.733Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mZ737LpoAfzjww3d.png" /><figcaption><a href="https://docs.cloudfoundry.org/">https://docs.cloudfoundry.org/</a></figcaption></figure><h3>Installing and Configuring MySQL for PCF</h3><p><a href="https://www.savidude.com/blog/programming/setting-up-wso2-api-manager-on-pivotal-cloud-foundry-with-mysql">This</a> blog explains how to set up the WSO2 API Manager on Pivotal Cloud Foundry with MySQL. There you can find how to install and configure MySQL for PCF. After the configuration is finished, you need to create the DB services and manage them.</p><h3>Create service</h3><ul><li>Log in to your Pivotal cloud</li></ul><pre>cf login --skip-ssl-validation -a api.sys.test.com -u username -p password</pre><p>Using --skip-ssl-validation is not recommended as it might cause security problems.</p><ul><li>Create service</li></ul><pre>cf create-service p.mysql db-medium test-db</pre><p>There are several options like `db-small` and `db-medium`. You have to select according to your requirements. Once the creation started, you can check the status by using the following command.</p><pre>cf service test-db</pre><p>When the creation is succeeded, you can create the service keys as follows.</p><ul><li>Create service key</li></ul><pre>cf create-service-key test-db test-db-key</pre><ul><li>View service key information</li></ul><pre>cf service-key test-db test-db-key</pre><h3>Delete service</h3><ul><li>Log in to your Pivotal cloud</li></ul><pre>cf login --skip-ssl-validation -a api.sys.test.com -u username -p password</pre><p>Using --skip-ssl-validation is not recommended as it might cause security problems.</p><ul><li>Delete service key</li></ul><pre>cf delete-service-key test-db test-db-key</pre><ul><li>Delete service</li></ul><pre>cf delete-service test-db</pre><ul><li>Check the operation status</li></ul><pre>watch cf service test-db</pre><p>Check the status until delete in progress finishes.</p><h3>List the services</h3><p>Get the list of existing services that are available in the current space by running the following command.</p><pre>cf services</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24cada694d25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pivotal Cloud Foundry resources for WSO2 API Manager 2.6.0]]></title>
            <link>https://medium.com/@vimukthiperera/pivotal-cloud-foundry-resources-for-wso2-api-manager-2-6-0-1723d5306e3d?source=rss-feebab0760a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/1723d5306e3d</guid>
            <category><![CDATA[pivotal]]></category>
            <category><![CDATA[wso2]]></category>
            <category><![CDATA[pivotal-cloud-foundry]]></category>
            <category><![CDATA[pcf]]></category>
            <category><![CDATA[api-management]]></category>
            <dc:creator><![CDATA[Vimukthi Perera]]></dc:creator>
            <pubDate>Tue, 12 Feb 2019 13:57:52 GMT</pubDate>
            <atom:updated>2019-02-14T06:39:17.788Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://wso2.com/api-management/">WSO2 API Manager</a> installation options now provide the support for <a href="https://pivotal.io/platform">Pivotal Cloud Foundry</a>(PCF) platform. I’m going to walk you through the steps of deploying WSO2 API Manager on PCF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*V_h0buCDSvgc_oQl-vpaDw.png" /><figcaption><a href="https://pivotal.io/platform">https://pivotal.io/platform</a></figcaption></figure><p><strong><em>Prerequisites</em></strong>:</p><ul><li>A pre-configured Pivotal environment: If you do not have a pivotal environment and you need to create one, <a href="https://savidude.com/blog/programming/simple-guide-to-setting-up-pivotal-cloud-foundry-on-aws">here</a> is a good article to follow. Also, you can refer to the docs provided by Pivotal.</li><li>A database to point the DBs required: This DB should contain the tables you need to run WSO2 API Manager. You can find the DB scripts inside &lt;APIM_HOME&gt;/dbscripts/ directory.</li><li><a href="https://bosh.io/docs/">BOSH</a> CLI installed.</li><li>Tile Generator CLI installed.</li></ul><h3>1. Create the BOSH release</h3><p>First, we need to create the deployment using BOSH. You can clone the GitHub repository provided by WSO2 for reference.</p><pre>git clone <a href="https://github.com/wso2/pivotal-cf-apim.git">https://github.com/wso2/pivotal-cf-apim.git</a></pre><p>For the moment, these resources support API Manager pattern-1 and pattern-2. Let’s choose pattern-2 for the moment as it is a bit complicated than pattern-1 :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*vJGWKoYbw0DIow5R" /><figcaption>WSO2 API Manager pattern-2</figcaption></figure><pre>cd pivotal-cf-apim/pattern-2</pre><p>Inside<em> pattern-2</em> directory, you will see two directories.</p><pre>bosh-deployment<br>tile</pre><p>If you navigate to <em>bosh-deployment</em>, you can see all the resources needed to deploy API Manager pattern-2 on PCF. All the configurations are set to deploy pattern-2 on PCF.</p><p>To deploy pattern-2, you need to add the following files to the <em>dist</em> folder in the root of the <em>bosh-deployment</em> directory.</p><pre>mssql-jdbc-7.0.0.jre8.jar<br>mysql-connector-java-5.1.45-bin.jar<br>OpenJDK8U-jdk_x64_linux_hotspot_8u192b12.tar.gz<br>wso2am-2.6.0.zip<br>wso2am-analytics-2.6.0.zip<br>wso2is-km-5.7.0.zip</pre><p>You might wonder why we need to add both MySQL and MSSQL JDBC drivers to the <em>dist</em> folder. This is to add flexibility to the deployment. We cannot change the tile once it is created, as the tile is immutable. But we can give options to switch between different databases.</p><p>The same reason applies to wso2is-km too. For API Manager pattern-2 WSO2 has defined the default key manager which comes with the API Manager product. But if a user needs to use WSO2 Identity Server as Key Manager, you can define it in the tile.yml in <em>tile</em> directory as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*kHhVumsBA0UTEmPiI8f7PQ.png" /><figcaption>tile.yml</figcaption></figure><p>Also, if you need to remove any of the files, you can do it by changing the BOSH deployments as required.</p><p>Now we need to create the BOSH release. To do that, WSO2 has provided two scripts with the deployment. First, you need to run the <strong>create.sh</strong> script.</p><pre>./create.sh</pre><p>Then run the <strong>export.sh</strong> script.</p><pre>./export.sh</pre><p>This will create the bosh-release in the root of the <em>bosh-deployment </em>directory as <strong>wso2am-2.6.0-bosh-release.tgz</strong></p><h3>2. Build the tile with the BOSH release</h3><p>Now you need to add <strong>routing-release</strong> provided by PCF to the root folder of the <em>tile</em> directory as well. You can download the tarball from <a href="https://github.com/cloudfoundry/routing-release/releases/tag/0.178.0">here</a>. This routing-release delivers HTTP and TCP routing for Cloud Foundry.</p><p>Then run the <strong>build.sh </strong>script to build the tile.</p><pre>./build.sh</pre><p>Then a tile with the name <strong>wso2apim-tile-0.0.1.pivotal</strong> will be created inside the root of the <em>product</em> folder under the <em>tile-generator</em> directory.</p><h3>3. Deploy WSO2 API Manager pattern-2 on PCF</h3><p>Login to PCF Ops Manager and upload the tile you created using <strong><em>import product </em></strong>option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*EfTimyxQ75M67wVSIH6aOw.png" /><figcaption>Import the tile</figcaption></figure><p>After you upload the tile, add the tile to the PCF environment by clicking the <strong>+ </strong>next to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*2vvR0GHl938gjl7jyBwjTA.png" /><figcaption>Add the tile</figcaption></figure><p>Once added, click on the tile to add database configurations and other settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*y9iBD7bKrsK07U4Py3i0UQ.png" /></figure><p>After configuring, go back to PCF Ops Manager to apply changes. Click on the REVIEW PENDING CHANGES button to view the changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RUFeu-pRq-mfDQaldjL96g.png" /></figure><p>Then tick against WSO2 API Manager 2.6.0 as follows and click to apply changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zUfiIdn7BWAv9XIYy7ieEw.png" /></figure><p>Once the changes are applied, you can access the management console, publisher, store by using the following URLs. Here, you need to replace domain_name with your domain name.</p><pre>https://wso2apim.sys.&lt;domain_name&gt;/carbon/<br>https://wso2apim.sys.&lt;domain_name&gt;/publisher/<br>https://wso2apim.sys.&lt;domain_name&gt;/store/</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1723d5306e3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>