Home

Awesome

DeFog: Fog Computing Benchmarks

Demystifying Cloud-Edge Interactions of a Fog System Using Container-based Benchmarking

Citing this Research

Jonathan McChesney, Nan Wang, Ashish Tanwer, Eyal de Lara, and Blesson Varghese, "DeFog: Fog Computing Benchmarks," ACM/IEEE Symposium on Edge Computing, 2019.

Link to PDF: http://bvarghese.staff.cs.qub.ac.uk/papers/DeFog-SEC2019.pdf.

How to Run

navigate to the DeFog folder: $ sh defog .

How to View Help

navigate to the DeFog folder: $ sh defog -?

How to run iPokeMon JMeter

User Device Dependencies

Include a JAVA_HOME path variable, with value C:\Program Files\Java\jdk1.8.0_181 (or the latest version of JAVA 8 jdk/jre)
Append C:\Users\jmcch\AppData\Local\Taurus\bin, C:\Program Files (x86)\Common Files\Oracle\Java\javapath and C:\Program Files\Java\jdk1.8.0_181 to the system and user variables

If Files/Java/jdk1.8.0_102/bin/java: No such file or directory appears, this means the path/user variables are not set up correctly for JMeter, please consult the Apache JMeter documentation to fix this issue.

$ ssh-keygen
// copy to authorized keys - should now allow ssh without prompting a password
root@123.123.12
[default]
region = eu-west-1
[default]
aws_access_key_id = XXXX
aws_secret_access_key = YYYY

If an issue us thrown regarding '\r' line endings, this is due to GitLab automatically converting line endings LF to CRLF, this can mitigated by updating the config: $ git config --global core.eol lf. The line endings should be Unix (LF) format, consult git documentation to update the local git attributes to ensure the correct line endings are used.

* text=auto
*.txt text
*.c text
*.h text
*.jpg binary

If an error is thrown when connecting to the Cloud instance this is likely due to the .aws folder's contents not being set up correctly, ensure the IAM user created has the necessary priviliges/authentication to remotely access the EC2 instance and the keys are added in the format above. If the issue persists then it may be benefical to consult the AWS documentation regarding remotely accessing an EC2, as this will outline the individual steps required to set up the .aws folder.

If an issue is thrown when using secure shell to connect to the Edge or Cloud, then ensure the .ssh folder has been set up correctly. This should contain the public and private ssh keys generated. Authorized keys and known_hosts will be populated to this folder over time.

Cloud Platform

If issues arise when setting up IAM users or updating the ssh or aws credentials on the edge nodes and user device consult the AWS documentation: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html

Edge Platform

If an error is thrown when DeFog attempts to upload the results to the S3 bucket, it is likely the .aws credentials are not set up correctly on the edge node. If necessary, ssh/scp the relevant access keys to the devices .aws folder. Ensure the .aws folder is located at root, i.e. /root/.aws as this is the location the docker run scripts look for.

If an error is thrown or ssh prompts a password or terminal interaction then the .ssh folder may not be set up correctly on the edge node. Ensure the the folder is located at /root/.ssh and contains the authorized_keys folder which is populated with the user devices public rsa key e.g. ssh-rsa VVVV343BJ....