Skip to main content

Evaluating the Performance Impact of No-Wait Approach to Resolving Write Conflicts in Databases

  • Conference paper
  • First Online:
Computer Performance Engineering and Stochastic Modelling (EPEW 2023, ASMTA 2023)

Abstract

A model of a large distributed database where write conflicts are handled by wait-free aborting of transactions, is introduced and analysed in the steady state. Performance measures, including the rate of aborts, are evaluated. Numerical results are presented, illustrating the behaviour of the system when various parameters are varied. The accuracy of certain approximations is assessed by means of simulations.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 74.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Adya, A., Liskov, B., O’Neil, P.: Generalized isolation level definitions. In: Proceedings of 16th International Conference on Data Engineering, pp. 67–78 (2000)

    Google Scholar 

  2. Bailey, N.T.J.: On queueing processes with bulk service. J. Roy. Stat. Soc. B 16(1), 80–87 (1954)

    MathSciNet  MATH  Google Scholar 

  3. Balsamo, S., Malakhov, I., Marin, A., Mitrani, I.: Transaction confirmation in proof-of-work blockchains: auctions, delays and droppings. In: 20th Mediterranean Communication and Computer Networking Conference (MedComNet), pp. 140–149 (2022)

    Google Scholar 

  4. Barthels, C., Müller, I., Taranov, K., Alonso, G., Hoefler, T.: Strong consistency is not hard to get: two-phase locking and two-phase commit on thousands of cores. Proc. VLDB Endowment 12(13), 2325–2338 (2019)

    Article  Google Scholar 

  5. Bernstein, P.A., et al.: Concurrency Control and Recovery in Database Systems (1987)

    Google Scholar 

  6. Ezhilchelvan, P., Mitrani, I., Webber, J.: On the degradation of distributed graph databases with eventual consistency. Queueing Models Serv. Manag. 3(2), 235–253 (2020)

    Google Scholar 

  7. Ezhilchelvan, P., Mitrani, I., Waudby, J., Webber, J.: Design and evaluation of an edge concurrency control protocol for distributed graph databases. In: Gribaudo, M., Iacono, M., Phung-Duc, T., Razumchik, R. (eds.) EPEW 2019. LNCS, vol. 12039, pp. 50–64. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-44411-2_4

    Chapter  Google Scholar 

  8. Gray, J., Lamport, L.: Consensus on transaction commit. ACM Trans. Database Syst. (TODS) 31(1), 133–160 (2006)

    Article  Google Scholar 

  9. Guo, Z., et al.: Cornus: atomic commit for a cloud DBMS with storage disaggregation. Proc. VLDB Endowment 16(2), 379–392 (2022)

    Article  MathSciNet  Google Scholar 

  10. Li, C., et al.: ByteGraph: a high-performance distributed graph database in ByteDance. Proc. VLDB Endowment 15(12), 3306–3318 (2022)

    Article  Google Scholar 

  11. Pakes, A.G.: Some conditions for ergodicity and recurrence of Markov chains. Oper. Res. 17(6), 1058–1061 (1969)

    Article  MathSciNet  MATH  Google Scholar 

  12. Waudby, J., Ezhilchelvan, P., Mitrani, I., Webber, J.: A performance study of epoch-based commit protocols in distributed OLTP databases. In: 41st International Symposium on Reliable Distributed Systems (SRDS) (2022)

    Google Scholar 

  13. Waudby, J., Ezhilchelvan, P., Webber, J., Mitrani, I.: Preserving reciprocal consistency in distributed graph databases. In: 7th Workshop on Principles and Practice of Consistency for Distributed Data, pp. 1–7 (2020)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Paul Ezhilchelvan .

Editor information

Editors and Affiliations

Appendix

Appendix

Proof of Lemma. We invoke Rouché’s theorem, which states that if two holomorphic functions, \(\phi (z)\) and \(\psi (z)\), satisfy \(|\phi (z)|>|\psi (z)|\) on a simple closed contour, then \(\phi (z)\) and \(\phi (z)+\psi (z)\) have the same number of zeros inside that contour. Each zero is counted according to its multiplicity.

We represent P(z) as \(P(z)= \phi (z)+\psi (z)\), where

$$ \phi (z)= -(\lambda +N\mu )z $$

and

$$ \psi (z)= \lambda + \sum _{i=1}^N \xi _i z^{i+1} $$

The closed contour is the unit circle. When \(|z|=1\), \(|\phi (z)|=\lambda +N\mu \). Applying the triangle inequality to \(\psi (z)\), we find

$$ |\psi (z)| \le \lambda + \sum _{i=1}^N \xi _i = \lambda +N\mu \;. $$

Moreover, the inequality is strict everywhere on the contour, except at \(z=1\), where it is an equality.

Note that the derivative of P(z) is positive at \(z=1\). This is because

$$ P^\prime (1) = -\lambda + \sum _{i=1}^N i\xi _i >0\;, $$

according to (12). Hence, we can choose a sufficiently small number, \(\epsilon \), such that \(P(1-\epsilon )<0\). Modifying the contour slightly in the vicinity of \(z=1\), by making it pass through the point \(z=1-\epsilon \), would ensure that the inequality \(|\phi (z)|>|\psi (z)|\) is strict on the entire modified contour.

The function \(\phi (z)\) is linear and has a single zero, \(z=0\), inside the contour. Therefore, by Rouché’s theorem, P(z) also has a single zero inside the contour. That zero, \(z_0\), must be in the interval \((0,1-\epsilon )\), because \(P(0)=\lambda >0\) and \(P(1-\epsilon )<0\). This completes the proof.

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Ezhilchelvan, P., Mitrani, I., Webber, J., Wang, Y. (2023). Evaluating the Performance Impact of No-Wait Approach to Resolving Write Conflicts in Databases. In: Iacono, M., Scarpa, M., Barbierato, E., Serrano, S., Cerotti, D., Longo, F. (eds) Computer Performance Engineering and Stochastic Modelling. EPEW ASMTA 2023 2023. Lecture Notes in Computer Science, vol 14231. Springer, Cham. https://doi.org/10.1007/978-3-031-43185-2_12

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-43185-2_12

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-43184-5

  • Online ISBN: 978-3-031-43185-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics