Attached policy Export BlockBranch.xml
Javascript and cache to monitor failover count and retries
<Please see attached file for image>

Attached policy export RouteByPercentage.xml
Javascript uses context.setVariable("js.response", Math.floor((Math.random() * 10) + 1));
<Please see attached file for image>
