Select to view content in your preferred language

Access all SOE/ArcSOC Processes?

790
5
10-30-2012 05:06 AM
JeffMachamer
Occasional Contributor
I am caching some information inside of my SOE that I want to be able to clear on demand.  When running a single process on the Map Service it is quite easy to do using a REST end point on the SOE.  However, when the number of processes increase there is no way that I know of to hit each instance of the SOE that is running. 

Certainly I could restart the Map Service to guarantee each of the SOE instances clears out it's cache, but that leaves me with potential downtime that I would like to avoid.

Anyone know of an interface that would allow accessing each of the SOE instances on a map service?  I've looked through some of the Object Model pdfs but haven't come up with anything. 

I'd prefer to avoid having to have a separate service running on the machine that each SOE instance has to register with upon startup as I feel like there should be a way to do this through ESRI interfaces...

Ideas or Thoughts?

Jeff Machamer
3-GIS
Tags (2)
0 Kudos
5 Replies
nicogis
MVP Alum
Can you give details of what you mean "caching some information inside of my SOE " ?
0 Kudos
JeffMachamer
Occasional Contributor
Well, I didn't include any details about the cached information because I don't think it is relevant to what I am trying to do.  I just want to find a way to clear this cached information from memory from all instances of the SOE at once.

(In this instance the cached information is actually a cached AppDomain, which could be cached in each SOE instance.)

Jeff
0 Kudos
nicogis
MVP Alum
I think that you review your implementation because soe advantages benefit from caching and soe follows cycle life of server object (when server object instance itself is created it creates soe instance: the initialization cost of the creating the object is paid once). You have shutdown event of soe for clear your info and free memory.
0 Kudos
JeffMachamer
Occasional Contributor
Right, I understand how the SOE works and why it works the way it does.  However, I was looking for a bit more control over some of the information contained within the SOE without needing to start/stop the service.  i.e. I didn't want to pay the price to restart the ArcSOC processes when I only needed to clear out some cached information.

I've found a way around this though, so no worries.  (Independent of ArcGIS.)
0 Kudos
nicogis
MVP Alum
well, if you have found solution. However this is true ("I didn't want to pay the price to restart the ArcSOC processes") if you are in high isolation because in low isolation you would do start all services instance in same process.
see ArcGIS for Server process configuration http://wiki.gis.com/wiki/index.php/Server_Software_Performance
0 Kudos