- COSMOS Testbed Overview
- Getting Started
- User Guide
- Resources, Services and APIs
- Hardware Info
- RF Policies & Compliance
Container Service Migration Tutorial
This wiki page contains tutorials for container migration for edge cloud applications using ORBIT and COSMOS testbed. The following citation can be used for this work.
Maheshwari, Sumit, Shalini Choudhury, Ivan Seskar, and Dipankar Raychaudhuri. "Traffic-aware dynamic container migration for real-time support in mobile edge clouds." In 2018 IEEE International Conference on Advanced Networks and Telecommunications Systems (ANTS), pp. 1-6. IEEE, 2018.
- Sumit Maheshwari, WINLAB, Rutgers University: sumitm[at]winlab.rutgers.edu
Last updated: May 2020
Containers run at the user-space process over the Kernel and have better bandwidth and CPU performance as compared to VMs. The shared resource dynamic container migration approach, therefore, can be used to address deteriorating application QoS, arising from the processing latency (system load) and/or the network latency (user mobility).
This tutorial demonstrates how to accomplish service migrations using containers.
In order to access the testbed, create a reservation, and have it approved by the reservation service. Access to the resources is granted after the reservation is confirmed.
Three nodes are required to run this experiment.
The following topology is used in this experiment. The container is migrated from the source to the destination. The node information and the results can be collected from the console.
Before you can access the testbed, you need to make a reservation and get it approved. After receiving the reservation's confirmation (approval) email:
- Login into reserved domain:
ssh -X email@example.com(the
-Xoption is for enabling the X11 tunneing)
- Load the most updated container migration image (
conmig.ndzreleased) on at least two nodes (this process can take about a few minutes so please be patient):
omf load -i conmig.ndz -t srv1-lg1,srv2-lg1
- Turn on the node:
omf tell -a on -t system:topo:images
- Ping to the nodes to check their status:
- Login into the nodes:
ssh -X root@srv1-lg1and
ssh -X root@srv2-lg1. The files required for this experiment are already loaded in the image. You can also download the full code used in the ShareOn paper from the GitHub repository.
- On the console, create a directory called
migrationand download the simplified Migration Script in it:
- On the console, under the
chmod +x *.shto set permissions.
- Run the migration script as
./conmig.shto observe container packing and migration.
- This experiment runs a license plate recognition application for the images loaded on the node.
- Ssh to the nodes to check the application outputs.