This project is read-only.

Add posibility to query individual servers


When using a load balancer, the script calls the URL and the load balancer redirects the request to a specific server where the cache is warmed up. So not all caches are warmed up.

Please add the posibility to direct the request to a specific server or maybe automatically send the request to all known WFE servers:

$Headers = @{ Host = ''; };
$result = Invoke-WebRequest -Uri 'http://<IP ADDRESS OF SERVER1>' -Headers $Headers $result = Invoke-WebRequest -Uri 'http://<IP ADDRESS OF SERVER2>' -Headers $Headers This way the cache on all servers is warmed up.


Samurai_ka wrote Nov 12, 2015 at 3:13 PM

Please follow the installation instruction described here

In short:
  • Deploy the script on each WebFrontend Server in your Farm.
  • Create a Windows scheduler, as described in the blog post
  • configure the host file on the server

ykuijs wrote Nov 12, 2015 at 6:51 PM

That is the issue: I would like to run the script on a tools machine and not on the WFE itself. Changing the hosts file is a workaround and not a finale solution. Especially since Invoke-Webrequest supports host headers, adding this possibility to the script would be ideale.

Samurai_ka wrote Jan 27, 2016 at 5:06 PM

We had a discussion on this subject if and how this should be implemented. Even though the idea to just have one server is tempting, we'll focus to implement other features first.
However feel free to use the script and add the changes you need.