Skip to content

Commit

Permalink
docs: add info how to use unreachable
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Dec 5, 2024
1 parent 68adfb8 commit 975c8a1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/documentation/sitespeed.io/best-practice/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,18 @@ You can also use the <code>--urlAlias</code> if you want to give the page a frie
docker run --rm -v "$(pwd):/sitespeed.io" sitespeedio/sitespeed.io:{% include version/sitespeed.io.txt %} --useHash --urlAlias super --urlAlias duper https://www.sitespeed.io/#/super https://www.sitespeed.io/#/duper
~~~

### How do I test single point of failure (SPOF)?

You can use the dommain unreachable.sitespeed.io that you can connect to but it will be really slow.

For example, you have a web site that load assets from cdn1.readspeaker.com inside of the head tag and you want to test what happens if that domain is really slow. You can do that using Chrome and add this argument.

~~~bash
--chrome.args='--host-resolver-rules=MAP cdn1.readspeaker.com unreachable.sitespeed.io'
~~~

That will make all requests that uses cdn1.readspeaker.com instead access unreachable.sitespeed.io that will slow down everything.


### Running tests from multiple locations
Can I test the same URLs from different locations and how do I make sure they don't override each others data in Graphite?
Expand Down

0 comments on commit 975c8a1

Please sign in to comment.