<?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[OpenGov TechBlog - Medium]]></title>
        <description><![CDATA[Learn more about how OpenGov’s R&amp;D team architects, builds, and operates The OpenGov Cloud™. - Medium]]></description>
        <link>https://medium.com/opengov-techblog?source=rss----b3a5bc0f8fbc---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>OpenGov TechBlog - Medium</title>
            <link>https://medium.com/opengov-techblog?source=rss----b3a5bc0f8fbc---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 00:50:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/opengov-techblog" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[OpenGov Test Army: Taking Quality Engineering Beyond R&D | OpenGov]]></title>
            <link>https://medium.com/opengov-techblog/opengov-test-army-taking-quality-engineering-beyond-r-d-opengov-77f612df3317?source=rss----b3a5bc0f8fbc---4</link>
            <guid isPermaLink="false">https://medium.com/p/77f612df3317</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[bugs]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[quality-engineering]]></category>
            <dc:creator><![CDATA[Pushkala Pattabhiraman]]></dc:creator>
            <pubDate>Mon, 06 Jan 2020 18:53:02 GMT</pubDate>
            <atom:updated>2020-01-06T18:57:27.783Z</atom:updated>
            <content:encoded><![CDATA[<h3>OpenGov Test Army: Taking Quality Engineering Beyond R&amp;D</h3><p>The process of bug bash is a very common software testing practice where stakeholders get together to test and ensure the product meets the requirements. At OpenGov Inc, we do a bug-bash with small subset of users for every release. We found an opportunity to tune this popular process to better suit our quality engineering needs. If you answered — yes to any of the questions listed in the illustration below, you will find this blog useful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KJzTmyDZ4qc3C8qz.png" /></figure><p>In Q3 of 2019, we decided to improvise our bug bash approach. Given the number of rich set of features scheduled to be released, we recognized the need for a structured, large-scale, organized and systematic bug bash. To achieve this, we rolled out an an initiative called “ <strong>OpenGov</strong>- <strong>Test Army</strong> “ and invited OpenGov employees from various groups to participate in testing these new features. This process did not replace or minimize our standard quality engineering practices. This initiative complemented our existing software test pyramid. A corollary benefit that we wanted to achieve with this was to organically train our “front line staff”, such as in tech support, customer success, and sales, on the new features and functionality.</p><p>To align on this process, we introduced a few new terms:</p><p><strong>Test Army</strong>: Volunteers from various departments in the company who choose to be involved in this initiative.</p><p><strong>Squad</strong>: The test army volunteers naturally fall into groups based on their areas of expertise. Each of these groups forms a squad.</p><p><strong>Swarm: </strong>Everyone in a squad focuses on testing the same feature-set at the same time on the same test environment-working towards the common goal of ensuring a better customer experience. This process of collective testing is called swarming. The action performed by a squad is called “ <em>swarm</em> “.</p><p><strong>Wave</strong>: Collective representation of all the processes involved in organizing swarms is called a “ <em>wave</em>”. One <em>wave</em> of the test army could involve more than one squad swarming.</p><p><strong>Squad Owners</strong>: Usually the first line of support for the test army participants. Product managers, quality leads, and tech leads are prime candidates to be designated as squad owners. Squad owners should possess a clear understanding of the squad’s features, and hence, they are expected to help with questions that might arise during swarming.</p><p><strong>Swarm Document</strong>: A document used for collaborating with each other during swarming. This document is used extensively during post wave assessment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jHg6oJqUrBF3q8mv.png" /></figure><p>We were successful in planning and executing 5 <em>waves</em> (one swarm/week). We used the following template to capture all of the information. Since we were able to provide visibility into all planned waves ahead of time, participants were able to register for specific waves. We published two checklists-one for regression and another for new features that were being swarmed. These checklists were intended to provide a head start to our participants so that they could get a productive head start to this process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*D_jkhp9Ck29EEP5W.png" /></figure><p>The results of this initiative have been very impactful. We uncovered a number of bugs in each wave that were fixed before release.</p><p>We also generated a number of knowledge base articles to empower our customer facing teams. Engineering and customer-facing team collaboration has become the organic new norm. Teams are naturally communicating with each other in all roles.</p><p>This collaboration across the organizations continues to feed into OpenGov’s # <strong>CustomerFirst</strong> and # <strong>OneTeam</strong> culture.</p><p>If you would like to read more from OpenGov’s engineering team, read the rest of our <a href="https://opengov.com/article/category/technology/">Technology blog posts.</a></p><p>Interested in contributing to OpenGov’s Engineering culture of innovation, leading-edge technology adoption, and quality? Check out our <a href="https://opengov.com/careers/">current job openings</a>.</p><p><em>Originally published at </em><a href="https://opengov.com/article/opengov-test-army-taking-quality-engineering-beyond-research-and-development"><em>https://opengov.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77f612df3317" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opengov-techblog/opengov-test-army-taking-quality-engineering-beyond-r-d-opengov-77f612df3317">OpenGov Test Army: Taking Quality Engineering Beyond R&amp;D | OpenGov</a> was originally published in <a href="https://medium.com/opengov-techblog">OpenGov TechBlog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Monitoring, Alerting, and Notification Blueprint for SaaS Applications]]></title>
            <link>https://medium.com/opengov-techblog/a-monitoring-alerting-and-notification-blueprint-for-saas-applications-opengov-2729eca1f13f?source=rss----b3a5bc0f8fbc---4</link>
            <guid isPermaLink="false">https://medium.com/p/2729eca1f13f</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[engineering-technology]]></category>
            <category><![CDATA[infrastructure-management]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[Ashwani Wason]]></dc:creator>
            <pubDate>Fri, 13 Dec 2019 21:13:35 GMT</pubDate>
            <atom:updated>2020-01-06T18:59:47.782Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vL-qvA2t-rSrjc1G.jpg" /></figure><p>Monitoring, Alerting, and Notification play a key role in the work-life of any engineer who is focused on operating a SaaS application or a service that makes up a SaaS application or the SaaS infrastructure itself. With the hope that you might find it useful as you think about developing or enhancing the monitoring, alerting, and notification suite for your own SaaS platform, in this article I’d like to share a blueprint that is informed by the work that we have done for OpenGov Cloud Platform. And, just in case you are not already aware of it, do take a look at <a href="https://landing.google.com/sre/sre-book/toc/">Google’s SRE Book</a>, which was influential in our thinking on this.</p><p>At the risk of stating the obvious, the decisions that you make in selecting the tools or services for building the suite are your own. It is not the purpose of this article to advocate the use of a tool or a service or a vendor over another. Also, you need not build your strategy along each and every vector that I share below. Start according to the needs of your business and slowly but surely keep adding to it as those needs mature.</p><h3>The Basics</h3><p><strong>Monitoring</strong> is the process of collecting, processing, and displaying, (a) real-time quantitative data about a system, such as request rates and query processing times, or (b) event notifications, such as for failover in a redundant pair, an application or system restart, or © security events like those received from intrusion detection systems or discovery of a vulnerable component. Monitoring enables a system to tell us when it’s broken or, in a perfect world, tell us what’s about to break.</p><p><strong>Alerting</strong> is the process of informing human developers/operators through systems such as email, chat, ticketing, or paging. If the failure isn’t self-correcting, those humans would have corrected the problem before the customers/users are impacted. It is worth pointing out that alerting does not necessarily imply “waking humans up”. Certain alerts, such as for self-correcting events or “warnings” may be used to raise awareness, lest they should become pathological for the system. As the system’s resilience improves through the use of automated healing and resolution (a common example is automated horizontal scaling), the human impact of self-correcting events becomes less consequential. You may want to consider suppressing alerts which are not immediately actionable to keep the signal-to-noise ratio high, enhance developer experience by reducing distractions, and to minimize anti-pattern behavior (tendency to ignore what may be perceived as unactionable noise).</p><p><strong>Notification</strong> is targeted towards your human stakeholders-your customers/end-users and your business partners in customer support, customer success staff, execs, and even sales engineers (their demos might be impacted!) about critical issues that might be actively affecting them or, in some cases, might’ve affected them. The Notification framework that I present below can also be used to notify your stakeholders about ongoing or scheduled restorative and maintenance events.</p><p>The infographic below wraps up the concepts discussed thus far.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8XMscB0VDEZehJk-.png" /></figure><p>A thought that might cross your mind from the infographic above is if there really needs to be a human element between Alerting and Notification. Generally speaking, stakeholder notification can be automated but it is important to keep in mind that our stakeholders are, after all, humans and would value actionable notifications that are meaningful (e.g., impact assessment, workaround, mitigation plans) more than cursory automated notifications that are simply informational. Actionable notifications are not that easy to automate. Further, there is a case to be made that in difficult times your stakeholders would want to see that humans are involved and in control, and not automated systems. That being said, it might be worth automating cursory informational notifications as a placeholder for a better developer/operator experience, but do a fast follow with the human touch.</p><h3>Monitoring</h3><p>At OpenGov we think of Monitoring using three methods: Black Box, Gray Box, and White Box.</p><p><strong>Black Box Monitoring</strong> is built using system primitives that are fairly basic and do not require exposure to system internals in any way. A typical example of such a primitive is health-check probes, e.g. those used by network load balancers, such as <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/network/target-group-health-checks.html">this</a> or Kubernetes’ <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/">liveness and readiness probes</a>. Another example is service <a href="https://microservices.io/patterns/observability/health-check-api.html">health-check API</a>.</p><ul><li>Technically this may be used at any level (application, services that constitute the application, or even processes that constitute the service), but first, apply this at the application level.</li><li>When implemented properly (e.g., covering the full-path of core business logic) at the application level, black box API testing can also serve as a good indicator of your application’s uptime (or, what I like to call as AoS, Availability of Service), which you will find useful from SLA reporting perspectives as well-just remember to temporarily disable the monitors during planned maintenance windows that could impact the uptime of your service.</li></ul><p><strong>Gray Box Monitoring</strong> goes a layer deeper by mimicking or replaying actions of a typical user or another system. A typical example of such a primitive is automated browser tests. Almost certainly you will apply this at the application level.</p><ul><li>Gray box tests can be made fairly rich and can serve as excellent (albeit rather heavyweight) alternative to full-path black box API tests, especially because they can be used to measure QoS (Quality of Service) just as well as AoS.</li><li>Such tests can cover many user operations-both read-only and read-write, thereby covering a broad spectrum of business logic for complex applications.</li><li>Read-only operations may be performed on actual customer instances or entities, which is helpful if the test needs to cover something that is inherently customer-specific. (OpenGov has had to use it for our “Public Transparency” application in one case where the dashboard was customized with a specific image that is associated with the tenure of a governing official.)</li><li>A QoS scenario for read-only operations is where the customer data is “complex” such that it may lead to an unacceptable amount of time in the loading of certain elements on a page.</li><li>You would almost never want to perform a read-write operation on actual customer instances-even with the optimistic expectation of a successful attempt to roll back the change. Use a demo instance or entity for such operations. (In a multi-tenant SaaS application the demo instance would be served identically to a customer instance, so you would get the signal that you are looking for.) There is an inherent risk in any read-write operation, but think “rinse and repeat”-it is a good practice to roll back your change with a complementary operation so your instance/entity and its data are ready for the next iteration of this test or another unrelated test.</li></ul><p><strong>White Box Monitoring</strong> is based on metrics and state variables that are exposed by the internals of the system. Technically this may be used at any level, but you will find this best applied at the level of underlying processes.</p><ul><li>The key vectors for white box monitoring that you would want to plan out are: logging, operational statistics/metrics (e.g., request rate, CPU/RAM utilization), performance statistics/metrics (think APM), automatic error/exception reporting, and security events (discovered vulnerabilities or low level events from intrusion detection systems).</li><li>This is arguably the broadest and the most impactful of all methods, and, as with most things white box, will take the most time to get right. You want to plan this one out well as it will be a big investment of your resources and time.</li></ul><p>Next, let’s talk a bit about some of the tools and services that can be used to realize the Monitoring methods discussed above. Again, this isn’t an endorsement of any of these tools or services-assess their capabilities and ROI for your own needs. And in case you are out in the market to buy the tech instead of building it, it is worth keeping in mind that there is quite a bit of consolidation going on in commercial vendors in this space, with vendors that started with metrics management branching out to log and performance management and everything in between.</p><p>The infographic below incorporates these recent concepts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XyHHkFgcTje4GPj_.png" /></figure><h3>Alerting</h3><p>You will find that a typical Alerting framework is not as varied and expansive as a Monitoring framework. It is equally important nonetheless, especially from a developer experience, system reliability, and alert federation perspective. The main concern vectors for you would be to handle both system-generated alerts and human-generated alerts, and in the former case, handle self-correcting events somewhat differently from events that require human intervention to correct.</p><p>At OpenGov we primarily rely on two means for Alerting: a Paging platform, for alerts that require human intervention to correct, and a Real-time Awareness platform, which for all alerts and in some rather unique ways that lend well to our organization and processes. We use <a href="http://opsgenie.com/">Atlassian Opsgenie</a> for Paging. Other alternatives include <a href="https://www.pagerduty.com/">PagerDuty</a> and <a href="https://victorops.com/">VictorOps</a>. We use <a href="https://slack.com/">Slack</a> for Real-time Awareness because of its rich API-level integration with the rest of our SRE suite.</p><p>We use a “federated model” of Alerting at OpenGov, which has helped us scale our teams while maintaining a high degree of responsiveness to our customers. This model is well suited to our “autonomous team” structure in which multiple teams <a href="https://aws.amazon.com/blogs/enterprise-strategy/enterprise-devops-why-you-should-run-what-you-build/">run what they build</a> using the DevOps model. There is no one team (e.g., an “ops team”) that is the first line of defense on alerts. Our alerts are demultiplexed at the source-e.g., at the Monitoring system itself-such that it hits the team that is the most capable of handling the alert. Typically, the team that built a product (an application or a service) will be alerted first. Such teams have a weekly on-call rotation between its engineers. To support the federation we have created an <a href="https://docs.opsgenie.com/docs/teams">OpsGenie Team</a> and an independent Slack alert channel per team. We have well-known and easy-to-use mechanisms using which the first-responder team can engage other supporting teams, such as the “infrastructure team” or the “platform team” depending on what they find during initial triage.</p><p>We use Paging in three situations:</p><ol><li><strong>System-generated alerts</strong> that require human intervention to correct-e.g., from our Monitoring systems.</li><li><strong>Human-generated alerts-</strong>e.g., when one team needs urgent assistance from another team.</li><li><strong>Customer-assist alerts</strong>-e.g, when a customer reports a “blocker issue”, our customer support ticketing system, <a href="https://www.zendesk.com/">Zendesk</a>, triggers a page using integration with OpsGenie to the engineering team that is responsible for that application. Another similar use-case for us is for “internal customer assist”. Our operations team uses <a href="https://www.atlassian.com/software/jira/service-desk">Jira Service Desk</a> to handle tickets from engineering and other departments. We have that integrated with OpsGenie to prevent breach of our “internal SLAs”.</li></ol><p>The infographic below incorporates these recent concepts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*u1MlvjwAVWX0ao5d.png" /></figure><h3>The Role of Slack</h3><p>Slack can be used in some fairly impactful ways to raise awareness and collaborate on incidents. For us, it serves as a hub of our monitoring, alerting, and notification workflows. While I would not go as far as calling it a “must-have”, it is a key component thereof. I wanted to leave this thought with those of you who might be considering Slack as a peer-to-peer communication tool. With the integrations that a lot of tools have built around Slack’s flexible APIs, it can actually do a lot more for you. I wish I knew or had more experience with another similar service, but unfortunately nothing looks like a viable alternative as of right now- <a href="https://products.office.com/en-us/microsoft-teams/group-chat-software">Microsoft Teams</a> is more geared towards communications and integrations with their suite; <a href="https://www.atlassian.com/partnerships/slack">Atlassian Hipchat</a> is migrating customers to Slack. Here are some examples of the ways in which we use Slack:</p><ul><li>We have integrated Slack with OpsGenie such that someone can simply type <strong>“/genie alert &lt;message&gt; for &lt;other-team&gt;”</strong> in any Slack channel to trigger the escalation for the “other team”.</li><li>For awareness and non-urgent collaboration we use custom Slack handles, such as <strong>@engops-on-call</strong>, which are used to engage the on-call person for a team, in this case EngOps.</li><li>Our “external” customer support ticketing system has specific alert channels to raise awareness on blocker and critical defects reported by customers.</li><li>Every team has its own “support channel” (that receives a ticketing system feed) and “alerts channel” (that receives a monitoring system feed).</li><li>Notifications from our “status pages” (see next section) are mirrored into specific Slack channels.</li></ul><h3>Notification</h3><p>You can use a Notification framework to notify your human stakeholders-your customers/users and your business partners about critical issues that might be actively affecting them or, in some cases, might have affected them or about ongoing or scheduled restorative and maintenance events. This is best and most comprehensively done using “status page” services. We use <a href="https://www.atlassian.com/software/statuspage">Atlassian Statuspage</a>, but other alternatives include <a href="https://status.io/">Status.io</a> and <a href="https://statuscast.com/">StatusCast</a>. You can also use “announcements functionality” in your customer support ticketing system or in-app notifications, or even platforms such as <a href="https://www.walkme.com/">WalkMe</a>.</p><p>In and of itself, this framework is fairly simple. You create an incident or scheduled maintenance, provide specifics, such as the nature of impact, impacted applications, timing of impact, etc. and let the system take care of informing “subscribers” using email, SMS, or RSS. That being said, to keep the signal-to-noise ratio close to optimal at an organizational level, you may want to adopt an approach of provisioning multiple distinct status pages, depending on the complexity of your application and stakeholder ecosystem, the maturity of your processes, and your business needs:</p><ol><li><strong>Customer/User facing “external” status page,</strong> which is publicly visible. This is best managed by your customer support team, which typically specializes in tailoring messaging to that audience-e.g., what to share, how to position it, nomenclature, etc.</li><li><strong>Business partner facing “internal” status page,</strong> which is visible only within your company. This may be used by the engineering/operations team to share updates with your business partners about the applications and systems that are used by your customers-think production environments. The internal page might allow additional latitude in content/terminology, which may not be directly meaningful to your end users.</li><li><strong>Department facing “private” status page,</strong> which is visible only within your department (e.g., R&amp;D). This may be used within the engineering team to share updates about the applications and systems that do not directly impact your customers-think pre-production environments (e.g., testing or staging or CI/CD).</li></ol><p>The infographic below incorporates these recent concepts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RJ4CIJnoBoBtlecE.png" /></figure><p>I am purposefully not discussing the specifics of the customer support ticketing framework in this article, but generally speaking, you want to think about your external (i.e., customer/end-user facing) system and your internal system. You could use the same service (e.g., Zendesk) for both, but, like us, you may find reasons (e.g., cost, customizations, and integrations) for not doing so.</p><h3>A Case Study: Support &amp; Escalation Communication</h3><p>In conclusion of this article, I wanted to share a case study that showcases how the above methods can be brought together to effectively overcome typical organizational challenges around communication in “difficult situations”. This case study highlights the flow of communication in <a href="https://opengov.com/products/the-opengov-cloud">The OpenGov Cloud™</a> Platform support and escalation workflow. We intended to eliminate or minimize the “top down communication” anti-pattern, where an escalation from a customer might catch our executive team unaware, and further lead to us in R&amp;D getting issue notifications from our execs as opposed to our support systems and teams.</p><p>The swimlanes in the infographic below show the various stakeholders in the communication workflow-Customers, OpenGov Customer Support, OpenGov R&amp;D, OpenGov Field (Customer Success, Professional Services, Sales), and the OpenGov Executive team. The description that follows provides a narrative for key aspects and highlights the responsibilities of the key stakeholders (match the numbers in the infographic to the numbered item in the narrative that follows).</p><p>The workflow is purposefully designed to err on the side of over-communication in case of high-severity incidents impacting the OpenGov customer base. It works well for an organization of our size, but you may want to tune it according to your needs. Another thing worth noting at the outset is that as of now OpenGov does not have an “external status page”. Instead we use other notification approaches (such as Zendesk announcements, in-app notifications, and WalkMe) to communicate with our end users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DK6vTCKHB-C8rBSJ.png" /></figure><ol><li>An issue may be identified in one of the following ways:</li></ol><p>a) By a customer — typically a software issue.</p><p>b) By the OpenGov R&amp;D team — could be a software issue identified by the OpenGov engineering (Dev/QA) team or an infrastructure issue identified by OpenGov R&amp;D monitoring systems.</p><p>c) By the OpenGov Field team — typically a software issue.</p><p>2. Issues reported by customers or the OpenGov Field team (external issues) lead to the creation of a Zendesk ticket, which is attended to by the OpenGov Customer Support team.</p><p>3. Issues reported by the OpenGov R&amp;D team (internal issues) and external issues (from step 2) lead to the creation of a Jira ticket, which is attended to by the OpenGov R&amp;D team — either application engineering or sustaining (L3/Tier-3) support engineering.</p><p>4. Jira issues that are classified with severity Blocker are granted a very high level of attention and are put on a specialized continuous communication track (as described below) until resolved.</p><p>5. OpenGov R&amp;D team will create an incident on our internal status page and will keep providing updates to it continuously. While this might sound like an out of place comment, it is worth noting that in addition to incidents, the internal status page is used by OpenGov R&amp;D team to inform stakeholders about scheduled maintenance windows, such as those related to feature releases, hotfixes, and infrastructure updates, which may impact typical field activities like demos.</p><p>a) All internal status page updates are mirrored to a dedicated Slack channel called #og-internal-status.</p><p>b) OpenGov Customer Support team shall receive the notifications from the internal status page and Slack. (A one-time subscription will be required.)</p><p>c) OpenGov Field team shall also receive the notifications from the internal status page. (A one-time subscription will be required.)</p><p>6. OpenGov Customer Support team will create a notification on OpenGov Resource Center (powered by Zendesk).</p><p>a) Any and all customers that “follow” the Zendesk notifications shall get such announcements.</p><p>b) OpenGov Field team shall also receive the notifications from Zendesk. (A one-time subscription will be required.)</p><p>7. OpenGov Customer Support team will create an OpenGov internal email notification (must not be system generated, but rather from a human) notifying the following key internal stakeholders about the incident:</p><p>a) OpenGov R&amp;D Team</p><p>b) OpenGov Field Team</p><p>c) OpenGov Executive Team</p><p>8. OpenGov Field team, depending on the severity of the issue, or situation of their customer (e.g. “red” account) may choose to send an external email advisory to one or more customers.</p><p>9. Same as (8), but on the discretion (e.g. for customers under the umbrella of executive sponsor program) of the OpenGov Executive team.</p><p>If you would like to read more from OpenGov’s engineering team, read the rest of our <a href="https://opengov.com/article/category/technology/">Technology blog posts.</a></p><p>Interested in contributing to OpenGov’s Engineering culture of innovation, leading-edge technology adoption, and quality? Check out our <a href="https://opengov.com/careers/">current job openings</a>.</p><p><em>Originally published at </em><a href="https://opengov.com/article/a-monitoring-alerting-and-notification-blueprint-for-saas-applications"><em>https://opengov.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2729eca1f13f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opengov-techblog/a-monitoring-alerting-and-notification-blueprint-for-saas-applications-opengov-2729eca1f13f">A Monitoring, Alerting, and Notification Blueprint for SaaS Applications</a> was originally published in <a href="https://medium.com/opengov-techblog">OpenGov TechBlog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inside the OpenGov Cloud: Evolution of Infrastructure and Operations — What’s Next]]></title>
            <link>https://medium.com/opengov-techblog/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-whats-next-2ce2654657d5?source=rss----b3a5bc0f8fbc---4</link>
            <guid isPermaLink="false">https://medium.com/p/2ce2654657d5</guid>
            <category><![CDATA[government-technology]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[government-tech]]></category>
            <category><![CDATA[engineering-technology]]></category>
            <dc:creator><![CDATA[Ashwani Wason]]></dc:creator>
            <pubDate>Thu, 06 Jun 2019 17:01:01 GMT</pubDate>
            <atom:updated>2019-06-06T17:01:01.633Z</atom:updated>
            <content:encoded><![CDATA[<h3>Inside the OpenGov Cloud: Evolution of Infrastructure and Operations — What’s Next</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iqKmGIqzgFlszUct.jpg" /></figure><p><em>This is Part Three in a three-part series of posts about the </em><a href="https://opengov.com/article/research-and-development-at-opengov"><em>OpenGov Engineering team’s</em></a><em> journey in 2018 and the evolution of its infrastructure and operations. </em><a href="https://opengov.com/article/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-the-why-and-what"><em>Part One</em></a><em> focused on the “why and what” (i.e., the problem space). </em><a href="https://opengov.com/article/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-the-how"><em>Part Two</em></a><em> focused on the “how” (i.e., the solution space) and the wins that we secured. This part focuses on our plans for the continuation of that journey in 2019 and my reflections on lessons learned.</em></p><p>The <a href="https://opengov.com/article/research-and-development-at-opengov">EngOps team</a> ‘s overarching goal for 2019 is accelerating value delivery for our business and application developers, which we intend to achieve more or less along the following lines.</p><p><strong>In support of our developers:</strong> <a href="https://opengov.com/article/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-the-why-and-what">Look back</a> at the three vectors of diversification that I described in this series-development, build, and deployment. We have only partially addressed build and deployment-there’s more work still to be done for these two vectors. For example, we intend to switch all of our applications to use a shared <a href="https://jenkins.io/doc/book/pipeline/jenkinsfile/">Jenkinsfile</a>, <a href="https://docs.docker.com/engine/reference/builder/">Dockerfile</a>, and <a href="https://docs.helm.sh/developing_charts/">Helm Chart</a>; we intend to retire the Kubernetes deployment pipeline and switch to Spinnaker; we intend to introduce a stage in our CI pipeline for artifact vulnerability scanning using <a href="https://jfrog.com/xray/">JFrog Xray</a>; we intend for <a href="https://launchdarkly.com/">LaunchDarkly</a> to be used consistently by all of our services (our legacy applications currently use a homegrown feature flagging implementation in one of our monoliths). But as far as diversification in development workflows goes, we are only getting started in earnest-we want to switch to a master-centric branching workflow for all of our code repositories; we want to standardize our “local development” environments. And I’m sure we will identify other opportunities. We now have a concerted “developer experience” program underway that is tackling these problems.</p><p><strong>In support of our applications: </strong>At some point in 2019, we intend to start taking a serious look at <a href="https://istio.io/docs/concepts/what-is-istio/">service mesh</a> such as <a href="https://istio.io/">Istio</a> to support cross-cutting concerns in a polyglot application world. With service mesh we can offload concerns such as inter-service encryption, circuit breaking, request retries, etc. from application frameworks to the network itself. Another major benefit we intend to provide with this effort is improved observability (e.g., service graph, edge metrics, request tracing). We are investigating how we can run Windows applications alongside our Linux ones in our Kubernetes clusters to support any potential inorganic expansion in our application ecosystem.</p><p><strong>In support of our infrastructure: </strong>Our EngOps Kubernetes cluster will soon be running multiple applications-Jenkins, JFrog Artifactory, JFrog Xray, and Spinnaker. Jenkins workloads are purely driven by developer (PR and merge) activity. As you will see from the chart below, our cluster is scaling up and down fairly nicely based on demand. We are working with our application developers on enhancing our applications in production and testing clusters to use the autoscaler framework to a similar effect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*27kN98cNDMGer0C6" /></figure><p>We are deploying <a href="https://www.aviatrix.com/solutions/user-vpn.php">Aviatrix VPN solution</a> for secure access of our non-prod and pre-prod assets by internal users. We need to do a bit more simplification in our networking by moving some of our legacy databases to new production VPCs. As we better characterize our workloads with autoscaler, we intend to save additional dollars by purchasing <a href="https://aws.amazon.com/ec2/pricing/reserved-instances/">AWS EC2 Reserved Instances</a>. And, yes, we are keeping an eye on the expansion of our infrastructure internationally-this is entirely business driven.</p><h3>Engineering Learnings Beyond Tech</h3><p>We mapped a lot of tech in 2018 and 2019 is expected to be no dissimilar. But how we do what we do best is equally important. Speaking of those general engineering practices, the following are some of the things I took away from 2018:</p><ul><li><strong>Don’t over-optimize to move in a straight line, but instead focus on moving in the general direction of where you want to get to. </strong>Optimize to deliver big value, and if there is “throwaway work” along the way then so be it. (For example in our case: Kops to EKS, host-based routing to path-based routing, Kubernetes deployment pipeline in Jenkins to Spinnaker.) Make quick decisions and adjust them as needed and as time permits.</li><li><strong>Avoid cross-linking of projects.</strong> This often comes as a corollary of over-optimization. We end up linking one piece of work to another and before we know it, failure of one project leads to the failure of an entire effort. A good “top down” or “bottoms up” analysis can generally show you the way-for example, in our case we limped along on development vector as we addressed the build and deployment vectors, and even those two in different measures.</li><li><strong>Deliver big efforts with specific milestones.</strong> Rome wasn’t built in a day. Measurable progress keeps stakeholders engaged and keeps you motivated even when the end may not be in sight. Maintaining momentum is really important.</li><li><strong>Change is hard for many.</strong> Building consensus across many is harder. Welcome to the world of a “horizontal function” such as infrastructure and DevOps. Effective cross-team collaboration is key. Your company’s culture will guide you there. Clear accountability is equally important, and unfortunately, accountability often gets lost with collaboration. Specifying clear boundaries and contracts on who owns which part is key.</li><li><strong>“Build vs. Buy” decisions are important. </strong>You may not always be able to build everything that you need. Consider throwing money at “supporting pieces” of tech, either by contracting out or by using paid services instead of adopting open source equivalents. There will always be an opportunity (and reason) to swap such things out.</li><li><strong>I often like to say, much of what the </strong><a href="https://opengov.com/article/research-and-development-at-opengov"><strong>EngOps team</strong></a><strong> does is not only under the hood, but close to the bottom of the machinery.</strong> It requires building support around your efforts with key stakeholders, which is best done by showing business value-for customers and/or for developers and/or for applications and/or for business partners (e.g., finance, support).</li><li><strong>Unless you are a large company, and maybe not even then, as much as possible dissociate tech patterns from team structures, which are especially fluid in relatively smaller organizations.</strong></li></ul><h3>Acknowledgements</h3><p>Lastly, I want to acknowledge the efforts of the following members and “honorary” members of the EngOps team for a remarkable 2018, and for supporting an equally inspiring vision for 2019: <a href="https://www.linkedin.com/in/cade-markegard/">Cade Markegard</a>, <a href="https://www.linkedin.com/in/craigrueda/">Craig Rueda</a>, <a href="https://www.linkedin.com/in/diego-rodriguez-92532829/">Diego Rodriguez</a>, <a href="https://www.linkedin.com/in/jayson-barley-869882/">Jayson Barley</a>, <a href="https://www.linkedin.com/in/jpterry/">John Terry</a>, <a href="https://www.linkedin.com/in/jonhinds/">Jonathan Hinds</a>, <a href="https://www.linkedin.com/in/jspiro/">Jono Spiro</a>, <a href="https://www.linkedin.com/in/joshileena/">Leena Joshi</a>, <a href="https://www.linkedin.com/in/pushkalaraman/">Pushkala Pattabhiraman</a>, <a href="https://www.linkedin.com/in/sakom/">Sako Mammadov</a>, and <a href="https://www.linkedin.com/in/siddhantdange/">Sid Dange</a>.</p><p>Interested in contributing to OpenGov’s Engineering culture of innovation, leading-edge technology adoption, and quality? Check out our <a href="https://opengov.com/careers?utm_source=medium.com&amp;utm_medium=referral&amp;utm_campaign=medium_syndication">current job openings</a>.</p><p><em>Originally published at </em><a href="https://opengov.com/article/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-whats-next"><em>https://opengov.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ce2654657d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opengov-techblog/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-whats-next-2ce2654657d5">Inside the OpenGov Cloud: Evolution of Infrastructure and Operations — What’s Next</a> was originally published in <a href="https://medium.com/opengov-techblog">OpenGov TechBlog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inside the OpenGov Cloud: Evolution of Infrastructure and Operations —  The How]]></title>
            <link>https://medium.com/opengov-techblog/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-the-how-9d7813354ee0?source=rss----b3a5bc0f8fbc---4</link>
            <guid isPermaLink="false">https://medium.com/p/9d7813354ee0</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[government-tech]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[platform-architecture]]></category>
            <category><![CDATA[government-technology]]></category>
            <dc:creator><![CDATA[Ashwani Wason]]></dc:creator>
            <pubDate>Wed, 05 Jun 2019 17:01:01 GMT</pubDate>
            <atom:updated>2019-06-05T17:01:01.060Z</atom:updated>
            <content:encoded><![CDATA[<h3>Inside the OpenGov Cloud: Evolution of Infrastructure and Operations— The How</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aiF8jOe3GA87xkg6.jpg" /></figure><p><em>This is Part Two in a three-part series of posts about the </em><a href="https://opengov.com/article/research-and-development-at-opengov"><em>OpenGov Engineering team’s</em></a><em> journey in 2018 and the evolution of its infrastructure and operations. </em><a href="https://opengov.com/article/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-the-why-and-what"><em>Part One</em></a><em> focused on the “why and what” (i.e., the problem space). This part focuses on the “how” (i.e., the solution space, and the wins that we secured).</em></p><p>Late 2017, early 2018 we began to earnestly look into getting ahead of the <a href="https://opengov.com/article/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-the-why-and-what">challenges</a> and streamline our operations. Across the board unification and standardization would be the key to such an endeavor. Given that most of our component services were containerized already, we decided to use <a href="https://kubernetes.io/">Kubernetes</a> as our standard deployment platform. At that time <a href="https://aws.amazon.com/eks/">AWS EKS</a> (Elastic Container Service for Kubernetes) was not generally available. We started off by installing Kubernetes 1.9 on AWS using <a href="https://kubernetes.io/docs/setup/custom-cloud/kops/">Kops</a>. Our first real application on Kubernetes was a new, next-generation of Jenkins, that was over time meant to replace all other aforementioned CI systems. Our first Kubernetes cluster, the “EngOps cluster”, to run our CI/CD and other internal build systems was brought live in February 2018. Kubernetes was new to all of us and we had to establish certain key patterns by learning the hard way. I still recall solving key issues using <a href="https://github.com/spotify/docker-gc">Spotify’s docker-gc</a> and by setting <a href="https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container">resource limits</a> for our containers. We also ran into some interesting networking issues with our overlay service, <a href="https://www.weave.works/docs/net/latest/overview/">Weave</a>.</p><p>After getting our feet wet with an internal application we decided to bring it to one of our production applications. We deployed our first production Kubernetes cluster with one of our simpler applications in April 2018. Since it was too early for us to have a CD system, as a part of onboarding this application to Kubernetes, we built a general-purpose custom deployment pipeline in Jenkins to deploy our applications with a <a href="https://kubernetes.io/docs/tutorials/kubernetes-basics/update/update-intro/">rolling update</a> strategy using <a href="https://helm.sh/">Helm</a> (incidentally, that pipeline is still being used by us for all our deployments, as we are bringing up <a href="https://www.spinnaker.io/">Spinnaker</a>). Based on our experience at that time, Helm became the technology of choice for us to continue building on. Over time it became the “API boundary” between the <a href="https://opengov.com/article/research-and-development-at-opengov">EngOps team</a> and our application developers, with the developers writing Helm charts for their services based on the blueprint created by the infrastructure team. Around this time (May/June 2018) we had a fairly good idea of navigating the Kubernetes landscape. But it always helps to validate the assumptions. <a href="https://www.linkedin.com/in/ghoshbhaskar/">Bhaskar Ghosh</a>, one of the technical advisors at OpenGov, kindly connected us with folks in his network for that. I would like to publicly acknowledge the time and guidance that was provided to us by <a href="https://github.com/jchv">John Chadwick</a> (back then) at Benzinga, <a href="https://build.affinity.co/@paul_mtz">Paul Martinez</a> at Affinity, and <a href="https://github.com/sophaskins">Sophie Haskins</a> at Github.</p><p>The next big leap in our Kubernetes advancement came about in July 2018 when we started deploying our legacy <a href="https://opengov.com/article/inside-the-opengov-cloud-application-architecture-and-tech-stack">monolith et al.</a> in production. That’s when the number of nodes in our cluster went up by more than 7x what we were running before. By that time EKS was also <a href="https://aws.amazon.com/about-aws/whats-new/2018/06/amazon-elastic-container-service-for-kubernetes-eks-now-ga/">generally available</a> but we did not want to disrupt our momentum on application migration front. As that momentum continued, around August 2018 we started working on a key infrastructure project-building the <a href="https://kubernetes.io/blog/2016/07/autoscaling-in-kubernetes/">autoscaling</a> framework for our applications and infrastructure. From the outset itself the key business value that I had expected to provide from our Kubernetes migration was to make our clusters more elastic, which would’ve been beneficial to us in two distinct ways-making them customer-friendly by dynamically adjusting to scale up based on seasonality in our production workloads and making them pocket-friendly by dynamically adjusting to scale down during nights, weekends, and other off-season times. We want our clusters to fully leverage what I call as <em>tri-scale elasticity-</em>node-level, which is provided by <a href="https://kubernetes.io/docs/tasks/administer-cluster/cluster-management/#resizing-a-cluster">Cluster Autoscaler</a>, horizontal pod-level, which is provided by <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/">Horizontal Pod Autoscaler</a> (HPA), and vertical pod-level, which is <em>to be</em> provided by <a href="https://cloud.google.com/kubernetes-engine/docs/concepts/verticalpodautoscaler">Vertical Pod Autoscaler</a> (VPA). By November, we had a solution for the first two of those vectors implemented and available for our applications. Since some of our flagship applications were not necessarily CPU or RAM bound, one of the key requirements for HPA for us was to be able to scale up/down using <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-custom-metrics">custom metrics</a> (e.g., job queue backlog) in addition to standard resource metrics (CPU and RAM).</p><p>This autoscaling project was an interesting journey-our initial design required introduction of a new active component that can implement Kubernetes metrics API (e.g., <a href="https://github.com/directxman12/k8s-prometheus-adapter">Prometheus</a>) but we pivoted to a different approach during development-Datadog, which we were anyway using for metrics, <a href="https://www.datadoghq.com/blog/datadog-cluster-agent/#the-external-metrics-provider">introduced support for external metrics provider in Datadog cluster agent</a>, which simplified our design tremendously. Although this complicated our life in a different way. It forced us to bite the bullet we knew we had to bite one day, but were trying to avoid-switching from Kops to EKS. Support for autoscaling based on custom metrics was introduced in Kubernetes 1.10, while we were on 1.9. We could have upgraded our Kops clusters to 1.10 or switched to EKS. After much deliberation and spiking the alternatives, we opted for the latter. Thus, in late October 2018, we began that massive effort. By mid‑December, after a really solid day and night push by a few folks in the team, we progressively had all our Kubernetes clusters on EKS!</p><p>Along the way, a couple other engineers introduced an interesting solution for auto-scaling of our single-tenant hosted application-we used <a href="https://github.com/hjacobs/kube-downscaler">kube downscaler</a> to implement time-of-day and day-of-week automation for those single tenant instances that were not required to be always-on according to our SLA with the associated customers. Using that solution, we made sure that those instances were brought down automatically after end of and brought up before start of customary business hours.</p><p>Between July and December, it was just one application after another onboarding to Kubernetes — BIG THANKS to our <a href="https://opengov.com/article/research-and-development-at-opengov">partner engineering teams</a> taking the lead on most of that work. Any applications that were not originally containerized now were. Architectural advancements were made to carve out multi-tenant portions out of our single-tenant managed service. Convox was eliminated. Then Chef. Along the way our new Kubernetes‑based Jenkins system was evolving slowly but surely, especially for monorepo tooling. We eliminated all of our legacy CI systems. All in all, we shaved off around $65000/year from our DevOps tool-chain cost.</p><p>We streamlined various other supporting aspects along the way. We switched from a team-based AWS account management strategy (there’s nothing wrong with that, but just not best for our fluid team landscape) to a more functional strategy-we now have AWS accounts by environments (e.g., EngOps, Production, Development, Testing, Staging). We now deploy to two regions only-our production region is us-east-1 and our pre-production region is us-west-2. A huge win along the way was in getting the required security and compliance practices in place. We adopted a new and improved cloud networking architecture that lends itself well for our expansion to international clusters. Predictability of our releases and communication with our field teams has improved tremendously-all of our applications are now deployed one way on one day; we have started using <a href="https://www.statuspage.io/">Atlassian Statuspage</a> for incident and maintenance window notification. This might sound counter-intuitive, but despite releasing on one day, we no longer have massive releases. By optimizing our release strategy, failure in one application does not hold the release of another application hostage. This improved our handling of customer commitments. We moved away from a centralized release model to a federated release model, which is microservice-friendly and also sustainable from human perspective. Currently we have around 30 services that may need to be deployed individually across all our applications. Those services are deployed in a collaborative maintenance window by service owners. We learned from our mistakes and corrected them at the earliest opportunity-for example, we started off with host-based routing for our services, but because of challenges around wildcard certificate management, we later switched to <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/">path-based routing</a>. While unification wasn’t the only factor, it played a big role in reducing our AWS spend-our December 2018 spend was <strong>less than half</strong> of what it was in January 2018.</p><p>Interested in contributing to OpenGov’s Engineering culture of innovation, leading-edge technology adoption, and quality? Check out our <a href="https://opengov.com/careers?utm_source=medium.com&amp;utm_medium=referral&amp;utm_campaign=medium_syndication">current job openings</a>.</p><p><em>Originally published at </em><a href="https://opengov.com/article/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-the-how"><em>https://opengov.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d7813354ee0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opengov-techblog/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-the-how-9d7813354ee0">Inside the OpenGov Cloud: Evolution of Infrastructure and Operations —  The How</a> was originally published in <a href="https://medium.com/opengov-techblog">OpenGov TechBlog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inside the OpenGov Cloud: Evolution of Infrastructure and Operations-The Why and What]]></title>
            <link>https://medium.com/opengov-techblog/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-the-why-and-what-4725a960c63?source=rss----b3a5bc0f8fbc---4</link>
            <guid isPermaLink="false">https://medium.com/p/4725a960c63</guid>
            <category><![CDATA[government-tech]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[government-technology]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[platform-architecture]]></category>
            <dc:creator><![CDATA[Ashwani Wason]]></dc:creator>
            <pubDate>Tue, 04 Jun 2019 19:10:43 GMT</pubDate>
            <atom:updated>2019-06-04T19:10:43.622Z</atom:updated>
            <content:encoded><![CDATA[<h3>Inside the OpenGov Cloud: Evolution of Infrastructure and Operations — The Why and What</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3yMDDHUSeZohbCMT.jpg" /></figure><p><em>This is Part One in a three-part series of posts about the </em><a href="https://opengov.com/article/research-and-development-at-opengov"><em>OpenGov Engineering team’s</em></a><em> journey in 2018 and the evolution of its infrastructure and operations. This part focuses on the “why and what” (i.e., the problem space).</em></p><p><a href="https://opengov.com/">OpenGov</a> is a budgeting and performance company for the public sector. With its rapid organic growth and acquisition activity came significant planned and unplanned diversification and fragmentation in how its software was built and deployed and how its infrastructure was managed, scaled, and secured. A number of key business drivers required us to evolve our operations: more rapid delivery of features with an ever rising bar on quality; accommodating the needs of a fast-growing and distributed development organization on a greater scale; supporting our acquisition strategy; embracing our <a href="https://opengov.com/article/inside-the-opengov-cloud-application-architecture-and-tech-stack">polyglot applications</a>; and ensuring enterprise-grade security for our data and infrastructure. Over much of 2018, the <a href="https://opengov.com/article/research-and-development-at-opengov">engineering operations team</a> at OpenGov focused heavily on streamlining our operations by unifying our infrastructure, standardization of our build, release and security/compliance processes, and optimization of our spend on production and development resources. It has been an amazing journey that has put us on the path to accelerating value delivery in 2019-improving predictability in software delivery, integrating acquisitions efficiently, operating an elastic infrastructure, and up-leveling developer productivity. I will go over the 2018 journey and where we are headed in 2019 in a three-part series of posts. This is Part One, which focuses on the “why and what” (i.e., the problem space).</p><p>Rewind to mid-to-late 2017 and picture the continuous lifecycle of bits-from development to build to deployment. OpenGov with its rich set of applications had more or less diversified in all those lifecycle stages. I’ll describe the challenges we had with that diversification.</p><p><strong>Development: </strong>Much of our “legacy” code ( <a href="https://opengov.com/article/inside-the-opengov-cloud-application-architecture-and-tech-stack">monoliths</a>, et al.) was organized in multiple Git repositories, with one repository per component service. Our newer microservices were organized in a singular massive Git <a href="https://en.wikipedia.org/wiki/Monorepo">monorepo</a>. Active development was ongoing in both. Further the branching workflow that was used in monorepo was more CD-friendly Master‑centric workflow (inspired by <a href="https://guides.github.com/introduction/flow/">GitHub Flow</a>), while the legacy code used a custom workflow (almost but not quite <a href="https://nvie.com/posts/a-successful-git-branching-model/">GitFlow</a>) with three long-lived branches-Master (of course), a feature release branch, and a hotfix branch. A lot of CI tooling had gone in to support the custom legacy workflow, but we were only getting started with the tooling for the monorepo. One common theme across all teams was that they worked in two-week Sprints. Another interesting aspect of diversification was for “local development” (pre-CI). Some teams used what were known as full-stacks provisioned using custom tooling on <a href="https://aws.amazon.com/ec2/">AWS EC2</a> instances. Other teams used to run services under development on their laptop (either using a VM or <a href="https://kubernetes.io/docs/setup/minikube/">Minikube</a> or <a href="https://docs.docker.com/compose/">Docker Compose</a>) and point them to one of stable always-on pre-prod environments. It is worth noting that all applications that are deployed to our cloud today are built for Linux.</p><p><strong>Build: </strong>We had four distinct CI systems and three distinct CI technologies: <a href="https://jenkins.io/">Jenkins</a> and <a href="https://travis-ci.org/">Travis CI</a> were used for the legacy monolith component service builds. The monorepo used its own instance of Jenkins. Another team (from one of our acquisitions) used <a href="https://semaphoreci.com/">Semaphore CI</a>.</p><p><strong>Deployment: </strong>We were quite a bit ahead in our containerization journey: most of our component service artifacts were packaged in <a href="https://www.docker.com/resources/what-container">Docker Containers</a>. However, we used four distinct approaches to deploy our application containers to production: our legacy applications used <a href="https://www.chef.io/">Chef</a>. The containers ran directly on AWS EC2 instances, with a fairly static (and rather over-provisioned, I must add) footprint, without any overarching orchestration. <a href="https://martinfowler.com/bliki/BlueGreenDeployment.html">Blue-Green deployment</a> strategy was used at the entire cluster level (not at a service level). The microservices used the <a href="https://convox.com/">Convox</a> platform to deploy containers to <a href="https://aws.amazon.com/ecs/">AWS ECS</a>. Again, with a fairly static footprint. One of our applications (from an acquisition in 2017) deployed directly on AWS EC2 instances using mostly manual (snowflake) processes. Its components were not containerized. Another application (from an acquisition in 2016) also deployed directly on AWS EC2 instances. Again, not containerized. This latter one is an interesting application because it is deployed and operated as managed single-tenant instance of the application, one per customer. Each customer’s instance was deployed manually (for the most part) and thus a snowflake. If that wasn’t complicated enough, we deployed to multiple AWS regions, driven by localized decisions made by the individual application teams. We had three pre-prod regions: us-west-2, ca-central-1, and us-east-1, and we had four prod regions: us‑east-1, us‑east-2, us‑west-1, and ca-central-1. Multiple AWS accounts, one per team, were used for deployment, each obviously with its own <a href="https://aws.amazon.com/vpc/">VPC</a>.</p><p><strong><em>This diversification posed unique challenges for running effective engineering operations.</em></strong></p><p>Around that time our applications were starting to become more and more integrated with each other. Given that our services were deployed across multiple accounts, our networking ( <a href="https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html">VPC Peering</a>, Load Balancing, request routing) progressively started to become increasingly complex with multiple points of failure. Movement of engineers between teams was not as efficient as there was a relatively steep learning curve for the different practices. System-level testing became more challenging. The infrastructure provisioning practices between different teams was also prone to errors (e.g., some <a href="https://aws.amazon.com/rds/">AWS RDS</a> instances were provisioned without encryption and backups) exposing security and compliance risks.</p><p>Another aspect of the diversification that was hurting us was from a lack of consistent release practices-the applications were deployed at their own independent schedules increasing the risk of impacting production. Cross-functional communication with our field teams was not ideal. Releases were done without empirical measures around deployment times, release variances, or failure/rollback rates. Chef-based cluster-level Blue-Green strategy for our legacy apps had a major side-effect-if smoke tests failed for <em>one of the applications</em> in the newly provisioned cluster, we abandoned the entire release, thereby affecting the commitments of other applications that tested out fine. (I, rather not-so-fondly, started referring to this as, “Oops from one team/application causing an Ouch to others.”) Teams using Convox were not too satisfied either with its developer and deployment workflows.</p><p>In early 2018 we were also getting serious about certifying our applications, infrastructure, and processes against compliance programs such as <a href="https://www.incapsula.com/web-application-security/soc-2-compliance.html">SOC 2</a>, <a href="https://nvd.nist.gov/800-53">NIST</a>, and <a href="https://www.fedramp.gov/cloud-service-providers/">FedRAMP</a>. It very quickly became a non-starter to have to do that in such a diverse world. The level of effort would be many times over, the surface area to protect much larger, cost of independent assessment much higher, and having to sustain that year-over-year even harder to digest.</p><p>A big driver of running effective operations is the ability to extract metrics from our processes that can be used to surface valuable insights. It was untenable to do this across so many different systems in an organization with that rich set of applications that were delivered at that fast pace.</p><p>Our “DevOps tool-chain” spend was also quite high for our scale-at around $85000/year across Chef, Convox, Travis, Semaphore, including running multiple Jenkins instances on AWS. Our production infrastructure was fairly static in footprint, having been configured for the peak demand, but running as such all the time. One thing that cloud providers have done is to make it easy to throw hardware (read money) at the problem, move on, and forget about it. We fell into that trap all so often.</p><p>In the next article in this series I will go over how we reined in the diversification.</p><p>Interested in contributing to OpenGov’s Engineering culture of innovation, leading-edge technology adoption, and quality? Check out our <a href="https://opengov.com/careers?utm_source=medium.com&amp;utm_medium=referral&amp;utm_campaign=medium_syndication">current job openings</a>.</p><p><em>Originally published at </em><a href="https://opengov.com/article/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-the-why-and-what"><em>https://opengov.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4725a960c63" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opengov-techblog/inside-the-opengov-cloud-evolution-of-infrastructure-and-operations-the-why-and-what-4725a960c63">Inside the OpenGov Cloud: Evolution of Infrastructure and Operations-The Why and What</a> was originally published in <a href="https://medium.com/opengov-techblog">OpenGov TechBlog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>