Repository navigation
[New] Adding a tutorial on failure-aware placement - #6
Open
prawalpokharel wants to merge 1 commit into
Open
prawalpokharel wants to merge 1 commit into
prawalpokharel wants to merge 1 commit into
Conversation
The new notebook places each service on the least central edge server that meets its user's delay SLA, and compares it with First-Fit and a closest-server algorithm under central, neighborhood and single-site failures, with the dataset's SLAs and with tighter ones. datasets/sample_dataset3.json is a 49-site scenario (Barabási-Albert topology, 16 edge servers, 24 single-service applications) built with the dataset generator's functions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Following up on our email, this adds a tutorial on placing services with the network topology in mind, built around the least-central rule.
notebooks/creating-failure-aware-placement-algorithm.ipynbprovisions each service on the least central edge server (betweenness centrality on theTopologygraph) that keeps its user within the delay SLA. It compares this with First-Fit and a closest-server algorithm under three failures: the three most central of the 16 server sites, a site together with the sites linked to it, and the worst single site. It then repeats the comparison with tighter SLAs.The results are mixed. On the tutorial's map, avoiding central sites cuts the users affected by the central failure to 2, against 7 for First-Fit and 9 for the closest-server algorithm. The closest-server algorithm does better when a site fails together with its linked sites, though, as its services sit near their users and are spread over more servers. On ten maps built the same way with the dataset's SLAs:
With tighter SLAs, least-central had the fewest in the central failure on only 4 maps. The script for these runs is https://github.com/prawalpokharel/edgesimpy-cei/blob/main/examples/failure_aware_tutorial_maps.py.
The sample datasets are too small for this comparison (in
sample_dataset2, First-Fit already places all six services on the least central server), so I addeddatasets/sample_dataset3.json: 49 base stations with a Barabási-Albert topology, 16 edge servers and 24 single-service applications with 25 and 45 ms SLAs (296 KB). It was built from the dataset generator's functions withbuild_scenariofrom edgesimpy-cei.datasets/is in.gitignore, so I added it withgit add -f. If you'd rather not add a dataset, I can build the scenario inside the notebook.Users are kept at their starting base stations, so every algorithm is evaluated with users in the same places. I ran the notebook on EdgeSimPy master (d4611f4) in an environment with the packages installed and in a fresh one where the first cell installs EdgeSimPy. Both read the dataset from a local copy, since its URL only works after merging. Both runs gave the same outputs.
It also adds a row for the tutorial in the README.