Optimize for multiple DiscoverResources() at once. Use a global
scriptlock to ensure that only one ptopgen runs at a time. Any other requests that come along while ptopgen is running, queue up and wait for it to finish, and then return the same results (shared via a file in /var/tmp).
Please register or sign in to comment