﻿<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD with MathML3 v1.2 20190208//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article
    xmlns:mml="http://www.w3.org/1998/Math/MathML"
    xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="review-article">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">UJBM</journal-id>
      <journal-title-group>
        <journal-title>Universal Journal of Business and Management</journal-title>
      </journal-title-group>
      <issn pub-type="epub">2770-1964</issn>
      <issn pub-type="ppub"></issn>
      <publisher>
        <publisher-name>Science Publications</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.31586/ujbm.2021.1381</article-id>
      <article-id pub-id-type="publisher-id">UJBM-1381</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Review Article</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>
          Keeping Grocery Supply Chain Systems Available 24/7 with Standby Database Protection
        </article-title>
      </title-group>
      <contrib-group>
<contrib contrib-type="author">
<name>
<surname>Kondi</surname>
<given-names>Chandra Sekhar</given-names>
</name>
<xref rid="af1" ref-type="aff">1</xref>
<xref rid="cr1" ref-type="corresp">*</xref>
</contrib>
      </contrib-group>
<aff id="af1"><label>1</label> Principal Engineer, Database Admin, USA</aff>
<author-notes>
<corresp id="c1">
<label>*</label>Corresponding author at: Principal Engineer, Database Admin, USA
</corresp>
</author-notes>
      <pub-date pub-type="epub">
        <day>03</day>
        <month>06</month>
        <year>2021</year>
      </pub-date>
      <volume>1</volume>
      <issue>1</issue>
      <history>
        <date date-type="received">
          <day>02</day>
          <month>04</month>
          <year>2021</year>
        </date>
        <date date-type="rev-recd">
          <day>21</day>
          <month>05</month>
          <year>2021</year>
        </date>
        <date date-type="accepted">
          <day>01</day>
          <month>06</month>
          <year>2021</year>
        </date>
        <date date-type="pub">
          <day>03</day>
          <month>06</month>
          <year>2021</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>&#xa9; Copyright 2021 by authors and Trend Research Publishing Inc. </copyright-statement>
        <copyright-year>2021</copyright-year>
        <license license-type="open-access" xlink:href="http://creativecommons.org/licenses/by/4.0/">
          <license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p>
        </license>
      </permissions>
      <abstract>
        A grocery supply chain cannot afford to stop for a moment. Disruptions can spoil food, delay fulfilment, and frustrate customers. Achieving continuous availability for a business-critical component is thus essential; standby database protection enables such capability. This paper synthesizes observations on standby protection and related topics such as recovery models, failover mechanisms, and architectures supporting 24/7 operations, specifically in relation to grocery supply chains. The exploration begins by defining key concepts; concepts are placed within context by a historical overview of reliability practices that also reveals areas of evolution. The Linux Database Management System (LDDBMS) catalogue of commonly used database technologies is then consulted to describe the specific set of capabilities present in 2021. Finally, supporting operational practices&#x02014;including incident response workflows, disaster recovery planning, and tabletop-testing plugs&#x02014;are covered. Databases are an essential part of almost every service. They handle high volumes of read traffic and moderate amounts of write traffic. Although services can be supported by a cluster of servers, a single database is still often a key business area. A database requires technical and engineering expertise to maintain. It is also the service that most needs to be changed, scaled, and monitored. Often, e-commerce and content-management systems are required to run 24/7 without any interruptions. Any planned maintenance will require at least a maintenance window or some downtime. To facilitate a stand-by database for business-continuity compliance, there are standard operating procedures for major incidents and a design document fulfilling all major aspects of continuous availability.
      </abstract>
      <kwd-group>
        <kwd-group><kwd>Database High Availability</kwd>
<kwd>Grocery Supply Chain</kwd>
<kwd>Standby Database Protection</kwd>
<kwd>Continuous Availability</kwd>
<kwd>Disaster Recovery</kwd>
<kwd>Failover Mechanisms</kwd>
<kwd>Fault Tolerance</kwd>
<kwd>Business Continuity</kwd>
<kwd>Incident Response</kwd>
<kwd>Database Reliability</kwd>
</kwd-group>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec1">
<title>Introduction</title><p>Food and grocery supply chains increasingly employ 24/7 operations to meet consumer demand, adapt to the pandemic, and comply with supermarket data regulation. Uninterrupted availability of supporting database systems can be hard to achieve [
<xref ref-type="bibr" rid="R1">1</xref>], yet downtime usually impacts sales and customer service. An analysis of standby database protection as a means of achieving continuous availability finds that the standby concept, applied to both hot and cold operations, has been around for years but is still frequently neglected or misunderstood.</p>
<p>Food and grocery supply chains have been operating on a 24/7 basis for some time, shaped by meeting shift worker lifestyle demands, preparing for online retail activities [
<xref ref-type="bibr" rid="R2">2</xref>], ensuring timely response to the pandemic [
<xref ref-type="bibr" rid="R3">3</xref>,<xref ref-type="bibr" rid="R4">4</xref>], and delivering in-house customer or citizen demand. Evolving supermarket data regulations require controlled and audited use of customer information. However, operational continuity for technology systems, notably for supporting database servers, is frequently overlooked. Yet, any significant outage usually results in unplanned loss of sales and deteriorating customer service. The technology answer typically revolves around standby database protection, a topic with a long history in the data engineering and production space. It has been found that standby naturally applies to environments running two or more data centres, be they hot, poised for rapid availability, or cold, waiting to offer any availability at all.</p>
</sec><sec id="sec2">
<title>Background and Context</title><p>The impact of database failure on the ability of grocery supply chains to fulfil online requirements is increasingly significant, and requires continuous database availability. Availability is commonly considered the most important quality criterion for computing systems, and fourth-quadrant operations emphasise 24/7 capability. Historical databases offer good reliability and fast recovery but leave large windows of vulnerability. Active-active high-availability databases eliminate downtime, but entail increased operating costs [
<xref ref-type="bibr" rid="R5">5</xref>,<xref ref-type="bibr" rid="R6">6</xref>]. Other standby protection techniques &#x26;#x02013; where a replica only serves in the event of primary failure &#x26;#x02013; achieve higher service levels than historical methods, while accepting greater downtime than active-active solutions [
<xref ref-type="bibr" rid="R7">7</xref>]. Grocery operations are particularly sensitive to operational downtime because they use the underlying infrastructure (e.g. warehouses, fulfilment centres) round the clock [
<xref ref-type="bibr" rid="R8">8</xref>,<xref ref-type="bibr" rid="R9">9</xref>], with other disruptions and delay costs tending to crowd the fourth quadrant. It is thus possible to enhance operational resilience at acceptable cost and risk by aligning standby-capable database technologies with suitable operational practices. A review of supporting business processes demonstrates that 24/7 supply chain practice is supported by standby-capable database technologies, processes for detecting issues and tracking system health, a dedicated group to investigate and resolve incidents, and a programme of disaster recovery planning that validates incident escalation plans and supports testing of the standby database.</p>
<p>In the fast-moving world of retail logistics, reliability is of paramount importance: systems must not only be available seven days a week, but also supported 24 hours a day. Unlike for many organisations that employ the underlying infrastructure sporadically to stabilise financial performance, retailers&#x26;#x02019; investments in order-fulfilment systems are committed throughout the week and day. Earnings reports indicate that for some retailers, as much as 80% of trading profit is generated by online operations. But as parts of the service-level agreement associated with grocery home shopping service fulfilment become internalised and part of the operation of the store offer, the cost of downtime increases. Disruption to these non-scale resources (warehouses and fulfilment centres) can not only have direct operational delays and issues, but also incur a hidden cost of creating delays for more scale-type resources (trucks) for a period of time after the event [
<xref ref-type="bibr" rid="R10">10</xref>]. During 2021 it was suggested that three-quarters of service requests were restoration in nature; it should therefore be possible to enhance resilience by adopting standby-capable database technologies, supported by suitable operational practices. The standby architectures compared in this study are summarized inTable <xref ref-type="table" rid="tab1">1</xref>, and the model parameters and their provenance are listed inTable <xref ref-type="table" rid="tab2">2</xref>.</p>
<title>2.1. Evaluation Setup</title><table-wrap id="tab1">
<label>Table 1</label>
<caption>
<p><b>Table 1</b><b>.</b><b> Architecture Summary of Standby Models</b></p>
</caption>

<table>
<thead>
<tr>
<th align="center"><bold>Model</bold></th>
<th align="center"><bold>A</bold></th>
<th align="center"><bold>B</bold></th>
<th align="center"><bold>C</bold></th>
<th align="center"><bold>D</bold></th>
<th align="center"></th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">Replication</td>
<td align="center">Async  log ship</td>
<td align="center">Async  stream</td>
<td align="center">Sync  stream</td>
<td align="center">Sync,  multi-site</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">Failover</td>
<td align="center">Manual</td>
<td align="center">Manual  (runbook)</td>
<td align="center">Automated</td>
<td align="center">None  needed</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">Standby  role</td>
<td align="center">Passive,  read-only</td>
<td align="center">Passive</td>
<td align="center">Passive</td>
<td align="center">Active</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">RPO  (min)</td>
<td align="center">60&#x02013;1,440</td>
<td align="center">5&#x02013;30</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">RTO  (min)</td>
<td align="center">480&#x02013;1,440</td>
<td align="center">30&#x02013;120</td>
<td align="center">5&#x02013;30</td>
<td align="center">0</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">Indicative  tech.*</td>
<td align="center">SQL  Server log shipping</td>
<td align="center">Oracle  Data Guard</td>
<td align="center">Oracle  Data Guard</td>
<td align="center">Multi-site  cluster</td>
<td align="center"></td>
</tr>
<tr>
<td align="center" colspan="5">
<hr />
</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>

</fn>
</table-wrap-foot>
</table-wrap><table-wrap id="tab2">
<label>Table 2</label>
<caption>
<p><b>Table 2</b><b>.</b><b> Model Parameters and Provenance</b></p>
</caption>

<table>
<thead>
<tr>
<th align="center"><bold>Parameter</bold></th>
<th align="center"><bold>Value</bold></th>
<th align="center"><bold>Origin</bold></th>
<th align="center"></th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">RPO,  RTO ranges</td>
<td align="center">Table  1</td>
<td align="center">Source  [1]</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">Online  profit share s</td>
<td align="center">0.80</td>
<td align="center">Source  [1] (upper bound)</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">Max.  data-loss target</td>
<td align="center">15  min</td>
<td align="center">Source  [1]</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">Incidents  per year &#x003bb;</td>
<td align="center">4</td>
<td align="center">Assumed</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">Residual  downtime D_res</td>
<td align="center">5  min/yr</td>
<td align="center">Assumed</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">RTO  stage split</td>
<td align="center">Table  VI</td>
<td align="center">Assumed  (sums to RTO mid.)</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">Batch  apply time s</td>
<td align="center">0.5  s</td>
<td align="center">Assumed</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">Peak  load &#x003c1;&#x00026;#8320; / &#x003c6;</td>
<td align="center">0.70  / see text</td>
<td align="center">Assumed</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">T_loc,  RTT, T_ovh</td>
<td align="center">4,  12, 0&#x02013;3 ms</td>
<td align="center">Assumed</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">Poll  interval &#x00394;</td>
<td align="center">300/30/10/5  s</td>
<td align="center">Assumed</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">d&#x00026;#8320;,  &#x003c0;, T_w</td>
<td align="center">1.0,  0.05, 300 s</td>
<td align="center">Assumed</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">C_inf  (A&#x02013;D)</td>
<td align="center">0.15/0.30/0.60/1.20</td>
<td align="center">Assumed  (% profit)</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">c_l,  &#x003ba;</td>
<td align="center">0.3,  1 (baseline)</td>
<td align="center">Assumed</td>
<td align="center"></td>
</tr>
<tr>
<td align="center">RTO_SLA</td>
<td align="center">30  min</td>
<td align="center">Assumed</td>
<td align="center"></td>
</tr>
<tr>
<td align="center" colspan="3">
<hr />
</td>
</tr>
</tbody>
</table>
</table-wrap><p></p>
<p>Assumed values are illustrative engineering choices and should be replaced with organizational data before use in decisions.</p>
<title>2.2. Recovery and Availability</title><p>Figure 1 presents the RTO and RPO ranges of the four standby models, andFigure <xref ref-type="fig" rid="fig2"> 2</xref> shows the corresponding annual downtime and availability.</p>
<fig id="fig1">
<label>Figure 1</label>
<caption>
<p>RTO and RPO ranges by model. Bars show midpoints; whiskers show the minimum and maximum from [1]. Symmetric-log axis; zero values are labelled.</p>
</caption>
<graphic xlink:href="1381.fig.001" />
</fig><fig id="fig2">
<label>Figure 2</label>
<caption>
<p>Annual downtime (log scale) and resulting availability in nines, from (1)&#x02013;(3) with &#x003bb; = 4 incidents/yr.</p>
</caption>
<graphic xlink:href="1381.fig.002" />
</fig><title>2.3. Latency</title><p>Figure 3 illustrates how replication lag varies with apply-queue utilization, andFigure <xref ref-type="fig" rid="fig4"> 4</xref> shows write commit latency as a function of inter-site round-trip time.</p>
<fig id="fig3">
<label>Figure 3</label>
<caption>
<p>Replication lag of asynchronous streaming replication versus apply-queue utilization, from (7) with s = 0.5 s.</p>
</caption>
<graphic xlink:href="1381.fig.003" />
</fig><fig id="fig4">
<label>Figure 4</label>
<caption>
<p>Write commit latency versus inter-site round-trip time, from (8).</p>
</caption>
<graphic xlink:href="1381.fig.004" />
</fig><title>2.4. Failure-Detection Accuracy</title><p>Figure 5 shows the accuracy of failure detection for the standby models.</p>
<fig id="fig5">
<label>Figure 5</label>
<caption>
<p>Failure-detection accuracy: (a) F1-score versus alarm threshold, with the optimum marked; (b) precision, recall and F1 at the optimal threshold.</p>
</caption>
<graphic xlink:href="1381.fig.005" />
</fig><title>2.5. Resource Utilization</title><p>Figure 6 compares the peak CPU utilization of the primary and standby sites.</p>
<fig id="fig6">
<label>Figure 6</label>
<caption>
<p>Peak CPU utilization of the primary and standby sites, from (20).</p>
</caption>
<graphic xlink:href="1381.fig.006" />
</fig><title>2.6. Cost versus Performance</title><p>Figure 7 presents the components of expected annual cost,Figure <xref ref-type="fig" rid="fig8"> 8</xref> shows its sensitivity to the outage-cost multiplier, andFigure <xref ref-type="fig" rid="fig9"> 9</xref> compares cost-effectiveness relative to Model A.</p>
<fig id="fig7">
<label>Figure 7</label>
<caption>
<p>Expected annual cost decomposed into infrastructure, downtime and data-loss components, from (15). An asterisk marks models that violate the SLA constraint of (16).</p>
</caption>
<graphic xlink:href="1381.fig.007" />
</fig><fig id="fig8">
<label>Figure 8</label>
<caption>
<p>Sensitivity of expected annual cost to the outage-cost multiplier &#x003ba;. The dotted line marks the B/C break-even from (17).</p>
</caption>
<graphic xlink:href="1381.fig.008" />
</fig><fig id="fig9">
<label>Figure 9</label>
<caption>
<p>Cost-effectiveness relative to Model A: downtime hours avoided per percentage point of trading profit invested, from (18).</p>
</caption>
<graphic xlink:href="1381.fig.009" />
</fig></sec><sec id="sec3">
<title>Standby Database Protection: Concepts and Architectures</title><p>Standby database protection systems protect a primary database from failure, but allow the business or service that uses it to continue operating [
<xref ref-type="bibr" rid="R11">11</xref>,<xref ref-type="bibr" rid="R12">12</xref>]. Without standby protection, incidents such as software bugs, system misconfiguration, network failure, and hardware faults can cause data access to be interrupted or halted for extended periods of time. Around-the-clock grocery supply chain operations need standby protection for their database systems to guard against these types of events.</p>
<p>Standby protection architectures can be classified into two main categories: those that allow a service to break for a short time (measured in seconds or minutes) and those that enable 24/7 operation with almost no break&#x26;#x02014;and even the latter may not be suitable for grocery systems under all conditions. Services rely on databases for various periods of time during the normal course of operations, but action is not expected from the rest of the supporting system every second of every minute. Yet even allowing for a break of one or two minutes is too much for around-the-clock grocery supply chain operations. Any conceivable issue that results in the database being momentarily unavailable or able to process only a subset of requests at a time constitutes a critical incident, one that can open the door to problems so severe that the entire service may fail.</p>
<title>3.1. Detailed Recovery Models and Failover Mechanisms</title><p>Recovery Point Objectives (RPO) and Recovery Time Objectives (RTO) define the acceptable levels of data loss and downtime, respectively, in the intended resilience model. Consequently, selection of the primary storage technology and configuration directly impacts the overall service delivery capacity. Four specific RPO and RTO scenarios now warrant consideration, together with the prescribed Storage Area Network (SAN) architecture that facilitates their implementation.</p>
<p>Asynchronous log shipping with manual failover can achieve a zero touch, passive standby at a remote site with RPO of 1&#x26;#x02013;24 hours and RTO of 8&#x26;#x02013;24 hours. Applications remain readable with up-to-date information through a load-balanced read-only configuration during normal operation. The standby system is managed by operational acceptance procedures for activation and data completeness testing. Asynchronous log shipping remains an attractive approach for non-mission-critical applications that can afford such levels of disruption.</p>
<p>Asynchronous streaming replication with manual failover can deliver a near-real-time, passive standby on an alternative data centre with RPO of 5&#x26;#x02013;30 minutes and RTO of 30&#x26;#x02013;120 minutes. Partition-level asynchronous replication allows for differential service-level agreements (SLA) [
<xref ref-type="bibr" rid="R13">13</xref>,<xref ref-type="bibr" rid="R14">14</xref>]; systems within the same geolocation can be physically hosted in separate clusters. Failover is triggered by operations teams via a pre-approved runbook.</p>
<p>Synchronous streaming replication with automated cutover can enable application-aware, continuous zero RPO at an alternate data centre with RTO of 5&#x26;#x02013;30 minutes [
<xref ref-type="bibr" rid="R15">15</xref>]. Automated failover can be initiated by the database administrator or network operations centre based on predefined criteria. Regular cutover testing ensures that the standby remains ready for production load, thus providing confidence in the required RT systems without the need for a separate operational runbook.</p>
<p>Synchronous streaming replication with automated cutover can also establish an active-active clustering over two or more geo-distributed data centres with RPO of 0 minutes and RTO of 0 minutes [
<xref ref-type="bibr" rid="R16">16</xref>,<xref ref-type="bibr" rid="R17">17</xref>]. Application-level awareness and support for multihome communication are essential, as is the ability to withstand the loss of any single location, application service, or server within an active-active zone. Testing the failover capability of individual services within the cluster should be managed by the appropriate application support teams and performed at least annually.</p>
</sec><sec id="sec4">
<title>Systems and Infrastructure for Continuous Availability</title><p>Continuous availability of an entire system around the clock requires much more than standby database protection. Key system-level considerations include proper monitoring for underlying issues, system performance to handle peak loads, and sufficient capacity for anticipated growth [
<xref ref-type="bibr" rid="R18">18</xref>]. In addition to these operational imperatives, the supporting infrastructure includes data centers, networks, storage subsystems, and virtualization facilities.</p>
<p>Monitoring must ensure that system-level problems&#x26;#x02014;such as resource exhaustion, misconfigurations or network defects&#x26;#x02014;are detected well before serious degradation occurs. The frequency of monitoring should reflect the severity of the potential customer experience issue and the impact on brand reputation. In many cases, running a database read-only copy on a nearby application configuration will monitor for both availability and latency increases.</p>
<p>Continuous availability is not cheap. It cannot be taken as a given. The cost of standby systems, backup site subscriptions, enhanced incident response capabilities, testing, capacity planning, runbooks and so on needs to be proportionate to the scale of potential financial loss, reputational damage, loss of market share or business opportunity by failing to satisfy the continuity target. Monitoring for scenarios that would require a failover is a sensible first step to understand if that cost will ever yield a return.</p>
<title>4.1. Database Technologies Employed in 2021</title><p>Database technologies for implementing standby protection in 2021 allow for continuous operation of grocery supply chain applications across diagnostic, test, and production environments. All databases must be resilient, yet those positioned at the interface between the application and the backup must also support fast and cost-effective replication [
<xref ref-type="bibr" rid="R19">19</xref>]. Relational databases provide the ideal foundation for most transactional operations and the majority of standbys. NoSQL databases fill the niches of document stores and key-value stores, where seamless distribution of latency-sensitive read traffic is essential [
<xref ref-type="bibr" rid="R20">20</xref>].</p>
<p>For main databases, replication is typically implemented either using the technology build into the chosen database or by using an external tool. The replication support within the database is generally deployed for the primary and the standby on different cloud service providers, regions, or availability zones providing the required resilience. Within these environments, the bandwidth for the binary log replication is sufficient to allow an RPO in seconds. For other databases without replication support, tools such as Veeam and Commvault Snapshot Replication are employed. For failover with NoSQL databases, the architecture includes twos copies of the data, with automated script-driven failover detection. The databases form part of the operational monitoring layered alerts infrastructure.</p>
<p>Database backups are normally hosted within the same environment as the standby. For databases that support the facility to split a storage volume and host the two RDBMS instances on the same volume, a tiered storage strat-planning selfish swag is used. The Tier 1 SSD storage serves diagnostics and testing; Tier 1 D drive SSD storage is used for production; and all remaining databases are Tier 2 SATA st-planning ballast storage hosted within the same environment. For all other databases, a combination of tiered storage and storage snapshots hosted on external providers is used.</p>
</sec><sec id="sec5">
<title>Operational Practices for 24/7 Availability</title><p>Several specific technologies can be employed to reduce the likelihood of outages where customers are unable to complete their orders. For a grocery operation such as the one reviewed in this paper, where many of the customers are ordering groceries for delivery within hours, service interruptions, although rare, are particularly disruptive. These interruptions are especially painful when there is a significant weather event and many customers are turning to the grocery store&#x26;#x02019;s website for their needs. As a result, being able to respond to such incidents in a timely manner and minimize the impact are especially critical.</p>
<p>Database technologies used in 2021 included an Oracle DataGuard Standby and SQL Server Log Shipping for the database supporting the order management system, and SQL Server Replication for the databases supporting the other websites. While steady state operations are supervised on a 24&#x26;#x000d7;7 basis, a smaller number of people could be on standby during off-peak hours, preventing the need for overnight on-call availability. If a significant incident occurred, the operations would switch to a &#x26;#x0201c;war room&#x26;#x0201d; mode, where substantially greater resources would be devoted to eliminating the problem.</p>
<title>5.1. Availability and Downtime</title><p>Let &#x26;#x003bb; be the number of failover-class incidents per year, the overbarred RTO the midpoint RTO of model <italic>k</italic> (min), and <italic>D</italic>res a residual downtime that standby protection cannot remove (e.g., application-tier faults). Annual downtime and availability are</p>

<disp-formula id="FD1"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msub><mrow><mi>D</mi></mrow><mrow><mi>k</mi></mrow></msub><mo>=</mo><mi>λ</mi><mo> </mo><msub><mrow><munder underaccent="false"><mrow><mi>R</mi><mi>T</mi><mi>O</mi></mrow><mo>_</mo></munder></mrow><mrow><mi>k</mi></mrow></msub><mo>+</mo><msub><mrow><mi>D</mi></mrow><mrow><mi>r</mi><mi>e</mi><mi>s</mi></mrow></msub></mrow></semantics></math></div><div class="l"><label>(1)</label></div></div></disp-formula>
<disp-formula id="FD2"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msub><mrow><mi>A</mi></mrow><mrow><mi>k</mi></mrow></msub><mo>=</mo><mn>1</mn><mo>-</mo><mfrac><mrow><msub><mrow><mi>D</mi></mrow><mrow><mi>k</mi></mrow></msub></mrow><mrow><msub><mrow><mi>T</mi></mrow><mrow><mi>y</mi><mi>r</mi></mrow></msub></mrow></mfrac><mo>,</mo><mo> </mo><mo> </mo><msub><mrow><mi>T</mi></mrow><mrow><mi>y</mi><mi>r</mi></mrow></msub><mo>=</mo><mn>525</mn><mo> </mo><mn>600</mn><mo> </mo><mi>m</mi><mi>i</mi><mi>n</mi></mrow></semantics></math></div><div class="l"><label>(2)</label></div></div></disp-formula><p>where <italic>D</italic>&#x26;#x02096; is in minutes. Availability is also expressed in "nines":</p>

<disp-formula id="FD3"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msub><mrow><mi>N</mi></mrow><mrow><mi>k</mi></mrow></msub><mo>=</mo><mo>-</mo><msub><mrow><mi>l</mi><mi>o</mi><mi>g</mi></mrow><mrow><mn>10</mn></mrow></msub><mi mathvariant="normal">​</mi><mfenced separators="|"><mrow><mn>1</mn><mo>-</mo><msub><mrow><mi>A</mi></mrow><mrow><mi>k</mi></mrow></msub></mrow></mfenced></mrow></semantics></math></div><div class="l"><label>(3)</label></div></div></disp-formula><title>5.2. Recovery Objectives</title><p>Recovery time is decomposed into the stages of a failover, which makes explicit where automation removes time:</p>

<disp-formula id="FD4"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msub><mrow><mi>R</mi><mi>T</mi><mi>O</mi></mrow><mrow><mi>k</mi></mrow></msub><mo>=</mo><msub><mrow><mi>T</mi></mrow><mrow><mi>d</mi><mi>e</mi><mi>t</mi></mrow></msub><mo>+</mo><msub><mrow><mi>T</mi></mrow><mrow><mi>d</mi><mi>e</mi><mi>c</mi></mrow></msub><mo>+</mo><msub><mrow><mi>T</mi></mrow><mrow><mi>p</mi><mi>r</mi><mi>o</mi></mrow></msub><mo>+</mo><msub><mrow><mi>T</mi></mrow><mrow><mi>r</mi><mi>e</mi><mi>d</mi></mrow></msub><mo>+</mo><msub><mrow><mi>T</mi></mrow><mrow><mi>v</mi><mi>a</mi><mi>l</mi></mrow></msub></mrow></semantics></math></div><div class="l"><label>(4)</label></div></div></disp-formula><p>with detection, decision (human approval under a runbook), standby promotion, client redirection and data-completeness validation. Data-loss exposure is measured in hours of committed business data placed at risk per year:</p>

<disp-formula id="FD5"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msub><mrow><mi>L</mi></mrow><mrow><mi>k</mi></mrow></msub><mo>=</mo><mfrac><mrow><mi>λ</mi><mo> </mo><msub><mrow><munder underaccent="false"><mrow><mi>R</mi><mi>P</mi><mi>O</mi></mrow><mo>_</mo></munder></mrow><mrow><mi>k</mi></mrow></msub></mrow><mrow><mn>60</mn></mrow></mfrac></mrow></semantics></math></div><div class="l"><label>(5)</label></div></div></disp-formula><title>5.3. Replication Lag and Commit Latency</title><p>For log shipping with shipping interval <italic>T</italic>s, lag is approximately uniform on [0, <italic>T</italic>s], so</p>

<disp-formula id="FD6"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msub><mrow><mi>l</mi><mi mathvariant="normal">‾</mi></mrow><mrow><mi>A</mi></mrow></msub><mo>=</mo><mfrac><mrow><msub><mrow><mi>T</mi></mrow><mrow><mi>s</mi></mrow></msub></mrow><mrow><mn>2</mn></mrow></mfrac><mo>,</mo><mo> </mo><mo> </mo><msubsup><mrow><mi>l</mi></mrow><mrow><mi>A</mi></mrow><mrow><mfenced separators="|"><mrow><mn>95</mn></mrow></mfenced></mrow></msubsup><mo>=</mo><mn>0.95</mn><mo> </mo><msub><mrow><mi>T</mi></mrow><mrow><mi>s</mi></mrow></msub></mrow></semantics></math></div><div class="l"><label>(6)</label></div></div></disp-formula><p>For streaming replication, the apply queue is modelled as an M/M/1 queue with mean batch service time s and utilization &#x26;#x003c1;; the sojourn time is exponential, giving</p>

<disp-formula id="FD7"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><mi>W</mi><mfenced separators="|"><mrow><mi>ρ</mi></mrow></mfenced><mo>=</mo><mfrac><mrow><mi>s</mi></mrow><mrow><mn>1</mn><mo>-</mo><mi>ρ</mi></mrow></mfrac><mo>,</mo><mo> </mo><mo> </mo><msub><mrow><mi>W</mi></mrow><mrow><mn>95</mn></mrow></msub><mfenced separators="|"><mrow><mi>ρ</mi></mrow></mfenced><mo>=</mo><mi>l</mi><mi>n</mi><mfenced separators="|"><mrow><mn>20</mn></mrow></mfenced><mo> </mo><mi>W</mi><mfenced separators="|"><mrow><mi>ρ</mi></mrow></mfenced></mrow></semantics></math></div><div class="l"><label>(7)</label></div></div></disp-formula><p>Write commit latency depends on how many inter-site round trips lie on the commit path:</p>

<disp-formula id="FD8"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msub><mrow><mi>T</mi></mrow><mrow><mi>c</mi><mi>o</mi><mi>m</mi><mi>m</mi><mi>i</mi><mi>t</mi><mo>,</mo><mi>k</mi></mrow></msub><mo>=</mo><msub><mrow><mi>T</mi></mrow><mrow><mi>l</mi><mi>o</mi><mi>c</mi></mrow></msub><mo>+</mo><msub><mrow><mi>m</mi></mrow><mrow><mi>k</mi></mrow></msub><mo> </mo><mi>R</mi><mi>T</mi><mi>T</mi><mo>+</mo><msub><mrow><mi>T</mi></mrow><mrow><mi>o</mi><mi>v</mi><mi>h</mi><mo>,</mo><mi>k</mi></mrow></msub></mrow></semantics></math></div><div class="l"><label>(8)</label></div></div></disp-formula><p>where <italic>m</italic>&#x26;#x02096; = 0 for asynchronous models (A, B), 1 for synchronous cutover (C) and 2 for two-phase coordination in active-active operation (D).</p>
<title>5.4. Failure-Detection Accuracy</title><p>Monitoring must raise a failover alarm for genuine primary failures without false alarms. With TP, FP and FN the true positives, false positives and false negatives of the alarm stream:</p>

<disp-formula id="FD9"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><mi>P</mi><mi>r</mi><mi>e</mi><mi>c</mi><mi>i</mi><mi>s</mi><mi>i</mi><mi>o</mi><mi>n</mi><mo>=</mo><mfrac><mrow><mi>T</mi><mi>P</mi></mrow><mrow><mi>T</mi><mi>P</mi><mo>+</mo><mi>F</mi><mi>P</mi></mrow></mfrac></mrow></semantics></math></div><div class="l"><label>(9)</label></div></div></disp-formula>
<disp-formula id="FD10"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><mi>R</mi><mi>e</mi><mi>c</mi><mi>a</mi><mi>l</mi><mi>l</mi><mo>=</mo><mfrac><mrow><mi>T</mi><mi>P</mi></mrow><mrow><mi>T</mi><mi>P</mi><mo>+</mo><mi>F</mi><mi>N</mi></mrow></mfrac></mrow></semantics></math></div><div class="l"><label>(10)</label></div></div></disp-formula>
<disp-formula id="FD11"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msub><mrow><mi>F</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>=</mo><mfrac><mrow><mn>2</mn><mo> </mo><mi>P</mi><mi>r</mi><mi>e</mi><mi>c</mi><mi>i</mi><mi>s</mi><mi>i</mi><mi>o</mi><mi>n</mi><mo>⋅</mo><mi>R</mi><mi>e</mi><mi>c</mi><mi>a</mi><mi>l</mi><mi>l</mi></mrow><mrow><mi>P</mi><mi>r</mi><mi>e</mi><mi>c</mi><mi>i</mi><mi>s</mi><mi>i</mi><mi>o</mi><mi>n</mi><mo>+</mo><mi>R</mi><mi>e</mi><mi>c</mi><mi>a</mi><mi>l</mi><mi>l</mi></mrow></mfrac></mrow></semantics></math></div><div class="l"><label>(11)</label></div></div></disp-formula><p>A health signal (e.g., replication heartbeat delay) is assumed Gaussian with unit variance under both healthy and degraded states. Averaging n&#x26;#x02096; = Tw/&#x26;#x00394;&#x26;#x02096; samples in a window Tw separated by polling interval &#x26;#x00394;&#x26;#x02096; gives a detectability index, and an alarm at threshold z has</p>

<disp-formula id="FD12"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><mi>d</mi><msub><mrow><mi mathvariant="normal">'</mi></mrow><mrow><mi>k</mi></mrow></msub><mo>=</mo><msub><mrow><mi>d</mi></mrow><mrow><mn>0</mn></mrow></msub><msqrt><msub><mrow><mi>T</mi></mrow><mrow><mi>w</mi></mrow></msub><mo>/</mo><msub><mrow><mi>Δ</mi></mrow><mrow><mi>k</mi></mrow></msub></msqrt><mo>,</mo><mo> </mo><mo> </mo><msub><mrow><mi>R</mi><mi>e</mi><mi>c</mi><mi>a</mi><mi>l</mi><mi>l</mi></mrow><mrow><mi>k</mi></mrow></msub><mfenced separators="|"><mrow><mi>z</mi></mrow></mfenced><mo>=</mo><mi>Φ</mi><mi mathvariant="normal">​</mi><mfenced separators="|"><mrow><mi>d</mi><msub><mrow><mi mathvariant="normal">'</mi></mrow><mrow><mi>k</mi></mrow></msub><mo>-</mo><mi>z</mi></mrow></mfenced></mrow></semantics></math></div><div class="l"><label>(12)</label></div></div></disp-formula>
<disp-formula id="FD13"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msub><mrow><mi>P</mi><mi>r</mi><mi>e</mi><mi>c</mi><mi>i</mi><mi>s</mi><mi>i</mi><mi>o</mi><mi>n</mi></mrow><mrow><mi>k</mi></mrow></msub><mfenced separators="|"><mrow><mi>z</mi></mrow></mfenced><mo>=</mo><mfrac><mrow><mi>π</mi><mo> </mo><msub><mrow><mi>R</mi><mi>e</mi><mi>c</mi><mi>a</mi><mi>l</mi><mi>l</mi></mrow><mrow><mi>k</mi></mrow></msub><mfenced separators="|"><mrow><mi>z</mi></mrow></mfenced></mrow><mrow><mi>π</mi><mo> </mo><msub><mrow><mi>R</mi><mi>e</mi><mi>c</mi><mi>a</mi><mi>l</mi><mi>l</mi></mrow><mrow><mi>k</mi></mrow></msub><mfenced separators="|"><mrow><mi>z</mi></mrow></mfenced><mo>+</mo><mfenced separators="|"><mrow><mn>1</mn><mo>-</mo><mi>π</mi></mrow></mfenced><mfenced open="[" close="]" separators="|"><mrow><mn>1</mn><mo>-</mo><mi>Φ</mi><mfenced separators="|"><mrow><mi>z</mi></mrow></mfenced></mrow></mfenced></mrow></mfrac></mrow></semantics></math></div><div class="l"><label>(13)</label></div></div></disp-formula><p>where &#x26;#x003a6; is the standard normal CDF and &#x26;#x003c0; the prior probability that a monitoring window contains a degraded state. The operating threshold maximizes F&#x26;#x02081;:</p>

<disp-formula id="FD14"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msubsup><mrow><mi>z</mi></mrow><mrow><mi>k</mi></mrow><mrow><mi mathvariant="normal">*</mi></mrow></msubsup><mo>=</mo><mi>a</mi><mi>r</mi><mi>g</mi><msub><mrow><mi>m</mi><mi>a</mi><mi>x</mi></mrow><mrow><mi>z</mi></mrow></msub><mo> </mo><msub><mrow><mi>F</mi></mrow><mrow><mn>1</mn></mrow></msub><mi mathvariant="normal">​</mi><mfenced separators="|"><mrow><msub><mrow><mi>P</mi><mi>r</mi><mi>e</mi><mi>c</mi><mi>i</mi><mi>s</mi><mi>i</mi><mi>o</mi><mi>n</mi></mrow><mrow><mi>k</mi></mrow></msub><mfenced separators="|"><mrow><mi>z</mi></mrow></mfenced><mo>,</mo><msub><mrow><mi>R</mi><mi>e</mi><mi>c</mi><mi>a</mi><mi>l</mi><mi>l</mi></mrow><mrow><mi>k</mi></mrow></msub><mfenced separators="|"><mrow><mi>z</mi></mrow></mfenced></mrow></mfenced></mrow></semantics></math></div><div class="l"><label>(14)</label></div></div></disp-formula><title>5.5. Cost and Optimization</title><p>Costs are normalized to annual trading profit. With online share s of trading profit, one hour of total outage costs ch = 100s/8760 percent of annual profit. The expected annual cost of model k is</p>

<disp-formula id="FD15"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msub><mrow><mi>C</mi></mrow><mrow><mi>k</mi></mrow></msub><mo>=</mo><msub><mrow><mi>C</mi></mrow><mrow><mi>i</mi><mi>n</mi><mi>f</mi><mo>,</mo><mi>k</mi></mrow></msub><mo>+</mo><mi>λ</mi><mfenced open="[" close="]" separators="|"><mrow><mi>κ</mi><mo> </mo><msub><mrow><mi>c</mi></mrow><mrow><mi>h</mi></mrow></msub><mo> </mo><mfrac><mrow><msub><mrow><munder underaccent="false"><mrow><mi>R</mi><mi>T</mi><mi>O</mi></mrow><mo>_</mo></munder></mrow><mrow><mi>k</mi></mrow></msub></mrow><mrow><mn>60</mn></mrow></mfrac><mo>+</mo><msub><mrow><mi>c</mi></mrow><mrow><mi>l</mi></mrow></msub><mo> </mo><msub><mrow><mi>c</mi></mrow><mrow><mi>h</mi></mrow></msub><mo> </mo><mfrac><mrow><msub><mrow><munder underaccent="false"><mrow><mi>R</mi><mi>P</mi><mi>O</mi></mrow><mo>_</mo></munder></mrow><mrow><mi>k</mi></mrow></msub></mrow><mrow><mn>60</mn></mrow></mfrac></mrow></mfenced></mrow></semantics></math></div><div class="l"><label>(15)</label></div></div></disp-formula><p>where <italic>C</italic>inf,&#x26;#x02096; is the standby infrastructure and operations cost, &#x26;#x003ba; &#x26;#x02265; 1 is a surge multiplier for outages during peak demand (e.g., weather events [
<xref ref-type="bibr" rid="R1">1</xref>]) and <italic>c</italic>l is the cost of one hour of lost data relative to one hour of outage. Selection is a constrained minimization against the service-level targets:</p>

<disp-formula id="FD16"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msup><mrow><mi>k</mi></mrow><mrow><mi mathvariant="normal">*</mi></mrow></msup><mo>=</mo><mi>a</mi><mi>r</mi><mi>g</mi><msub><mrow><mi>m</mi><mi>i</mi><mi>n</mi></mrow><mrow><mi>k</mi></mrow></msub><mo> </mo><msub><mrow><mi>C</mi></mrow><mrow><mi>k</mi></mrow></msub><mo> </mo><mi>s</mi><mo>.</mo><mi>t</mi><mo>.</mo><mo> </mo><msubsup><mrow><mi>R</mi><mi>P</mi><mi>O</mi></mrow><mrow><mi>k</mi></mrow><mrow><mi>m</mi><mi>a</mi><mi>x</mi></mrow></msubsup><mo>≤</mo><msub><mrow><mi>R</mi><mi>P</mi><mi>O</mi></mrow><mrow><mi>S</mi><mi>L</mi><mi>A</mi></mrow></msub><mo>,</mo><mo> </mo><mo> </mo><msubsup><mrow><mi>R</mi><mi>T</mi><mi>O</mi></mrow><mrow><mi>k</mi></mrow><mrow><mi>m</mi><mi>a</mi><mi>x</mi></mrow></msubsup><mo>≤</mo><msub><mrow><mi>R</mi><mi>T</mi><mi>O</mi></mrow><mrow><mi>S</mi><mi>L</mi><mi>A</mi></mrow></msub></mrow></semantics></math></div><div class="l"><label>(16)</label></div></div></disp-formula><p>Setting C&#x26;#x02c7c;(&#x26;#x003ba;) = C&#x26;#x02096;(&#x26;#x003ba;) gives the break-even surge multiplier at which the costlier model k becomes cheaper than model j:</p>

<disp-formula id="FD17"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msubsup><mrow><mi>κ</mi></mrow><mrow><mi>j</mi><mi>k</mi></mrow><mrow><mi mathvariant="normal">*</mi></mrow></msubsup><mo>=</mo><mfrac><mrow><msub><mrow><mi>C</mi></mrow><mrow><mi>i</mi><mi>n</mi><mi>f</mi><mo>,</mo><mi>k</mi></mrow></msub><mo>-</mo><msub><mrow><mi>C</mi></mrow><mrow><mi>i</mi><mi>n</mi><mi>f</mi><mo>,</mo><mi>j</mi></mrow></msub><mo>-</mo><mi>λ</mi><msub><mrow><mi>c</mi></mrow><mrow><mi>l</mi></mrow></msub><msub><mrow><mi>c</mi></mrow><mrow><mi>h</mi></mrow></msub><mfenced separators="|"><mrow><msub><mrow><munder underaccent="false"><mrow><mi>R</mi><mi>P</mi><mi>O</mi></mrow><mo>_</mo></munder></mrow><mrow><mi>j</mi></mrow></msub><mo>-</mo><msub><mrow><munder underaccent="false"><mrow><mi>R</mi><mi>P</mi><mi>O</mi></mrow><mo>_</mo></munder></mrow><mrow><mi>k</mi></mrow></msub></mrow></mfenced><mo>/</mo><mn>60</mn></mrow><mrow><mi>λ</mi><msub><mrow><mi>c</mi></mrow><mrow><mi>h</mi></mrow></msub><mfenced separators="|"><mrow><msub><mrow><munder underaccent="false"><mrow><mi>R</mi><mi>T</mi><mi>O</mi></mrow><mo>_</mo></munder></mrow><mrow><mi>j</mi></mrow></msub><mo>-</mo><msub><mrow><munder underaccent="false"><mrow><mi>R</mi><mi>T</mi><mi>O</mi></mrow><mo>_</mo></munder></mrow><mrow><mi>k</mi></mrow></msub></mrow></mfenced><mo>/</mo><mn>60</mn></mrow></mfrac></mrow></semantics></math></div><div class="l"><label>(17)</label></div></div></disp-formula><title>5.6. Efficiency, Improvement and Utilization</title><p>Cost-effectiveness is the downtime avoided per percentage point of trading profit invested relative to baseline Model A, and relative improvement of any metric X over the baseline is</p>

<disp-formula id="FD18"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msub><mrow><mi>C</mi><mi>E</mi><mi>R</mi></mrow><mrow><mi>k</mi></mrow></msub><mo>=</mo><mfrac><mrow><mfenced separators="|"><mrow><msub><mrow><mi>D</mi></mrow><mrow><mi>A</mi></mrow></msub><mo>-</mo><msub><mrow><mi>D</mi></mrow><mrow><mi>k</mi></mrow></msub></mrow></mfenced><mo>/</mo><mn>60</mn></mrow><mrow><msub><mrow><mi>C</mi></mrow><mrow><mi>i</mi><mi>n</mi><mi>f</mi><mo>,</mo><mi>k</mi></mrow></msub><mo>-</mo><msub><mrow><mi>C</mi></mrow><mrow><mi>i</mi><mi>n</mi><mi>f</mi><mo>,</mo><mi>A</mi></mrow></msub></mrow></mfrac></mrow></semantics></math></div><div class="l"><label>(18)</label></div></div></disp-formula>
<disp-formula id="FD19"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msub><mrow><mi>Δ</mi></mrow><mrow><mi>k</mi></mrow></msub><mfenced separators="|"><mrow><mi>X</mi></mrow></mfenced><mo>=</mo><mfrac><mrow><msub><mrow><mi>X</mi></mrow><mrow><mi>A</mi></mrow></msub><mo>-</mo><msub><mrow><mi>X</mi></mrow><mrow><mi>k</mi></mrow></msub></mrow><mrow><msub><mrow><mi>X</mi></mrow><mrow><mi>A</mi></mrow></msub></mrow></mfrac><mo>×</mo><mn>100</mn><mi mathvariant="normal">%</mi></mrow></semantics></math></div><div class="l"><label>(19)</label></div></div></disp-formula><p>for lower-is-better metrics (the sign is reversed for F&#x26;#x02081; and availability). With offered peak load &#x26;#x003c1;&#x26;#x02080; (fraction of one node's capacity) and read-offload fraction &#x26;#x003c6;&#x26;#x02096; routed to the second site, node utilizations are</p>

<disp-formula id="FD20"><div class="html-disp-formula-info"><div class="f"><math display="inline"><semantics><mrow><msub><mrow><mi>U</mi></mrow><mrow><mi>p</mi><mo>,</mo><mi>k</mi></mrow></msub><mo>=</mo><msub><mrow><mi>ρ</mi></mrow><mrow><mn>0</mn></mrow></msub><mfenced separators="|"><mrow><mn>1</mn><mo>-</mo><msub><mrow><mi>ϕ</mi></mrow><mrow><mi>k</mi></mrow></msub></mrow></mfenced><mo>,</mo><mo> </mo><mo> </mo><msub><mrow><mi>U</mi></mrow><mrow><mi>s</mi><mo>,</mo><mi>k</mi></mrow></msub><mo>=</mo><msub><mrow><mi>ρ</mi></mrow><mrow><mn>0</mn></mrow></msub><mo> </mo><msub><mrow><mi>ϕ</mi></mrow><mrow><mi>k</mi></mrow></msub></mrow></semantics></math></div><div class="l"><label>(20)</label></div></div></disp-formula></sec><sec id="sec6">
<title>Conclusion</title><p>Continuous availability of the grocery company was achieved by regularly backfilling a standby copy of the primary database, with tight alignment of infrastructure redundancy and effective incident response and failover processes. Concepts and architectures related to standby database protection, including potential recovery models and failover mechanisms, were discussed. The use of transaction logs and synchronous replication for a truly hot standby database is often desirable, but such a complex architecture needs careful consideration and is not for every environment; doing something simpler and less costly may be better than not having a standby database. The approach described here has reduced the risk of an extended outage impacting imminent supply chain operations. In 2021, the Oracle Database was used for standby database protection at the grocery company, while Microsoft SQL Server, PostgreSQL, and MySQL were supported for other business units.</p>
<p>In the face of a bank virus outbreak, in another part of the world, a country enforced immediate border shut down for a week. Although opened some days later, several European countries announced urgent airport closure and travellers were no longer permitted to enter. Supply chain was still under normal operation within rest of Asia and one third of the restaurant business of the grocery company relied on ingredients imported from this affected country. Supply chain operation of 24/7 grocery company supported several countries and such an incident may not have large impact; incident planning, redundancy, standby database copy remained to be critical. Beside system fault tolerances, standby database covered failovers with at maximum of 15 minutes loss of business transactions and such a precaution measure relieved the effect to the business during the short operation disruption. Supply chain incident planning and standby database preparation suitable for real emphasis.</p>
</sec>
  </body>
  <back>
    <ref-list>
      <title>References</title>
      
<ref id="R1">
<label>[1]</label>
<mixed-citation publication-type="other">Camp&#x000ea;lo, R. A., Casanova, M. A., Guedes, D. O., &#x00026; Laender, A. H. F. (2020). A brief survey on replica consistency in cloud environments. Journal of Internet Services and Applications, 11, Article 1.
</mixed-citation>
</ref>
<ref id="R2">
<label>[2]</label>
<mixed-citation publication-type="other">Vallandingham, L. R., Yu, Q., Sharma, N., Strandhagen, J. W., &#x00026; Strandhagen, J. O. (2018). Grocery retail supply chain planning and control: Impact of consumer trends and enabling technologies. IFAC-PapersOnLine, 51(11), 612-617.
</mixed-citation>
</ref>
<ref id="R3">
<label>[3]</label>
<mixed-citation publication-type="other">Hobbs, J. E. (2020). Food supply chains during the COVID-19 pandemic. Canadian Journal of Agricultural Economics/Revue canadienne d'agroeconomie, 68(2), 171-176.
</mixed-citation>
</ref>
<ref id="R4">
<label>[4]</label>
<mixed-citation publication-type="other">Ivanov, D. (2020). Predicting the impacts of epidemic outbreaks on global supply chains: A simulation-based analysis on the coronavirus outbreak (COVID-19/SARS-CoV-2) case. Transportation Research Part E: Logistics and Transportation Review, 136, Article 101922.
</mixed-citation>
</ref>
<ref id="R5">
<label>[5]</label>
<mixed-citation publication-type="other">Khelifa, A., Hamrouni, T., Mokadem, R., &#x00026; Ben Charrada, F. (2020). SLA-aware task scheduling and data replication for enhancing provider profit in clouds. Procedia Computer Science, 176, 3143-3152.
</mixed-citation>
</ref>
<ref id="R6">
<label>[6]</label>
<mixed-citation publication-type="other">Mokadem, R., &#x00026; Hameurlain, A. (2020). A data replication strategy with tenant performance and provider economic profit guarantees in cloud data centers. Journal of Systems and Software, 159, Article 110447.
</mixed-citation>
</ref>
<ref id="R7">
<label>[7]</label>
<mixed-citation publication-type="other">Kaseb, M. R., Khafagy, M. H., Ali, I. A., &#x00026; Saad, E. M. (2019). An improved technique for increasing availability in big data replication. Future Generation Computer Systems, 91, 493-505.
</mixed-citation>
</ref>
<ref id="R8">
<label>[8]</label>
<mixed-citation publication-type="other">Kiil, K., Dreyer, H. C., Hvolby, H.-H., &#x00026; Chabada, L. (2018). Sustainable food supply chains: The impact of automatic re-plenishment in grocery stores. Production Planning &#x00026; Control, 29(2), 106-116.
</mixed-citation>
</ref>
<ref id="R9">
<label>[9]</label>
<mixed-citation publication-type="other">Mou, S., Robb, D. J., &#x00026; DeHoratius, N. (2018). Retail store operations: Literature review and research directions. European Journal of Operational Research, 265(2), 399-422.
</mixed-citation>
</ref>
<ref id="R10">
<label>[10]</label>
<mixed-citation publication-type="other">Bendoly, E., Craig, N., &#x00026; DeHoratius, N. (2018). Consistency and recovery in retail supply chains. Journal of Business Logis-tics, 39(1), 26-37.
</mixed-citation>
</ref>
<ref id="R11">
<label>[11]</label>
<mixed-citation publication-type="other">Ferreira, L., Coelho, F., Alonso, A. N., &#x00026; Pereira, J. (2019). Towards intra-datacentre high-availability in CloudDBAppliance. In Proceedings of the 9th International Conference on Cloud Computing and Services Science. SciTePress.
</mixed-citation>
</ref>
<ref id="R12">
<label>[12]</label>
<mixed-citation publication-type="other">Chen, Y.-J., &#x00026; Tsai, H. (2019). Implementation and verification of high data availability on database. Transactions on Net-works and Communications, 7(5).
</mixed-citation>
</ref>
<ref id="R13">
<label>[13]</label>
<mixed-citation publication-type="other">Castro-Medina, F., Rodr&#x000ed;guez-Mazahua, L., Abud-Figueroa, M. A., Romero-Torres, C., Reyes-Hern&#x000e1;ndez, L. A., &#x00026; Al-or-Hern&#x000e1;ndez, G. (2019). Application of data fragmentation and replication methods in the cloud: A review. In 2019 Inter-national Conference on Electronics, Communications and Computers (CONIELECOMP) (pp. 47-54). IEEE.
</mixed-citation>
</ref>
<ref id="R14">
<label>[14]</label>
<mixed-citation publication-type="other">Gopinath, S., &#x00026; Sherly, E. (2018). A dynamic replica factor calculator for weighted dynamic replication management in cloud storage systems. Procedia Computer Science, 132, 1771-1780.
</mixed-citation>
</ref>
<ref id="R15">
<label>[15]</label>
<mixed-citation publication-type="other">Verbitski, A., Gupta, A., Saha, D., Corey, J., Gupta, K., Brahmadesam, M., Mittal, R., Krishnamurthy, S., Maurice, S., Kha-ratishvili, T., &#x00026; Bao, X. (2018). Amazon Aurora: On avoiding distributed consensus for I/Os, commits, and membership changes. In Proceedings of the 2018 International Conference on Management of Data (pp. 789-796). Association for Com-puting Machinery.
</mixed-citation>
</ref>
<ref id="R16">
<label>[16]</label>
<mixed-citation publication-type="other">Taft, R., Sharif, I., Matei, A., VanBenschoten, N., Lewis, J., Grieger, T., Niemi, K., Woods, A., Birzin, A., Poss, R., Bardea, P., Ranade, A., Darnell, B., Gruneir, B., Jaffray, J., Zhang, L., &#x00026; Mattis, P. (2020). CockroachDB: The resilient geo-distributed SQL database. In Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data (pp. 1493-1509). Association for Computing Machinery.
</mixed-citation>
</ref>
<ref id="R17">
<label>[17]</label>
<mixed-citation publication-type="other">Bacon, D. F., Bales, N., Bruno, N., Cooper, B. F., Dickinson, A., Fikes, A., Fraser, C., Gubarev, A., Joshi, M., Kogan, E., Lloyd, A., Melnik, S., Rao, R., Shue, D., Taylor, C., van der Holst, M., &#x00026; Woodford, D. (2017). Spanner: Becoming a SQL system. In Proceedings of the 2017 ACM International Conference on Management of Data (pp. 331-343). Association for Computing Machinery.
</mixed-citation>
</ref>
<ref id="R18">
<label>[18]</label>
<mixed-citation publication-type="other">Hofmann, E. (2017). Big data and supply chain decisions: The impact of volume, variety and velocity properties on the bull-whip effect. International Journal of Production Research, 55(17), 5108-5126.
</mixed-citation>
</ref>
<ref id="R19">
<label>[19]</label>
<mixed-citation publication-type="other">Mahfoud, Z., &#x00026; Nouali-Taboudjemat, N. (2019). Consistency in cloud-based database systems. Informatica, 43(3), 313-319.
</mixed-citation>
</ref>
<ref id="R20">
<label>[20]</label>
<mixed-citation publication-type="other">Mealha, D., Pregui&#x000e7;a, N., Gomes, M. C., &#x00026; Leit&#x000e3;o, J. (2019). Data replication on the cloud/edge. In Proceedings of the 6th Workshop on Principles and Practice of Consistency for Distributed Data. Association for Computing Machinery.
</mixed-citation>
</ref>
<ref id="R1">
<label>[1]</label>
<mixed-citation publication-type="other">Camp&#x000ea;lo, R. A., Casanova, M. A., Guedes, D. O., &#x00026; Laender, A. H. F. (2020). A brief survey on replica consistency in cloud environments. Journal of Internet Services and Applications, 11, Article 1.
</mixed-citation>
</ref>
<ref id="R2">
<label>[2]</label>
<mixed-citation publication-type="other">Vallandingham, L. R., Yu, Q., Sharma, N., Strandhagen, J. W., &#x00026; Strandhagen, J. O. (2018). Grocery retail supply chain planning and control: Impact of consumer trends and enabling technologies. IFAC-PapersOnLine, 51(11), 612-617.
</mixed-citation>
</ref>
<ref id="R3">
<label>[3]</label>
<mixed-citation publication-type="other">Hobbs, J. E. (2020). Food supply chains during the COVID-19 pandemic. Canadian Journal of Agricultural Economics/Revue canadienne d'agroeconomie, 68(2), 171-176.
</mixed-citation>
</ref>
<ref id="R4">
<label>[4]</label>
<mixed-citation publication-type="other">Ivanov, D. (2020). Predicting the impacts of epidemic outbreaks on global supply chains: A simulation-based analysis on the coronavirus outbreak (COVID-19/SARS-CoV-2) case. Transportation Research Part E: Logistics and Transportation Review, 136, Article 101922.
</mixed-citation>
</ref>
<ref id="R5">
<label>[5]</label>
<mixed-citation publication-type="other">Khelifa, A., Hamrouni, T., Mokadem, R., &#x00026; Ben Charrada, F. (2020). SLA-aware task scheduling and data replication for enhancing provider profit in clouds. Procedia Computer Science, 176, 3143-3152.
</mixed-citation>
</ref>
<ref id="R6">
<label>[6]</label>
<mixed-citation publication-type="other">Mokadem, R., &#x00026; Hameurlain, A. (2020). A data replication strategy with tenant performance and provider economic profit guarantees in cloud data centers. Journal of Systems and Software, 159, Article 110447.
</mixed-citation>
</ref>
<ref id="R7">
<label>[7]</label>
<mixed-citation publication-type="other">Kaseb, M. R., Khafagy, M. H., Ali, I. A., &#x00026; Saad, E. M. (2019). An improved technique for increasing availability in big data replication. Future Generation Computer Systems, 91, 493-505.
</mixed-citation>
</ref>
<ref id="R8">
<label>[8]</label>
<mixed-citation publication-type="other">Kiil, K., Dreyer, H. C., Hvolby, H.-H., &#x00026; Chabada, L. (2018). Sustainable food supply chains: The impact of automatic re-plenishment in grocery stores. Production Planning &#x00026; Control, 29(2), 106-116.
</mixed-citation>
</ref>
<ref id="R9">
<label>[9]</label>
<mixed-citation publication-type="other">Mou, S., Robb, D. J., &#x00026; DeHoratius, N. (2018). Retail store operations: Literature review and research directions. European Journal of Operational Research, 265(2), 399-422.
</mixed-citation>
</ref>
<ref id="R10">
<label>[10]</label>
<mixed-citation publication-type="other">Bendoly, E., Craig, N., &#x00026; DeHoratius, N. (2018). Consistency and recovery in retail supply chains. Journal of Business Logis-tics, 39(1), 26-37.
</mixed-citation>
</ref>
<ref id="R11">
<label>[11]</label>
<mixed-citation publication-type="other">Ferreira, L., Coelho, F., Alonso, A. N., &#x00026; Pereira, J. (2019). Towards intra-datacentre high-availability in CloudDBAppliance. In Proceedings of the 9th International Conference on Cloud Computing and Services Science. SciTePress.
</mixed-citation>
</ref>
<ref id="R12">
<label>[12]</label>
<mixed-citation publication-type="other">Chen, Y.-J., &#x00026; Tsai, H. (2019). Implementation and verification of high data availability on database. Transactions on Net-works and Communications, 7(5).
</mixed-citation>
</ref>
<ref id="R13">
<label>[13]</label>
<mixed-citation publication-type="other">Castro-Medina, F., Rodr&#x000ed;guez-Mazahua, L., Abud-Figueroa, M. A., Romero-Torres, C., Reyes-Hern&#x000e1;ndez, L. A., &#x00026; Al-or-Hern&#x000e1;ndez, G. (2019). Application of data fragmentation and replication methods in the cloud: A review. In 2019 Inter-national Conference on Electronics, Communications and Computers (CONIELECOMP) (pp. 47-54). IEEE.
</mixed-citation>
</ref>
<ref id="R14">
<label>[14]</label>
<mixed-citation publication-type="other">Gopinath, S., &#x00026; Sherly, E. (2018). A dynamic replica factor calculator for weighted dynamic replication management in cloud storage systems. Procedia Computer Science, 132, 1771-1780.
</mixed-citation>
</ref>
<ref id="R15">
<label>[15]</label>
<mixed-citation publication-type="other">Verbitski, A., Gupta, A., Saha, D., Corey, J., Gupta, K., Brahmadesam, M., Mittal, R., Krishnamurthy, S., Maurice, S., Kha-ratishvili, T., &#x00026; Bao, X. (2018). Amazon Aurora: On avoiding distributed consensus for I/Os, commits, and membership changes. In Proceedings of the 2018 International Conference on Management of Data (pp. 789-796). Association for Com-puting Machinery.
</mixed-citation>
</ref>
<ref id="R16">
<label>[16]</label>
<mixed-citation publication-type="other">Taft, R., Sharif, I., Matei, A., VanBenschoten, N., Lewis, J., Grieger, T., Niemi, K., Woods, A., Birzin, A., Poss, R., Bardea, P., Ranade, A., Darnell, B., Gruneir, B., Jaffray, J., Zhang, L., &#x00026; Mattis, P. (2020). CockroachDB: The resilient geo-distributed SQL database. In Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data (pp. 1493-1509). Association for Computing Machinery.
</mixed-citation>
</ref>
<ref id="R17">
<label>[17]</label>
<mixed-citation publication-type="other">Bacon, D. F., Bales, N., Bruno, N., Cooper, B. F., Dickinson, A., Fikes, A., Fraser, C., Gubarev, A., Joshi, M., Kogan, E., Lloyd, A., Melnik, S., Rao, R., Shue, D., Taylor, C., van der Holst, M., &#x00026; Woodford, D. (2017). Spanner: Becoming a SQL system. In Proceedings of the 2017 ACM International Conference on Management of Data (pp. 331-343). Association for Computing Machinery.
</mixed-citation>
</ref>
<ref id="R18">
<label>[18]</label>
<mixed-citation publication-type="other">Hofmann, E. (2017). Big data and supply chain decisions: The impact of volume, variety and velocity properties on the bull-whip effect. International Journal of Production Research, 55(17), 5108-5126.
</mixed-citation>
</ref>
<ref id="R19">
<label>[19]</label>
<mixed-citation publication-type="other">Mahfoud, Z., &#x00026; Nouali-Taboudjemat, N. (2019). Consistency in cloud-based database systems. Informatica, 43(3), 313-319.
</mixed-citation>
</ref>
<ref id="R20">
<label>[20]</label>
<mixed-citation publication-type="other">Mealha, D., Pregui&#x000e7;a, N., Gomes, M. C., &#x00026; Leit&#x000e3;o, J. (2019). Data replication on the cloud/edge. In Proceedings of the 6th Workshop on Principles and Practice of Consistency for Distributed Data. Association for Computing Machinery.
</mixed-citation>
</ref>
    </ref-list>
  </back>
</article>