<?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 Shashilpi Krishan on Medium]]></title>
        <description><![CDATA[Stories by Shashilpi Krishan on Medium]]></description>
        <link>https://medium.com/@shashilpikrishan?source=rss-c52a3efc64bd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HC02tzpv9Fx3kFUvcBcyMA.jpeg</url>
            <title>Stories by Shashilpi Krishan on Medium</title>
            <link>https://medium.com/@shashilpikrishan?source=rss-c52a3efc64bd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 20:28:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shashilpikrishan/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[ECHO : Season — 3 | Knowledge Blow]]></title>
            <link>https://tech.makemytrip.com/echo-season-3-knowledge-blow-5fadbff68b16?source=rss-c52a3efc64bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fadbff68b16</guid>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[makemytrip]]></category>
            <category><![CDATA[tech-conference]]></category>
            <dc:creator><![CDATA[Shashilpi Krishan]]></dc:creator>
            <pubDate>Thu, 01 Sep 2022 05:45:49 GMT</pubDate>
            <atom:updated>2022-09-01T05:47:58.905Z</atom:updated>
            <content:encoded><![CDATA[<h3>ECHO : Season — 3 | Knowledge Blow</h3><h3>About ECHO</h3><p>ECHO, is a tech community, which is founded by MakeMyTrip professionals, with a vision to use this platform to collaborate &amp; share the work &amp; innovations with rest of the techies. It highly focused on doing tech-talks, hosting conferences, hackathons, bug-bounty program, writing blogs/articles on topics related to DevOps, Security, Cloud, Infrastructure, QC/QA, Engineering, Architectures, Observability, Operational Excellence etc.</p><h3>Past Events:</h3><p>2 major events were successfully hosted by this community, one in Gurugram and another in Bangalore.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*OReAzd3mehoqI9tnI9Dp0Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*FUfk4Rg9AEEjKKJI29GEpw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pt5vo0vc60aUEBFRMOmYJA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R24yhBNvP2GhTda1kzae2g.jpeg" /></figure><h3>ECHO | Season 3 | 10 Sep 2022 at MakeMyTrip HQ, Gurugram</h3><p>Post Covid, we are restarting with the 3rd Iteration of ECHO and this season is called “Knowledge Blow”.</p><p><strong>Official Registration post</strong></p><p>Ever wondered what powers a great online platform? How are millions of requests handled behind the scenes? How do teams deliver new features (and fixes), frequently and seamlessly?</p><p>MakeMyTrip, <strong>in collaboration with AWS</strong>, is excited to announce the 3rd iteration of the tech conference “ECHO: Knowledge Blow”. An event where all these questions and more will be answered, for the curious minds out there.</p><p>An event that is an enriching confluence of bright minds, inspiring innovations and limitless possibilities. Be ready for a day full of learning exciting things around <a href="https://www.linkedin.com/feed/hashtag/?keywords=cloud&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6965203265034547200"><strong>#Cloud</strong></a><strong> </strong><a href="https://www.linkedin.com/feed/hashtag/?keywords=devops&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6965203265034547200"><strong>#DevOps</strong></a><strong> </strong><a href="https://www.linkedin.com/feed/hashtag/?keywords=qa&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6965203265034547200"><strong>#QA</strong></a><strong> </strong><a href="https://www.linkedin.com/feed/hashtag/?keywords=aws&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6965203265034547200"><strong>#AWS</strong></a><strong> </strong><a href="https://www.linkedin.com/feed/hashtag/?keywords=automation&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6965203265034547200"><strong>#Automation</strong></a><strong> </strong><a href="https://www.linkedin.com/feed/hashtag/?keywords=continuousdeploymentatscale&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6965203265034547200"><strong>#ContinuousDeploymentAtScale</strong></a><strong> </strong><a href="https://www.linkedin.com/feed/hashtag/?keywords=sitereliability&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6965203265034547200"><strong>#SiteReliability</strong></a><strong> </strong><a href="https://www.linkedin.com/feed/hashtag/?keywords=networking&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6965203265034547200"><strong>#Networking</strong></a><strong> </strong><a href="https://www.linkedin.com/feed/hashtag/?keywords=microservices&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6965203265034547200"><strong>#Microservices</strong></a><strong> </strong><a href="https://www.linkedin.com/feed/hashtag/?keywords=iac&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6965203265034547200"><strong>#IaC</strong></a><strong> </strong>with live demos, Q&amp;A and best practices. Don’t miss out on such a golden chance to connect and learn from the industry experts.</p><p>Registration Link: <a href="https://bit.ly/3dhKP4p">https://bit.ly/3dhKP4p</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*DnP8JlELmWSIfHQHz6vOfQ.jpeg" /></figure><h3>Event Day Schedule</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ZAAUYA6GOtKYGJH0jmCfg.png" /></figure><h3>Point of Contacts:</h3><ol><li>Mohd Kafeel Khan, mohd.khan2@go-mmt.com</li><li>Shashilpi Krishan, shashilpi.krishan@go-mmt.com</li><li>Rahul Yadav, rahul.yadav@go-mmt.com</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fadbff68b16" width="1" height="1" alt=""><hr><p><a href="https://tech.makemytrip.com/echo-season-3-knowledge-blow-5fadbff68b16">ECHO : Season — 3 | Knowledge Blow</a> was originally published in <a href="https://tech.makemytrip.com/">MakeMyTrip-Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitoring large scale e-commerce websites at MakeMyTrip — Part 3]]></title>
            <link>https://tech.makemytrip.com/monitoring-large-scale-e-commerce-websites-at-makemytrip-part-3-d57a6d73dbb0?source=rss-c52a3efc64bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d57a6d73dbb0</guid>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[e-commerce-software]]></category>
            <category><![CDATA[alerting]]></category>
            <category><![CDATA[operational-excellence]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Shashilpi Krishan]]></dc:creator>
            <pubDate>Mon, 14 Jan 2019 09:19:32 GMT</pubDate>
            <atom:updated>2019-01-14T09:19:32.011Z</atom:updated>
            <content:encoded><![CDATA[<h3>Monitoring large scale e-commerce websites at MakeMyTrip — Part 3</h3><p>The objective of this blog series is to share how monitoring is done at MakeMyTrip. In this part, we will cover Business &amp; Granular application metrics aspects.</p><h3>“(What/Why/How) to measure from Biz perspective”</h3><p>Biz metrics vary from vertical to vertical. However, it is imperative to track these closely. Any unexpected deviation in these metrics can have direct business impact. Monitoring this separately with other metrics is important as there could be scenarios where all known metrics are fine but the problem is elsewhere e.g. better or similar external (third-party) offers, shopper/user trends, or the affected metric is not yet captured/tracked.</p><p>Let’s take a closer look at two different categories of metrics which together provide a holistic view of business.</p><h3>1. Biz Metrics</h3><p>For an e-commerce company, what matters most is the number of orders or transactions happening in a particular time interval (say 1 min or 5 mins). This translates to ‘Number of Room Nights’ for hotels, ‘Number of Segments i.e. seats sold’ in Flights. Along with total orders in a given time window, granular grouping of transactions is also important — device (Desktop, Android, iOS, PWA), data-centre or region, server, supplier (e.g Airlines for Flights), and version. Grouping helps diagnose the problem faster by converging on to the problem zone e.g. if problem is either generic or specific to data-centre, Supplier, Device etc.</p><p><strong>More Biz Metrics:</strong> Along with transactions, there are other biz metrics that should be tracked e.g. order confirmations, e-mails to customers (success/failure, time taken to send), discounting/coupons (attach rates, coupon wise success or failure), Wallet Burn and attach rate, Ancillary/Insurance attach rates, shoppers or conversion trends.</p><p>Other than successful transactions, we also track failed and lost transactions:</p><p>Lost transaction: A user attempts to pay and gets stuck after getting redirected to Payment Gateway. If the user has closed the session but payment was deducted and it never reached back to MakeMyTrip system, then it is considered as lost booking.</p><p>Failed transaction: A transaction is considered as failed when payment is successful but we are not able to confirm the booking due to ‘inventory sold out’ or some technical issue at supplier end or MakeMyTrip itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UhhxqqsVe-7Y6UWRIEuqow.png" /><figcaption>Failed &amp; LOST Transactions</figcaption></figure><p><strong>Biz Metrics specific to Payments</strong> are tracking success ratio at various payment stages e.g. how many users landed on Checkout page v/s how many actually proceeded to pay (better known as PAR — Payment Attempt Ratio). Another example is success rate of different PGs (Payment Gateways) i.e. how many users were routed to a PG v/s how many of those user transactions were successful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K-5qRAluyQWgqf6m_svkXg.png" /><figcaption>Payment Metrics Screenshot</figcaption></figure><h3><strong><em>2. Application Error Codes</em></strong></h3><p>Being a multi-tier application, there is another set of metrics which are highly focused and provides more granular view of any kind of application glitches like application loses DB connectivity, request validation failure, response parsing failed etc.</p><p>Error code is basically a 6-digit code (D1 to D6) where each digit(s) signifies something.</p><p>First digit (D1) signifies the emitter i.e. at which layer or component this error-code was generated.</p><p>Next digit (D2) tells about the error type like Validation, Logical, Connectivity, Marshaling errors etc.</p><p>Next 2 digits (D3, D4) are to show that emitter generated error while interacting with which layer e.g. if UI layer generates error while fetching data from cache then 1st digit is UI Layer &amp; next 2 are of Cache.</p><p>Last 2 digits (D5 &amp; D6) specify the actual reason for error e.g. 12 means check-in date null, 26 means search-string invalid, 71 means transaction amount is zero and many of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*rV_rDCft-UM_o3BBMrNuqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*O0KonNQkcyL2_nNshX9Tzg.png" /></figure><h3>Some Other Application KPIs</h3><p><strong>No results found for search</strong> e.g. No Hotels found for a City OR <strong>Hotel is sold-out</strong> for specific Check-in &amp; Check-out dates. Now this could be genuine as there might be no availability of Hotels for those dates <strong>OR</strong> it could be that we received availability from supplier but application had a problem showing available hotels. Now these 2 reasons are separately captured &amp; sent directly by application to Time Series Metric storage.</p><p><strong>Cache Hit/Miss Ratios </strong>is another interesting example. As we all know, in the e-commerce world where concurrency is high &amp; repeated users request for same resource, caching mechanisms play significant role. They facilitate the read latency of few milliseconds for same requests sent by different clients by caching the response at the first time it was requested. Now whenever a request is served completely from cache, it’s referred to as Cache Hit. Else, it’s Cache Miss since data is not in cache and the request is served by hitting downstream services of suppliers (this time response is cached for future). Here, it becomes critical to know about cache-hit rates as they can heavily impact the overall latency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lpN2EcmNKv2u1VoSvarbEA.png" /><figcaption>Cache Hit Rates Screenshot</figcaption></figure><p><strong>Price Change </strong>or Fare Change is another metric to track. Generally, the funnel flow has 2 pages — Search Page and Review Page.</p><p>The Search Page is dedicated to the search keyword e.g. someone looking for Hotels in Mumbai, India. This page would show the list of available hotels in the searched location.</p><p>From here, the user selects a hotel and moves to the Review Page which is dedicated to that particular hotel. For one session, a user checks the final price on review page for approximately 4–5 hotels. Hence, search pages are served from Cache (discussed above) and on the review page, a fresh call is made to the supplier to fetch the real-time price &amp; availability for that particular hotel. It is possible that while fetching real-time data, the price has increased which is captured as Price Change. Higher price change adversely impacts user experience &amp; hence the business.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ty4ZrvYRHSd5yS8reIqNDg.png" /><figcaption>Price Changes (UP &amp; DOWN)</figcaption></figure><h3>How do we capture these metrics at MakeMyTrip?</h3><p>Till now, we have discussed two kind of metrics — Biz Metrics and Application Error codes. Below diagram depicts metric collection for each of them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*pUoXSA3Dsm4LQS3XZeC1NQ.png" /></figure><h4><strong>Biz Metric Collection:-</strong></h4><p><strong><em>Data Ingestion:</em></strong> At MakeMyTrip, our applications generate biz metrics in two ways:</p><ol><li>Transaction/Orders data is pushed directly into MySQL</li><li>Request/responses, user sessions data are pushed into HDFS via KAFKA and later data can be queried using HIVE.</li></ol><p><strong><em>Metric Extraction: </em></strong>By this time, raw data is available in either of the data-sources i.e. MySQL &amp; HDFS. To extract metrics from the data, we write queries for MySQL or HIVE. Queries extensively uses Joins, Case &amp; if-else statements &amp; group by to create relevant metrics with dimensions (like number of transactions is metric with Device, Server, Browser, Version, Supplier are all dimensions).</p><p><strong><em>Metric Collection: </em></strong>Now, these queries are scheduled to run at periodic intervals (say every 1 min or 5 mins) at our home-grown Django-Python based scheduler ‘Data-Monster’. Below is a screenshot which shows the scheduler for hotel transaction count with collection at every 5 mins. Data-monster has<strong> </strong>another module<strong> Celery Beat</strong> which picks up the tasks at scheduled time and queues it into Rabbit MQ from where these queries are executed by celery workers. These workers convert the query output into ‘put statements’ for OpenTSDB which we use as time-series metric-storage and sends it to Kafka. From here, a storm topology picks messages and inserts into OpenTSDB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Hc55j416XmaowmxtcbMTEQ.png" /><figcaption>Data-Monster Configuration UI</figcaption></figure><h4>Application Error Code Collection:-</h4><p>At MakeMyTrip, we have developed an in-house Java library called ‘Metric Watcher’ which is bundled as JAR with application code and deployed in production. This light-weight code captures response codes generated by every application and other app-level granular metrics, periodically flushes those metrics into KAFKA which is again picked by the same Storm pipeline to insert into OpenTSDB.</p><p><strong>Application Logs Based Collection:</strong> Other than metric library, for applications where metric library is not yet integrated, we also extract metrics from application logs being dumped by applications on servers. Such application logs are shipped using file-beat, parsed using Logstash GROK and finally stashed in Elastic-Search. From here, we configure periodic monitors on Data Monster which polls Elasticsearch and ingest into OpenTSDB.</p><p>——x — — — x — — — x — — — x — — — x — — — x — — — x — — — x — —</p><p>Let’s call it a day but this is not the end! In the final part, I will cover how these metrics are finally consumed for visualization &amp; alerting perspective.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d57a6d73dbb0" width="1" height="1" alt=""><hr><p><a href="https://tech.makemytrip.com/monitoring-large-scale-e-commerce-websites-at-makemytrip-part-3-d57a6d73dbb0">Monitoring large scale e-commerce websites at MakeMyTrip — Part 3</a> was originally published in <a href="https://tech.makemytrip.com/">MakeMyTrip-Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitoring large scale e-commerce websites at MakeMyTrip — Part 2]]></title>
            <link>https://tech.makemytrip.com/monitoring-large-scale-e-commerce-websites-at-makemytrip-part-2-bf234c69709d?source=rss-c52a3efc64bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf234c69709d</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[elk]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Shashilpi Krishan]]></dc:creator>
            <pubDate>Sat, 30 Dec 2017 10:50:38 GMT</pubDate>
            <atom:updated>2017-12-30T10:50:38.895Z</atom:updated>
            <content:encoded><![CDATA[<p>Disclaimer: This blog series objective is to share that how monitoring is done at MakeMyTrip. I will publish series of 4–5 blogs to cover up so stay tuned. This part will cover app monitoring aspects and monitoring pipeline at MakeMyTrip.</p><h3>“(What/Why/How) to monitor Multi-tier Web Apps”</h3><p>This aspect is so vast and varies on application by application basis however on very high level they can be classified in server-side v/s client side performance monitoring, however here the focus is on server-side aspect.</p><h3>Few Concepts</h3><p><em>Mean vs Percentiles:</em><strong> </strong>Metrics like latency needs to be captured at various percentiles viz. 50th, 75th, 90th, 95th, 99th percentile instead of just average RT or Mean. Capturing the response for these percentiles really helps to quickly judge the gravity of a problem i.e. if 50th, 95th &amp; 98th percentile looks good but only 99th is degraded this indicates that 99% of the requests are processed with-in expected latency threshold and slowness is experienced by ~1% of the clients. In this scenario if latency of 1% is insanely bad then it would surely disturb Mean but actually it’s an outlier which should be investigated &amp; treated differently. Most common reason of such 1% degradation is either one server out of multi-server pool is bad OR some rogue slow-performing requests of which volume is low as compare to other request-types. On-the-other-hand when 50th (Median) percentile is also degraded then this indicates that problem is more severe and across servers and for high volume of requests.</p><p><em>Real-time monitoring with Granularity: </em>One also should understand that in multi-tier API based application, what’s important is how fast the metrics are available to visualize &amp; that too with utmost granularity i.e. one should be able to see overall app response time with various grouping/splits like API-wise, Server-wise, datacenter-wise and even traffic source type-wise (User vs Bot vs internal). Having all these splits available expedites the diagnosis &amp; greatly impacts MTTR (Mean Time to Recover). Equally important is that sooner you get the metrics better it is, the MTTD target (Mean Time To Detection) should be within 2–3 mins.</p><p><em>Response Code &amp; Request trends:</em><strong> </strong>In web applications, the vitality of the system also depends on HTTP response code response sent to client requests. If response code returned is 4xx series it means client has erred in sending request e.g. 400, 403, 404 etc. and similarly 5xx series clearly represents server side error i.e. server has understood the request but is incapable of serving the request hence ideally 5xx should be zero. <strong>Request trends </strong>is another must have metric as request pattern will surely drive app performance e.g. sudden requests spike may cause response degradation if the request rate breaches the capacity limit beyond application max. throughput. Another behavior we have seen is that when request volume is very low then also one may see higher response times, as chances of outlier disturbing the latency percentiles becomes very high. Last but not the least, having this trend is super-critical while performing capacity planning as this metric is widely used as unit of rated output/throughput of an application.</p><h3>Now! How we do this at MakeMyTrip?</h3><p>We have a sophisticated 6 stage monitoring pipeline which uses Web server &amp; Application logs as data source and is responsible for collection, aggregation, processing, storing and finally visualizing &amp; alerting. We are highly dependent on ELK stack which is fuel for Stage 1 &amp; 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*MkvfQo9SGIoetmMGAwqxbA.png" /></figure><p><strong>Stage -1: [Logs collection &amp; Shipping] </strong>It all starts with logs collection of every application server which is done through a ultra-light weight “SYSLOG-NG” agent deployed on all of them, purpose of which is to ship the logs to a centralized Logstash server on a specified port over UDP protocol hence no overhead on app server. Different logs are pushed on to different ports of Logstash server to aptly utilize the hardware resources. In syslog-ng.conf we define the <strong>source</strong> log file path and <strong>destination </strong>(Protocol, Host &amp; Port)</p><p><strong>Stage -2: [Logs parsing &amp; stashing] </strong>Logstash is an open source, server-side logs processing engine that ingests data from syslog-NG, transforms it using codecs (GROK, JSON) and then stash it to Elastic search. Our central Logstash server has multiple isolated Logstash processes where each process listens on specific port to read the logs ingested by Stage-1 from multiple application servers. Currently we ingest ~700 GB of logs per day which are processed by hundred Logstash processes hosted on multiple machines. Each process uses GROK parser to filter relevant log lines and separates logs into key-value fields like URL, METHOD, IP and output them to 2 different Elastic search clusters. Below is an example GROK:</p><p><strong>Request:</strong> <em>10.10.10.10 GET /api/index.html 15824 0.043</em></p><p><strong>GROK:</strong> <em>%{IP:client} %{WORD:method} %{URIPATHPARAM:request} %{NUMBER:bytes} %{NUMBER:duration}</em></p><p><strong>Stage -3: [Metric extraction setup &amp; aggregation] </strong>Now Elastic search has metrics for all the application but for every single request event. We have a home-grown Django-Python based tool “DATA MONSTER”. Here we setup the metric aggregation jobs which will poll elastic search at defined interval, querying for last 2 mins and also the ES index host URL with request body query . Also we specify JSON expression to extract metric value from JSON response sent by Elastic search.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JpMGERL-tgHEzZpMmiBRGA.png" /><figcaption>Data monster UI Metric configuration</figcaption></figure><p><strong>Stage -4: [Metrics computation] </strong>Now metrics are configured via data monster, all those configurations are stored in Django-based MySQL DB with URL &amp; scheduling details. <strong>Celery Beat</strong> is a scheduler which kicks off tasks at regular intervals and in our case it picks tasks from MySQL DB and queue it into Rabbit MQ. There its picked by celery workers which hits Elastic search with specified query, extracts metrics using JSON parser and finally generates OpenTSDB put statements and sends it to KAFKA cluster.</p><p><strong>Stage -5: [Metrics Storage] </strong>KAFKA messages ingested by celery are then consumed by Storm based processing engine where a continuous running topology reads the messages from KAFKA queue, validates the put statements generated by Datamonster for errors and inserts into OpenTSDB which is time-series metric storage database that works over HBASE. It has in-built metric aggregators like sum, zimsum, avg, percentiles and auto-down sampling capabilities.</p><p><strong>Stage -6: [Visualization &amp; Alerting] </strong>This is the final stage or the harvesting stage because it’s time to finally ripe and make use of the gathered metrics. We use “Grafana” for visualization which is tool that provides a powerful and elegant way to create, explore, and share dashboards and data including features like Fully-interactive graphs, Multiple Y-axes, template variables, plugins like panel plugins, diagram plugin etc. Another usage of these metrics is for alerting, for which we have “ZABBIX” (an enterprise level open source monitoring platform”. ZABBIX handles all kind of alerting through its key features like Trigger dependency, custom monitoring setup through scripts, event handling (auto-remedy script triggering in case of alert).</p><p>Let’s call it a day but not the end — Next part will be covering BIZ metrics &amp; app generated error codes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf234c69709d" width="1" height="1" alt=""><hr><p><a href="https://tech.makemytrip.com/monitoring-large-scale-e-commerce-websites-at-makemytrip-part-2-bf234c69709d">Monitoring large scale e-commerce websites at MakeMyTrip — Part 2</a> was originally published in <a href="https://tech.makemytrip.com/">MakeMyTrip-Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitoring large scale e-commerce websites at MakeMyTrip — Part 1]]></title>
            <link>https://tech.makemytrip.com/monitoring-large-scale-e-commerce-websites-at-makemytrip-part-1-ce50499b90ee?source=rss-c52a3efc64bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce50499b90ee</guid>
            <category><![CDATA[uptime]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[site-reliability]]></category>
            <category><![CDATA[proactive-operations]]></category>
            <dc:creator><![CDATA[Shashilpi Krishan]]></dc:creator>
            <pubDate>Tue, 19 Dec 2017 11:00:38 GMT</pubDate>
            <atom:updated>2017-12-30T08:26:26.764Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*uLJUi2kvNAkNREwZkFR6Rw.jpeg" /></figure><p>Disclaimer: This blog series objective is to share that how monitoring is done at MakeMyTrip. I will publish series of 4–5 blogs to cover up so stay tuned. Here we are going to just focus around system &amp; network aspect of monitoring.</p><h3>About MMT Infra</h3><p>At MakeMyTrip (MMT) to host all business verticals we have hundred of applications running on several virtual &amp; bare metal machines. Our infra is spread out in hybrid environment of data centers, public &amp; private cloud.</p><h3>“(What/Why/How) to monitor”</h3><p>Before jumping on how to monitor, first one should know “What to monitor &amp; why” i.e. what are different KPI (key performance indicator) to monitor for an e-commerce website.</p><p><strong>System Metrics: </strong>CPU/Load Average, Memory (RAM, Swap, Heap), threads, connections, Disk space, Disk performance.</p><p><strong>CPU Utilization vs Load Avg</strong>: Both can be checked using top command at same time. Higher CPU utilization could be one of the factor which might affect performance but same can also be impacted due to higher disk utilization or memory deficiency. Basically Load average value means that how many processes are waiting for CPU cycles which in turn would be busy or waiting for disk IO or Memory to respond. Hence if any system resource is choked then load average will go up. Having said that, CPU is a good metric but might fluctuate hence Load average is always something to keep a tab on. Linux displays 3 Load averages like <em>load average: 0.75, 1.20, 3.30 </em>which means average of 1min, 5min, 15min respectively. Now 1 min average might go high due to spikes but if 5min average goes higher than number of CPU cores then one should be worried. E.g if a system has 4 CPU cores then having load average of 4 means that all 4 CPU are 100% utilized and any more processor requests will be queued.</p><p><strong>Memory/Swapping: </strong>Having zero swap usage is ideal scenario as swap usage directly impacts performance. Same can be checked using free -m command and if SWAP is being used then this will surely degrade One best example is that if someone runs GREP or VI a large log file then all memory gets eaten up by this GREP/VI process and hence killing the application due to out-of-memory.</p><p><strong>Disk performance:</strong> Disk space utilization is something which every one monitors however what gets overlooked is disk performance i.e. read/write ops per second (<strong>tps), average wait time (await</strong>), disk utilization etc. These all can be checked using commands like <strong>iostat, iotop</strong>, sar -d and if you are using SATA or SAS drive then max. <strong>IOPS </strong>supported is 200 however SSD supports ~2000 as well. Higher IOPS than supported can very well degrade performance which is mostly ignored while debugging problems.</p><p><strong>Network monitoring:</strong> Network availability is vital for an e-commerce company and so is it at MakeMyTrip. Primarily we use PING checks for inter-DC &amp; internet connectivity. For bandwidth monitoring at network device level, we highly rely on low-maintenance monitoring platform “Observium” and for external network content checks we use “Uptime Robot” which constantly pings our externally exposed domains from external network every minute and alert in case of unavailability .</p><p><strong>Heap/Threads/Connections:</strong> Many times we have seen the early pointer for a problem is indicated through these metrics. One can prevent or reduce the impact considerably by early detection of deviation around these KPIs. This group of metrics most of the time directly points to memory leak, non-optimized thread pool configs kind of problems and hence must be part of your monitoring quiver.</p><h3>How we do system monitoring</h3><p><strong>Concept &amp; Tools: </strong>Monitoring can be done either through push or pull model, for system level monitoring where you have to monitor so many individual servers its always better to rely on push model. For that we have deployed light weight agent <strong>ZABBIX </strong>on each server. Zabbix is the ultimate enterprise-level software designed for real-time monitoring of millions of system metrics collected from thousands of servers, services and network devices . Zabbix provides highly rich alerting along with visualization of captured metrics.</p><p><strong>Visualization:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*EuLdHvZ0pMneF7jSZmObgA.png" /><figcaption><strong>Grafana visualization screenshot</strong></figcaption></figure><p>We also use Diamond to flush system metrics to OpenTSDB (centralized time-series metric storage db) in every 2 mins for all production systems to visualize a comprehensive picture of system, application &amp; biz metrics. For all production servers we have 40 different metric which generates almost hundred of thousands metric data points every 2 mins. We have multi-node cluster for OpenTSDB (setup details of which I will share in later blogs) to support 6 months retention of captured metrics which can be visualized on Grafana (our visualization-dashboard tool).</p><p><strong>Alerting:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*1xujIwNg0A2t1hD5obzsIA.png" /><figcaption><strong>Zabbix Alerts Screenshot</strong></figcaption></figure><p>As already mentioned that we use ZABBIX agent on each server which send metrics to centralized ZABBIX server of respective DC. One super good feature we use of Zabbix is Auto-registration &amp; Templates which is that as soon as a new server gets launched whether in DC or cloud, it will have Zabbix agent bundled as part of OS kick-start image which means that after new instance boots up it will automatically gets register on Zabbix as new host under relevant host group, gets linked to basic LINUX common template which will auto-create monitoring setup without any manual intervention. Basic LINUX common template will have alerting for CPU Utilization, Load Avg 5mins, Java threads, Disk space usage, Disk performance, ICMP ping. Other than common template, for each host group we have another template which has application specific content check based HEALTH CHECK alerts, PORT monitoring, application process monitoring etc.</p><p>Let’s call it a day but not the end — Will be back soon with next part where I will show details on application SLA &amp; business monitoring including the architecture, tools, challenges we faced.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce50499b90ee" width="1" height="1" alt=""><hr><p><a href="https://tech.makemytrip.com/monitoring-large-scale-e-commerce-websites-at-makemytrip-part-1-ce50499b90ee">Monitoring large scale e-commerce websites at MakeMyTrip — Part 1</a> was originally published in <a href="https://tech.makemytrip.com/">MakeMyTrip-Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>