Abstract
Distributed storage systems distribute user loads across regions. User requests from different geographical locations are directed to the nearest data center, benefiting reduced service latency and improved service quality. However, the consistency among regions holds against availability and richness of the underlying data services. To address these constraints, our study proposes Hydis, a hybrid consistency distributed key-value storage system based on optimized replica synchronization. Hydis guarantees high availability and scalability for geographically distributed systems and uses Conflict-free Replicated Data Types to construct HybridLattice that supports various consistency models. A novel Writeless-Consistency strategy is proposed to improve the synchronization efficiency between replicas, and a dynamic synchronization optimization based on this strategy is implemented for consistency algorithm to effectively reduce the synchronization overhead of distributed storage systems. A performance evaluation of the Hydis cluster deployed on Alibaba Cloud showed that the strong consistency algorithm in Hydis outperformed the Raft algorithm by 1.8X. Additionally, the causal consistency algorithm in Hydis outperformed the traditional Vector Clock algorithm by 2.5X.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
400+ crypto currency pairs at 1-minute resolution. https://www.kaggle.com/datasets/tencars/392-crypto-currency-pairs-at-minute-resolution. Accessed 15 May 2023
Azure DocumentDB. https://azure.microsoft.com/en-us/products/. Accessed 6 June 2023
Google Protocol Buffers. https://github.com/protocolbuffers/protobuf. Accessed 10 June 2023
gRPC. https://grpc.io/. Accessed 10 June 2023
LevelDB. https://github.com/google/leveldb. Accessed 10 June 2023
Bravo, M., Gotsman, A., de Régil, B., Wei, H.: Unistore: a fault-tolerant marriage of causal and strong consistency. In: USENIX Annual Technical Conference, pp. 923–937 (2021)
Brewer, E.: A certain freedom: thoughts on the cap theorem. In: Proceedings of the 29th ACM SIGACT-SIGOPS Symposium on Principles of Distributed Computing, pp. 335–335 (2010)
Brewer, E.: Cap twelve years later: how the “rules’’ have changed. Computer 45(2), 23–29 (2012)
Conway, N., Marczak, W.R., Alvaro, P., Hellerstein, J.M., Maier, D.: Logic and lattices for distributed programming. In: Proceedings of the Third ACM Symposium on Cloud Computing, pp. 1–14 (2012)
DeCandia, G., et al.: Dynamo: Amazon’s highly available key-value store. ACM SIGOPS Oper. Syst. Rev. 41(6), 205–220 (2007)
Demers, A., et al.: Epidemic algorithms for replicated database maintenance. In: Proceedings of the Sixth Annual ACM Symposium on Principles of Distributed Computing, pp. 1–12 (1987)
Du, Y., Xu, Z., Zhang, K., Liu, J., Huang, J., Stewart, C.: Cost-effective strong consistency on scalable geo-diverse data replicas. IEEE Trans. Cloud Comput. (2022)
Fouto, P., Preguiça, N., Leitão, J.: High throughput replication with integrated membership management. In: 2022 USENIX Annual Technical Conference (USENIX ATC 22), pp. 575–592 (2022)
Lakshman, A., Malik, P.: Cassandra: a decentralized structured storage system. ACM SIGOPS Oper. Syst. Rev. 44(2), 35–40 (2010)
Lamport, L.: Paxos made simple. ACM SIGACT News (Distributed Computing Column) 32, 4 (Whole Number 121, December 2001) 51–58 (2001)
Letia, M., Preguiça, N., Shapiro, M.: CRDTs: consistency without concurrency control. arXiv preprint arXiv:0907.0929 (2009)
Li, C., Porto, D., Clement, A., Gehrke, J., Preguiça, N., Rodrigues, R.: Making geo-replicated systems fast as possible, consistent when necessary. In: Presented as part of the 10th \(\{ USENIX\}\) Symposium on Operating Systems Design and Implementation (\(\{ OSDI\}\) 12), pp. 265–278 (2012)
Li, C., Preguiça, N., Rodrigues, R.: Fine-grained consistency for geo-replicated systems. In: 2018 \(\{ USENIX\}\) Annual Technical Conference (\(\{ USENIX\} \{ATC\}\) 18), pp. 359–372 (2018)
Li, P., Pan, L., Yang, X., Song, W., Xiao, Z., Birman, K.: Stabilizer: geo-replication with user-defined consistency. In: 2022 IEEE 42nd International Conference on Distributed Computing Systems (ICDCS), pp. 359–369. IEEE (2022)
Lloyd, W., Freedman, M.J., Kaminsky, M., Andersen, D.G.: Don’t settle for eventual: scalable causal consistency for wide-area storage with cops. In: Proceedings of the Twenty-Third ACM Symposium on Operating Systems Principles, pp. 401–416 (2011)
Lykhenko, T., Soares, R., Rodrigues, L.: FaaSTCC: efficient transactional causal consistency for serverless computing. In: Proceedings of the 22nd International Middleware Conference, pp. 159–171 (2021)
Mehdi, S.A., Littley, C., Crooks, N., Alvisi, L., Bronson, N., Lloyd, W.: I can’t believe it’s not causal! scalable causal consistency with no slowdown cascades. In: NSDI, vol. 17, pp. 453–468 (2017)
Ongaro, D., Ousterhout, J.: In search of an understandable consensus algorithm. In: 2014 \(\{ USENIX\}\) Annual Technical Conference (\(\{ USENIX\} \{ATC\}\) 14), pp. 305–319 (2014)
Reagan, R., Reagan, R.: Cosmos db. Web Applications on Azure: Developing for Global Scale, pp. 187–255 (2018)
Schultz, W., Avitabile, T., Cabral, A.: Tunable consistency in MongoDB. Proc. VLDB Endowment 12(12), 2071–2081 (2019)
Seeger, M., Ultra-Large-Sites, S.: Key-value stores: a practical overview. Comput. Sci. Med. Stutt. (2009)
Shapiro, M., Preguiça, N., Baquero, C., Zawirski, M.: A comprehensive study of convergent and commutative replicated data types. Ph.D. thesis, Inria-Centre Paris-Rocquencourt; INRIA (2011)
Sreekanti, V., et al.: Cloudburst: stateful functions-as-a-service. arXiv preprint arXiv:2001.04592 (2020)
Sun, Y., Zheng, Z., Song, S., Chiang, F.: Confidence bounded replica currency estimation. In: Proceedings of the 2022 International Conference on Management of Data, pp. 730–743 (2022)
Terrace, J., Freedman, M.J.: Object storage on CRAQ: high-throughput chain replication for read-mostly workloads. In: USENIX Annual Technical Conference (2009)
Terry, D.B., Prabhakaran, V., Kotla, R., Balakrishnan, M., Aguilera, M.K., Abu-Libdeh, H.: Consistency-based service level agreements for cloud storage. In: Proceedings of the Twenty-Fourth ACM Symposium on Operating Systems Principles, pp. 309–324 (2013)
Uluyol, M., Huang, A., Goel, A., Chowdhury, M., Madhyastha, H.V.: Near-optimal latency versus cost tradeoffs in geo-distributed storage. In: NSDI, vol. 20, pp. 157–180 (2020)
Van Renesse, R., Schneider, F.B.: Chain replication for supporting high throughput and availability. In: OSDI, vol. 4 (2004)
Viotti, P., Vukolić, M.: Consistency in non-transactional distributed storage systems. ACM Comput. Surv. (CSUR) 49(1), 1–34 (2016)
Wang, Z., et al.: Craft: an erasure-coding-supported version of raft for reducing storage cost and network cost. In: FAST, pp. 297–308 (2020)
Wu, C., Faleiro, J.M., Lin, Y., Hellerstein, J.M.: Anna: a kvs for any scale. IEEE Trans. Knowl. Data Eng. 33(2), 344–358 (2019)
Acknowledgments
This work was supported by the National Key R &D Program of China, No. 2022YFB4501703, the National Natural Science Foundation of China (KY0402022036), and the Provincial Key Research and Development Program of Jiangxi (012031379055).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Lou, J., Xu, Z. (2024). Hydis: A Hybrid Consistent KVS with Effective Sync Among Replicas. In: Li, C., Li, Z., Shen, L., Wu, F., Gong, X. (eds) Advanced Parallel Processing Technologies. APPT 2023. Lecture Notes in Computer Science, vol 14103. Springer, Singapore. https://doi.org/10.1007/978-981-99-7872-4_9
Download citation
DOI: https://doi.org/10.1007/978-981-99-7872-4_9
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-99-7871-7
Online ISBN: 978-981-99-7872-4
eBook Packages: Computer ScienceComputer Science (R0)