<?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 Petros Abebe on Medium]]></title>
        <description><![CDATA[Stories by Petros Abebe on Medium]]></description>
        <link>https://medium.com/@petrosabebe3?source=rss-11df0b45ff82------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iaiqm7xMnxzpNZHKniqF1Q.jpeg</url>
            <title>Stories by Petros Abebe on Medium</title>
            <link>https://medium.com/@petrosabebe3?source=rss-11df0b45ff82------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 18:05:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@petrosabebe3/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[How to write postmortem]]></title>
            <link>https://medium.com/@petrosabebe3/how-to-write-postmortem-bb2abb82bdc2?source=rss-11df0b45ff82------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb2abb82bdc2</guid>
            <dc:creator><![CDATA[Petros Abebe]]></dc:creator>
            <pubDate>Fri, 09 Dec 2022 19:15:37 GMT</pubDate>
            <atom:updated>2022-12-09T19:15:37.300Z</atom:updated>
            <content:encoded><![CDATA[<h3>Summary</h3><p>Between the hour of 15:45 and 16:35 on Dec 09, 2022, users encountered Syntax error when we write python script to crawl data from web pages. The event was triggered by code chunk testing at 15:45.</p><h3>Leadup</h3><p>Describe the sequence of events that led to the incident, for example, previous changes that introduced bugs that had not yet been detected.</p><h4>EXAMPLE:</h4><p>At {16:00} on {MM/DD/YY}, ({AMOUNT OF TIME BEFORE CUSTOMER IMPACT, e.g. 10 days before the incident in question}), a change was introduced to {PRODUCT OR SERVICE} in order to {THE CHANGES THAT LED TO THE INCIDENT}.</p><p>This change resulted in {DESCRIPTION OF THE IMPACT OF THE CHANGE}.</p><h3>Fault</h3><p>Describe how the change that was implemented didn’t work as expected. If available, attach screenshots of relevant data visualizations that illustrate the fault.</p><h4>EXAMPLE:</h4><p>{NUMBER} responses were sent in error to {XX%} of requests. This went on for {TIME PERIOD}.</p><h3>Impact</h3><p>Describe how the incident impacted internal and external users during the incident. Include how many support cases were raised.</p><h4>EXAMPLE:</h4><p>For {XXhrs XX minutes} between {XX:XX UTC and XX:XX UTC} on {MM/DD/YY}, {SUMMARY OF INCIDENT} our users experienced this incident.</p><p>This incident affected {XX} customers (X% OF {SYSTEM OR SERVICE} USERS), who experienced {DESCRIPTION OF SYMPTOMS}.</p><p>{XX NUMBER OF SUPPORT TICKETS AND XX NUMBER OF SOCIAL MEDIA POSTS} were submitted.</p><h3>Detection</h3><p>When did the team detect the incident? How did they know it was happening? How could we improve time-to-detection? Consider: How would we have cut that time by half?</p><h4>EXAMPLE:</h4><p>This incident was detected when the {ALERT TYPE} was triggered and {TEAM/PERSON} were paged.</p><p>Next, {SECONDARY PERSON} was paged, because {FIRST PERSON} didn’t own the service writing to the disk, delaying the response by {XX MINUTES/HOURS}.</p><p>{DESCRIBE THE IMPROVEMENT} will be set up by {TEAM OWNER OF THE IMPROVEMENT} so that {EXPECTED IMPROVEMENT}.</p><h3>Response</h3><p>Who responded to the incident? When did they respond, and what did they do? Note any delays or obstacles to responding.</p><h4>EXAMPLE:</h4><p>After receiving a page at {XX:XX UTC}, {ON-CALL ENGINEER} came online at {XX:XX UTC} in {SYSTEM WHERE INCIDENT INFO IS CAPTURED}.</p><p>This engineer did not have a background in the {AFFECTED SYSTEM} so a second alert was sent at {XX:XX UTC} to {ESCALATIONS ON-CALL ENGINEER} into the who came into the room at {XX:XX UTC}.</p><h3>Recovery</h3><p>Describe how the service was restored and the incident was deemed over. Detail how the service was successfully restored and you knew how what steps you needed to take to recovery.</p><p>Depending on the scenario, consider these questions: How could you improve time to mitigation? How could you have cut that time by half?</p><h4>EXAMPLE:</h4><p>We used a three-pronged approach to the recovery of the system:</p><p>{DESCRIBE THE ACTION THAT MITIGATED THE ISSUE, WHY IT WAS TAKEN, AND THE OUTCOME}</p><p>Example: By Increasing the size of the BuildEng EC3 ASG to increase the number of nodes available to support the workload and reduce the likelihood of scheduling on oversubscribed nodes</p><ul><li>Disabled the Escalator autoscaler to prevent the cluster from aggressively scaling-down</li><li>Reverting the Build Engineering scheduler to the previous version.</li></ul><h3>Timeline</h3><p>Detail the incident timeline. We recommend using UTC to standardize for timezones.</p><p>Include any notable lead-up events, any starts of activity, the first known impact, and escalations. Note any decisions or changed made, and when the incident ended, along with any post-impact events of note.</p><h4>EXAMPLE:</h4><p>All times are UTC.</p><p>11:48 — K8S 1.9 upgrade of control plane is finished</p><p>12:46 — Upgrade to V1.9 completed, including cluster-auto scaler and the BuildEng scheduler instance</p><p>14:20 — Build Engineering reports a problem to the KITT Disturbed</p><p>14:27 — KITT Disturbed starts investigating failures of a specific EC2 instance (ip-203–153–8–204)</p><p>14:42 — KITT Disturbed cordons the node</p><p>14:49 — BuildEng reports the problem as affecting more than just one node. 86 instances of the problem show failures are more systemic</p><p>15:00 — KITT Disturbed suggests switching to the standard scheduler</p><p>15:34 — BuildEng reports 200 pods failed</p><p>16:00 — BuildEng kills all failed builds with OutOfCpu reports</p><p>16:13 — BuildEng reports the failures are consistently recurring with new builds and were not just transient.</p><p>16:30 — KITT recognize the failures as an incident and run it as an incident.</p><p>16:36 — KITT disable the Escalator autoscaler to prevent the autoscaler from removing compute to alleviate the problem.</p><p>16:40 — KITT confirms ASG is stable, cluster load is normal and customer impact resolved.</p><p>TEMPLATE:</p><p>XX:XX UTC — INCIDENT ACTIVITY; ACTION TAKEN</p><p>XX:XX UTC — INCIDENT ACTIVITY; ACTION TAKEN</p><p>XX:XX UTC — INCIDENT ACTIVITY; ACTION TAKEN</p><h3>Root cause identification: The Five Whys</h3><p>The Five Whys is a <a href="https://www.atlassian.com/team-playbook/plays/5-whys">root cause identification technique</a>. Here’s how you can use it:</p><ul><li>Begin with a description of the impact and ask why it occurred.</li><li>Note the impact that it had.</li><li>Ask why this happened, and why it had the resulting impact.</li><li>Then, continue asking “why” until you arrive at a root cause.</li></ul><p>List the “whys” in your postmortem documentation.</p><h4>EXAMPLE:</h4><ol><li>The application had an outage because the database was locked</li><li>The database locked because there were too many writes to the database</li><li>Because we pushed a change to the service and didn’t expect the elevated writes</li><li>Because we don’t have a development process established for load testing changes</li><li>Because we never felt load testing was necessary until we reached this level of scale.</li></ol><h3>Root cause</h3><p>Note the final root cause of the incident, the thing identified that needs to change in order to prevent this class of incident from happening again.</p><h4>EXAMPLE:</h4><p>A bug in connection pool handling led to leaked connections under failure conditions, combined with lack of visibility into connection state.</p><h3>Backlog check</h3><p>Review your engineering backlog to find out if there was any unplanned work there that could have prevented this incident, or at least reduced its impact?</p><p>A clear-eyed assessment of the backlog can shed light on past decisions around priority and risk.</p><h4>EXAMPLE:</h4><p>No specific items in the backlog that could have improved this service. There is a note about improvements to flow typing, and these were ongoing tasks with workflows in place.</p><p>There have been tickets submitted for improving integration tests but so far they haven’t been successful.</p><h3>Recurrence</h3><p>Now that you know the root cause, can you look back and see any other incidents that could have the same root cause? If yes, note what mitigation was attempted in those incidents and ask why this incident occurred again.</p><h4>EXAMPLE:</h4><p>This same root cause resulted in incidents HOT-13432, HOT-14932 and HOT-19452.</p><h3>Lessons learned</h3><p>Discuss what went well in the incident response, what could have been improved, and where there are opportunities for improvement.</p><h4>EXAMPLE:</h4><ul><li>Need a unit test to verify the rate-limiter for work has been properly maintained</li><li>Bulk operation workloads which are atypical of normal operation should be reviewed</li><li>Bulk ops should start slowly and monitored, increasing when service metrics appear nominal</li></ul><h3>Corrective actions</h3><p>Describe the corrective action ordered to prevent this class of incident in the future. Note who is responsible and when they have to complete the work and where that work is being tracked.</p><h4>EXAMPLE:</h4><ol><li>Manual auto-scaling rate limit put in place temporarily to limit failures</li><li>Unit test and re-introduction of job rate limiting</li><li>Introduction of a secondary mechanism to collect distributed rate information across cluster to guide scaling effects</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb2abb82bdc2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens when you type https://www.google.com in your browser and press Enter.]]></title>
            <link>https://medium.com/@petrosabebe3/what-happens-when-you-type-https-www-google-com-in-your-browser-and-press-enter-165025900c0f?source=rss-11df0b45ff82------2</link>
            <guid isPermaLink="false">https://medium.com/p/165025900c0f</guid>
            <dc:creator><![CDATA[Petros Abebe]]></dc:creator>
            <pubDate>Sun, 06 Nov 2022 19:15:59 GMT</pubDate>
            <atom:updated>2022-11-06T19:15:59.789Z</atom:updated>
            <content:encoded><![CDATA[<p>Before I begin answering the questions, I need to define a few terms.</p><h4><strong>URL (Uniform Resource Locator)</strong></h4><p>URL makes it possible for a computer to locate and open a <a href="https://www.computerhope.com/jargon/w/webpage.htm">web page</a> on a different computer on the Internet. An example of a URL is <a href="https://www.computerhope.com/">https://www.google.com</a>. it contains the following parts as presented in the figure below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*3p9rGnLw78cVRb-S.png" /></figure><ul><li>Protocol — https— the data transfer method to be used between the client and server. In this case, the protocol is HTTPS (Hypertext Transfer Protocol Secure).</li><li>Hostname — www.google.com— the domain name corresponding to the IP address of the server.</li><li>Port — the port (think of it like the server’s mailbox) where our request will be sent. Empty in our example URL, but correspondingly implied by the web browser based on the protocol — HTTPS uses port 443.</li><li>Path-and-file-name — the name of the file requested and its location in the server’s directory. Also left empty in our example URL, thus implied that we are querying the server at the root /.</li></ul><p>In short, our URL specifies that we wish to access the file configured at the root directory of the server hosting www.google.com. Further, we are directing the browser to contact this server at port 443 through HTTPS.</p><h4>Web Browser</h4><p>A web browser takes you anywhere on the internet. It retrieves information from other parts of the web and displays it on your desktop or mobile device. The information is transferred using the Hypertext Transfer Protocol, which defines how text, images and video are transmitted on the web. This information needs to be shared and displayed in a consistent format so that people using any browser, anywhere in the world can see the information.</p><p>After parsing the URL, the web browser does some double-checking on the hostname, www.holbertonschool.com. First, it scans it for any non-ASCII characters, a-z, A-Z, 0-9, . or -. Our given URL is clean, but in the case it contained a weird character, Firefox would use <a href="https://www.punycoder.com/">Punycode</a> to encode the URL into a functional string.</p><p>Finally, the web browser checks caches. Recall that web browsers are just like us. Humans don’t like repeating work they’ve already done, and again, browsers are the same way. In its cache, your browser keeps a running storage of recent hostnames that it has already resolved.</p><p>The steps your browser takes to:</p><ul><li>look up the location of the server hosting the website</li><li>make the connection to the server</li><li>send a request to get the specific page</li><li>handle the response from the server and</li><li>how it renders the page so you, the viewer, can interact with the website.</li></ul><p>After typing google.com in your browser and pressing enter, your browser first checks if the domain, google.com, is in its DNS cache.</p><p><strong>DNS (Domain Name System)</strong></p><p>The Domain Name System (DNS) is the hierarchical and decentralized naming system used to identify computers, services, and other resources reachable through the Internet or other Internet Protocol (IP) networks. The resource records contained in the DNS associate domain names with other forms of information. Domain names are mapped to the numerical IP addresses, and this comes as a result of the fact that humans prefer names to numbers as it is easy to grasp as compared to just numbers which the computer understands. For example, <a href="http://www.google.com/">www.google.com</a> (which is a Fully Qualified Domain NAME — FQDN) is easily remembered than 172.217.17.36.</p><p>DNS is a query/response protocol. The client queries an information (for example the IP address corresponding to <a href="http://www.google.com)/">www.google.com)</a> in a single Transmission Control Protocol (TCP) request. This request is followed by a single TCP reply from the DNS server with the IP address corresponding to the domain name.<br>TCP/IP</p><p><strong>TCP/IP (Transmission Control Protocol/ Internet Protocol)</strong></p><p>TCP is a connection-oriented protocol and one of the main protocols of the Internet protocol suite. It serves as a connection between client and server which must be established before data can be sent. The server must be listening for connection requests from clients before a connection is established. Applications that do not require reliable data stream service may use the User Datagram Protocol (UDP), which provides a connectionless datagram service that prioritizes time over reliability.</p><p>The Internet Protocol (IP) is the network layer communications protocol in the Internet protocol suite for relaying datagrams across network boundaries. Its routing function enables internetworking, and essentially establishes the Internet. The Internet Protocol is responsible for addressing host interfaces, encapsulating data into datagrams (including fragmentation and reassembly) and routing datagrams from a source host interface to a destination host interface across one or more IP networks. For these purposes, the Internet Protocol defines the format of packets and provides an addressing system.</p><p>IP has the task of delivering packets from the source host to the destination host solely based on the IP addresses in the packet headers. For this purpose, IP defines packet structures that encapsulate the data to be delivered. It also defines addressing methods that are used to label the datagram with source and destination information.</p><p><strong>FIREWALL</strong></p><p>A firewall is a network security system that monitors, and controls incoming and outgoing network traffic based on predetermined security rules. It typically establishes a barrier between a trusted network and an untrusted network, such as the Internet.</p><p>The firewall maintains an access control list which dictates what packets will be looked at and what action should be applied, if any, with the default action set to silent discard. Three basic actions regarding the packet consist of a silent discard, discard with Internet Control Message Protocol or TCP reset response to the sender, and forward to the next hop. Packets may be filtered by source and destination IP addresses, protocol, source and destination ports.</p><p><strong>HTTPS/SSL</strong></p><p>Hypertext Transfer Protocol Secure (HTTPS) is an extension of the Hypertext Transfer Protocol (HTTP). It is used for secure communication over a computer network, and is widely used on the Internet. In HTTPS, the communication protocol is encrypted using Secure Sockets Layer (SSL). The protocol is therefore also referred to as HTTP over SSL.</p><p>Secure Sockets Layer (SSL), is a cryptographic protocol designed to provide communications security over a computer network. The protocol is widely used in applications such as email, instant messaging, and voice over IP, but its use in securing HTTPS remains the most publicly visible.</p><p><strong>LOAD — BALANCER</strong></p><p>A load balancer is a device that acts as a reverse proxy and distributes network or application traffic across a number of servers. Load balancers are used to improve the overall performance of applications by reducing the burden on servers associated with managing and maintaining application and network sessions, as well as by performing application-specific tasks.Load balancing can optimize the response time and avoid unevenly overloading some compute nodes while other compute nodes are left idle. <em>HaProxy </em>is a type of load-balancer.</p><p><strong>WEB SERVER</strong></p><p>A web server is computer software and underlying hardware that accepts requests via HTTP (the network protocol created to distribute web content) or its secure variant HTTPS. A user agent, commonly a web browser initiates communication by making a request for a web page or other resource using HTTP, and the server responds with the content of that resource or an error message. A web server can also accept and store resources sent from the user agent if configured to do so.</p><p>The hardware used to run a web server can vary according to the volume of requests that it needs to handle. At the low end of the range are embedded systems, such as a router that runs a small web server as its configuration interface. A high-traffic Internet website might handle requests with hundreds of servers that run on racks of high-speed computers. Examples of Web servers are Nginx and Apache.</p><p><strong>APPLICATION SERVER</strong></p><p>An application server is a server that hosts applications. Application server frameworks are software frameworks for building application servers. An application server framework provides both facilities to create web applications and a server environment to run them.</p><p>An application server framework contains a comprehensive service layer model. It includes a set of components accessible to the software developer through a standard API defined for the platform itself. For Web applications, these components usually run in the same environment as their web server(s), and their main job is to support the construction of dynamic pages. However, many application servers do more than generate web pages: they implement services such as clustering, fail-over, and load-balancing, so developers can focus on implementing the business logic.</p><p><strong>DATABASE</strong></p><p>A database is an organized collection of data stored and accessed electronically. A database management system (DBMS) is the software that interacts with end users, applications, and the database itself to capture and analyze the data. The DBMS software additionally encompasses the core facilities provided to administer the database. The sum total of the database, the DBMS and the associated applications can be referred to as a database system. Often the term “database” is also used loosely to refer to any of the DBMS, the database system or an application associated with the database.</p><p>Computer scientists may classify database management systems according to the database models that they support. First is the Relational databases became dominant in the 1980s. These model data as rows and columns in a series of tables, and the vast majority use SQL for writing and querying data. The other became popular In the 2000s — Non-relational databases, collectively referred to as NoSQL because they use different query languages.</p><p>Anytime you enter a URL in the address box of the browser, the browser will translate the URL into a request message according to the specified protocol and send the request message to the server.</p><p>Using <a href="https://www.google.com,/">https://www.google.com,</a> the browser will translate the URL into the following</p><p>GET index.html HTTPS/1.1 (which is the default html file for the server)</p><p>Host: <a href="http://www.google.com/">www.google.com</a></p><p>Accept: image/gif, image/jpeg, */*</p><p>Accept-Language: en-us</p><p>Accept-Encoding: gzip, deflate</p><p>User-Agent: Mozilla/4.0 (compatibility will be displayed here)</p><p>When the request gets to the load balancer, it will be passed through the firewall and when it meets the firewall requirements, it will then be passed onto the designated server by the load balancer.</p><p>When the request message reaches the server, the server can take either one of the following actions:</p><p>The server interprets the request received and maps the file into a file under the server’s document directory and returns the file requested to the client.<br>The server interprets the request received and maps the request into a program kept in the server, executes the program and returns the output of the program to the client.<br>The request cannot be satisfied, the server returns an error message.</p><p>The browser receives the response message, interprets it and displays the contents of the message on the browser’s window according to the type of the response.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=165025900c0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>