Hello,
I'm curious if there is a way to test that a service is properly responding to requests on a single machine in a cluster?
We currently run ArcGIS 10.2. We have 3 GIS servers in the default cluster, lets call them server 1, server 2, and server 3 for simplicity. We have one server (server 4) that has the web adapter installed and handles all of the REST requests from our business system.
I have found instances where one of the servers would not be responding to requests. If a request was sent to the web adapter server, the result could be good, or it could result in an error if the request was sent to the server that was not responding to requests. Is there a way to send a request to one of the servers specifically to ensure it is responding? My intentions are to develop some scripting tools to alert us when a service or server is not responding, allowing us to take the appropriate action.
Thanks,
Dennis
Solved! Go to Solution.
I'm not sure if this suggestion will be helpful, but I'd investigate this by modifying the web.config to route the web adaptor traffic through a proxy and run a tool like Fiddler (http://fiddler2.com). Point the proxy to the machine running fiddler and specify the proxy port as 8888. You can then see how the web adaptor is proxying traffic like this example. Put this under the system.net element.
<defaultProxy>
<proxy
usesystemdefault="true"
proxyaddress=http://localhost:8888
bypassonlocal="true"
/>
</defaultProxy>
I'm not sure if this suggestion will be helpful, but I'd investigate this by modifying the web.config to route the web adaptor traffic through a proxy and run a tool like Fiddler (http://fiddler2.com). Point the proxy to the machine running fiddler and specify the proxy port as 8888. You can then see how the web adaptor is proxying traffic like this example. Put this under the system.net element.
<defaultProxy>
<proxy
usesystemdefault="true"
proxyaddress=http://localhost:8888
bypassonlocal="true"
/>
</defaultProxy>
Hi Randall,
Thanks for the suggestion. It seems a little out of my wheelhouse, can I trouble you for a bit more information on how I could accomplish this? I took a look at the web.config file, but I didn't see a system.net element.
Thanks in advance!
Apologies, you can add this element to the web.config if it doesn't already exist.:
<system.net>
<defaultProxy>
<proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:8888" usesystemdefault="false" />
</defaultProxy>
</system.net>