Creating services
Robert Olson
olson at mcs.anl.gov
Wed Jul 2 16:29:38 CDT 2003
A FYI:
if you create a web service via hosting.pyGlobus.Server(), make sure that
you shut down that service at app termination time; otherwise the app
won't terminate cleanly.
(I found this with the service now created as part of the datastore).
Hm. I'm also concerned that there is now a Server created for every Venue
in the new DataStore factoring. There are two problems with this:
1. Each of these Servers has a thread, as its run_in_thread method is
called to start it up. This will cause trouble with things like the TVS
with a couple hundred venues, and hence threads. These threads also need
to be shut down properly when the app exits (not currently done).
2. Each of these servers will have its own port, invisible behind the
firewall.
When the datastore is part of a venue, it should be sharing the Server
(aka VenueSErver.hostingEnvironment) that is part of the venue server.
Both problems above then vanish.
--bob
More information about the ag-dev
mailing list