A single-node version load balancer as a service.
python3, django, ansible, libvirt, docker.
# libvirt
sudo apt install qemu-kvm libvirt-bin virt-manager virt-viewer virtinst
sudo apt install libvirt-python libvirt-dev
pip3 install libvirt-python
# ansible
sudo apt-get install ansible libssl-dev
pip3 install ansible
# django
sudo pip3 install Django
# docker
pip3 install docker
- create a admin namespace using
ip
:
sudo ip netns add admin_ns
-
To use the virtual machine, first create a virtual machine as a template.
- download a centos 7 image
- create a new vm named using
virt-install
. - name it as
zlu24vm1
, add userzecao
and password123
.
-
Run the server
- enter the Server directory
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver port-number
-
Run the client
- enter the Client directory
- change the port-number in the
client.py
to the server port-number - change the coreesponding template file.
- run it:
python3 client.py template/insCreate.json
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md file for details
- This project is a course project of NCSU CSC792
- We would like to express our very great appreciation to Professor Anand.