× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I cannot post specifics because it's part of our product but I can give you
some general ideas.

> The trickiest part was identifying the number
> of active jobs receiving queue entries.

One way to do this is to time stamp the message when you put it on the
queue.  When you receive it, see how long it sat in the queue: if too long
for your application, fire up another listener.

When to tear a listener down is another story.  You pretty much need a
separate watchdog process to keep track of all the listeners running, and
their workload.  There are plenty of ways to do that, from polling each
listener ('How long since the last work?') to having the listeners send
status back to the dispatcher ('I've been quiet for 5 minutes now.')  The
main issue here is that you do NOT want to tear a listener down, only to
have the workload start another up in a few milliseconds.  So you need to
account for hysteresis in the system (if a listener has been torn down in
the past 3 minutes, don't start another one.  If a listener has been started
in the past 3 minutes, don't tear one down.)

You can store the variables in a control file, data areas or even a user
space.  Also, operations typically want to be able to see what's going on in
the internals of the dispatcher, so think about a file/space to store
current status and perhaps the past hour (or 20 transitions of start/stop)
somewhere so they can easily look at what is happening.  It'll help a lot
during testing too.

I hope some of these ideas are useful...
  --buck




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.