Skip to content

[New] Adding a tutorial on failure-aware placement - #6

Open
prawalpokharel wants to merge 1 commit into
EdgeSimPy:masterfrom
prawalpokharel:failure-aware-placement-tutorial
Open

prawalpokharel wants to merge 1 commit into
EdgeSimPy:masterfrom
prawalpokharel:failure-aware-placement-tutorial

Conversation

@prawalpokharel

Copy link
Copy Markdown

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.ipynb provisions each service on the least central edge server (betweenness centrality on the Topology graph) 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:

  • least-central affected the fewest users in the central failure on 8 maps,
  • closest-server affected the fewest in the neighborhood failures on 9,
  • least-central's worst single-site failure was larger than closest-server's on 9.

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 added datasets/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 with build_scenario from edgesimpy-cei. datasets/ is in .gitignore, so I added it with git 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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant