Abstract
Tencent is the largest Internet service provider in China. Typical services include WeChat, games, payment, cloud storage and computing. Tencent serves billions of users and millions of enterprises, and some services like WeChat, are required to have the ability to handle more than 208,000 TPS requests at peak time. To do this, Tencent has built an elastic and scalable database service system, namely TDSQL, which can efficiently support their ever-growing service requests. TDSQL is deployed and runs on top of more than ten thousands of compute nodes. In this paper, we present the main challenges that we have encountered, and give our practice of conceptual modeling on TDSQL. First, failures of compute nodes often occur in an X86-based large-scale distributed system architecture. To address this issue, we introduce a fault tolerance model to guarantee the high availability of the services. Second, Tencent serves a huge number of requests, while different types of requests require different storage and compute resources. To improve the resource utilization, we propose a resource scheduling model that enables TDSQL to serve the requests elastically. Third, TDSQL provides a hybrid data modeling to support various data models, and develops DBaaS services to serve 100,000 + DB instances. Finally, we present how to fast develop applications in terms of conceptual modeling on top of TDSQL.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
3PC. https://en.wikipedia.org/wiki/Three-phase_commit_protocol
Tencent Distributed Database System(TDSQL). http://tdsql.org
Aken, D.V., Pavlo, A., Gordon, G.J., Zhang, B.: Automatic database management system tuning through large-scale machine learning. In: SIGMOD Conference, pp. 1009–1024. ACM (2017)
Batra, R.K., Rusinkiewicz, M., Georgakopoulos, D.: A decentralized deadlock-free concurrency control method for multidatabase transactions. In: ICDCS, pp. 72–79. IEEE Computer Society (1992)
Gray, J.N.: Notes on data base operating systems. In: Bayer, R., Graham, R.M., Seegmüller, G. (eds.) Operating Systems. LNCS, vol. 60, pp. 393–481. Springer, Heidelberg (1978). https://doi.org/10.1007/3-540-08755-9_9
Gray, J., Lamport, L.: Consensus on transaction commit. ACM Trans. Database Syst. 31(1), 133–160 (2006)
Li, H., Yi Feng, P.F.: The Art of Database Transaction Processiong: Transaction Management and Concurrency Control. China Machine Press, Beijing (2017)
Haller, K., Schuldt, H.: Towards a decentralized implementation of transaction management. In: Grundlagen von Datenbanken, pp. 57–61. Fakultät für Informatik, Universität Magdeburg (2003)
Hwang, B., Son, S.H.: Decentralized transaction management in multidatabase systems. In: COMPSAC, pp. 192–198. IEEE Computer Society (1996)
Kang, I.E., Keefe, T.F.: Supporting reliable and atomic transaction management in multidatabase systems. In: ICDCS, pp. 457–464. IEEE Computer Society (1993)
Kulkarni, S.S., Demirbas, M., Madappa, D., Avva, B., Leone, M.: Logical physical clocks. In: Aguilera, M.K., Querzoni, L., Shapiro, M. (eds.) OPODIS 2014. LNCS, vol. 8878, pp. 17–32. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-14472-6_2
Lampson, B., Sturgis, H.E.: Crash recovery in a distributed data storage system (1979)
Lomet, D.B., Fekete, A., Wang, R., Ward, P.: Multi-version concurrency via timestamp range conflict management. In: ICDE, pp. 714–725. IEEE Computer Society (2012)
Pang, G.: Scalable Transactions for Scalable Distributed Database Systems. Ph.D. thesis, University of California, Berkeley, USA (2015)
Skeen, D., Stonebraker, M.: A formal model of crash recovery in a distributed system. IEEE Trans. Softw. Eng. SE-9(3), 219–228 (1983)
Skeen, D., Stonebraker, M.: A formal model of crash recovery in a distributed system. IEEE Trans. Softw. Eng. 9(3), 219–228 (1983)
Veijalainen, J., Wolski, A.: Prepare and commit certification for decentralized transaction management in rigorous heterogeneous multidatabases. In: ICDE, pp. 470–479. IEEE Computer Society (1992)
Wang, W., Zhang, M., Chen, G., Jagadish, H.V., Ooi, B.C., Tan, K.: Database meets deep learning: challenges and opportunities. SIGMOD Record 45(2), 17–22 (2016)
Yu, X., Pavlo, A., Sánchez, D., Devadas, S.: Tictoc: time traveling optimistic concurrency control. In: SIGMOD Conference, pp. 1629–1642. ACM (2016)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer Nature Switzerland AG
About this paper
Cite this paper
Pan, A., Wang, X., Li, H. (2018). Conceptual Modeling on Tencent’s Distributed Database Systems. In: Trujillo, J., et al. Conceptual Modeling. ER 2018. Lecture Notes in Computer Science(), vol 11157. Springer, Cham. https://doi.org/10.1007/978-3-030-00847-5_3
Download citation
DOI: https://doi.org/10.1007/978-3-030-00847-5_3
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-00846-8
Online ISBN: 978-3-030-00847-5
eBook Packages: Computer ScienceComputer Science (R0)