[go: up one dir, main page]

Skip to content

Assignment for Systems Engineering 1 course on Technische Universität Dresden, Distributed Systems Engineering

Notifications You must be signed in to change notification settings

radosz99/se1-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Systems Engineering I - Assignment #2

In order to complete the tasks below, please fill the gaps code wise in the files given in the repository. Note: You can use any favorite editor or IDE to accomplish those tasks.

Task

Container #1:
  • Base image: Ubuntu 16.04 LTS
  • SSH Server – expose port to external port 20022
  • Add the CI's public ssh key (gitlab_id_rsa.pub) in addition to yours to the ssh server
  • Ssh with public key should work
  • Install memcached v1.4.33 (build from source)
  • Expose ports for SSH Server and memcached (for other container)
  • Run container as user Ubuntu (id=1000) instead of root
Container #2:
  • Base image: Ubuntu 16.04 LTS
  • SSH Server – expose port to external port 10022
  • Add the CI's public ssh key (gitlab_id_rsa.pub) in addition to yours to the ssh server
  • Ssh with public key should work
  • Install memcached benchmark client (mcperf)
  • Intstall Dude & R
  • Run container as user Ubuntu (id=1000) instead of root
Docker compose
  • Use Docker compose to get the communication between the containers running as well as the experiment.
The experiment script/work flow
  • dude run:
  • ssh to the memcached server (container #1) to launch memcached
  • Launch the benchmark client (locally - container #2)
  • Grab the output from the benchmark client using cut etc. magic: "Response rate", "Response time [ms] avg" - Dude dimensions: rate
  • dude sum: summarizes the output - single csv file
  • The plot the graphs $ Rscript ….R

Test it using the following command sequence:

#!/bin/bash

sudo docker-compose up -d
ssh ubuntu@127.0.0.1 -p 10022 "./run.sh"
scp -P 10022 ubuntu@127.0.0.1:~/graph*.pdf .
evince graph*.pdf
sudo docker-compose down

General Notes

  • Solutions must be turned in no later than December, 15th 2021 AoE - No late days or other excuses.
  • Commit & PUSH!!! to your repository often before the deadline. Don't forget the push.
  • No team work. We check for plagarism and will let you fail if there is an indication given.
  • Ask questions at auditorium if there are any.

Add ssh-public-key contained in this repository!

About

Assignment for Systems Engineering 1 course on Technische Universität Dresden, Distributed Systems Engineering

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published