Abstract
In recent years, operating system level virtualization has grown in popularity due to its capability to isolate multiple userspace environments and to allow for their co-existence within a single OS kernel instance. Checkpoint-restore in Userspace (CRIU) is a tool that allows to live migrate a hierarchy of processes – a container – between two physical computers. However, the live migration may cause significant delays when the applications running inside a container modify large amounts of memory faster than a container can be transferred over the network to a remote host. In this paper, we propose a novel approach for live migration of containers to address this issue by utilizing a recently published CRIU feature, the so-called “image cache/proxy”. This feature allows for better total migration time and down time of the container applications that are migrated by avoiding the use of secondary storage.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
References
Memory changes tracking - CRIU documentation. https://criu.org/Memory_changes_tracking
Userfaultfd - CRIU documentation. https://criu.org/Userfaultfd
CRIU - Checkpoint/Restore in User Space, October 2016. https://access.redhat.com/articles
CRIU (2018). https://criu.org/
CRIU disk-less migration (2018). https://criu.org/Disk-less_migration
Docker, July 2018. https://docs.docker.com/engine/reference/commandline/checkpoint/
Lxd, July 2018. https://github.com/lxc/lxd
Bruno, R., Ferreira, P.: ALMA: GC-assisted JVM live migration for java server applications. In: Proceedings of the 17th International Middleware Conference, p. 5. ACM (2016)
Clark, C., et al.: Live migration of virtual machines. In: Proceedings of the 2nd Conference on Symposium on Networked Systems Design & Implementation-Volume 2, pp. 273–286. USENIX Association (2005)
Documentation, O.: Checkpointing and live migration (2018). https://wiki.openvz.org/Checkpointing_and_live_migration
Emelyanov, P.: System and method for joining containers running on multiple nodes of a cluster. https://patents.google.com/patent/US9621643
Emelyanov, P.: Ability to monitor task memory changes, April 2013. https://lwn.net/Articles/546966/
Emelyanov, P.: Soft-Dirty PTEs - Linux Kernel Documentation, April 2013. https://www.kernel.org/doc/Documentation/vm/soft-dirty.txt
Hacking, S., Hudzia, B.: Improving the live migration process of large enterprise applications. In: Proceedings of the 3rd International Workshop on Virtualization Technologies in Distributed Computing, pp. 51–58. ACM (2009)
Hines, M.R., Deshpande, U., Gopalan, K.: Post-copy live migration of virtual machines. ACM SIGOPS Oper. Syst. Rev. 43(3), 14–26 (2009)
Laadan, O., Nieh, J.: Transparent checkpoint-restart of multiple processes on commodity operating systems. In: 2007 USENIX Annual Technical Conference on Proceedings of the USENIX Annual Technical Conference, ATC 2007, pp. 25:1–25:14. USENIX Association, Berkeley (2007). http://dl.acm.org/citation.cfm?id=1364385.1364410
Lei, Z., Sun, E., Chen, S., Wu, J., Shen, W.: A novel hybrid-copy algorithm for live migration of virtual machine. Future Internet 9(3), 37 (2017)
Milojičić, D.S., Douglis, F., Paindaveine, Y., Wheeler, R., Zhou, S.: Process migration. ACM Comput. Surv. (CSUR) 32(3), 241–299 (2000)
Reber, A.: Combining pre-copy and post-copy migration, October 2016. https://lisas.de/~adrian/posts/2016-Oct-14-combining-pre-copy-and-post-copy-migration.html
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
Stoyanov, R., Kollingbaum, M.J. (2018). Efficient Live Migration of Linux Containers. In: Yokota, R., Weiland, M., Shalf, J., Alam, S. (eds) High Performance Computing. ISC High Performance 2018. Lecture Notes in Computer Science(), vol 11203. Springer, Cham. https://doi.org/10.1007/978-3-030-02465-9_13
Download citation
DOI: https://doi.org/10.1007/978-3-030-02465-9_13
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-02464-2
Online ISBN: 978-3-030-02465-9
eBook Packages: Computer ScienceComputer Science (R0)