Hi Jason and All You are absolutely right! I think, I will be using Gridbus broker from Rajkumar Buyya( Aus) to write the broker. It is there already. What I am going to focus is on the matching between numerous resources and client, thus I think I can made it using a rule base. The working memory could be the current state of the resource (supply by hosts) and the client will provide the rule. The things is both attribute let say from resource will be number of CPUs and from user could be a time of expected results.
This is impossible to be mapped between time and number of cpu since its not identical. Thus I have to transform one rule; let say from working memory to the one that common such, as time- both client and hosts being map via "time" now. I thinks they have one term in expert system that related with this type of implementation - it is transforming How it is related to me. Is that RHS rule has to be translated? one big question, is that possible with Jess? Cheers mnoor On Jan 10, 2008 7:12 AM, Jason Morris <[EMAIL PROTECTED]> wrote: > Hi Noor, > > Sorry you were abandoned! > > Grid computing is not my specialty (anybody out there??) but I'll see if I > can help. If I follow you, then you have something that looks like the > diagram below. This is typically known as a Resource Broker, right? > > +--------+ > /| Host 1 | > / +--------+ > / > / > +--------+ +--------+ +--------+ > | Client |-----| Broker |----| Host 2 | > +--------+ +--------+ +--------+ > \ > \ > \ +--------+ +-----------------+ > \| Host n |---| Available RAM n | > +--------+ +-----------------+ > | > | +--------+ > +-----| CPU 1 | > | +--------+ > | > | +--------+ > + ----| CPU 2 | > | +--------+ > | > | +--------+ > +-----| CPU n | > +--------+ > Are you asking how you can write rules that will control how the Broker > object chooses which Host it should use and to which CPU it should allocate > a job, J, to be completed within some finite time, T? > > Perhaps you should take a look at the > Grid Application Framework for Java http://www.alphaworks.ibm.com/tech/gaf4j > > > See particularly: > http://dl.alphaworks.ibm.com/technologies/gaf4j/GAF4JProgrammingModel.doc > > Now, if this isn't what you want or can't be augmented with Jess to make > what you want, then we can continue from there. > > Cheers, > Jason > > On Jan 8, 2008 4:51 PM, Mohd. Noor < [EMAIL PROTECTED]> wrote: > > > > Thanks all > > The reason I want to use the JESS/rule base is in its flexibilty to > update the attribute as publish/subscribe by using a broker. > > What I means is: > > I have a collection of resources attributes to be published in broker > e.g. I have a collection of hosts with different number of CPUs available > and this always changes over time- this information is updated by the > monitoring daemon in the particular resource to the centralised broker. (The > resource information will be publish into the broker as attribute+value > e.g. {RESOURCES=HARDWARE{CPU_AVAIL= 100,MEM_AVAIL=1GB}}) - how to > translate this into rules or something in JESS? > > > > Then I have a collection of user will request for resource, let say the > user want to run a job and GET results within one hour- this request is send > to the broker. BUT the request is not related with CPU_AVAIL attributes but > rather than their own attribute such as TIME_VALUE. e.g. get me the > results within one hour. > > So that, the broker will decide in which node the job should be run. > > > > Hope this will give an overview to what I am working on. > > > > Cheers > > Mnoor > > > > > > > > > > On Jan 8, 2008 4:31 PM, Jason Morris < [EMAIL PROTECTED]> wrote: > > > > > Hi MNoor, > > > > > > This isn't really a Jess question, but perhaps I can help. The > knowledge domain that you are seeking is called Operations Research. Here > is a wikipedia reference to get you stated: > http://en.wikipedia.org/wiki/Operations_research . > > > > > > An objective function is what you minimize (in the case of cost) or > maximize (in the case of profit, output, or other positive objective) -- in > other words, you are trying to find the values for the independent variables > in the objective function for which its value is optimum These inputs are > often constrained over some domains like [0 <= number_of_CPUs <= 1000]. > This optimization is an application of Linear Programming (LP). See > http://en.wikipedia.org/wiki/Linear_programming . > > > > > > So, Is there a particular reason why you have to use rules to solve > your problem? There is a whole branch of applied mathematics which is > devoted to this exact kind of problem. Also, would you please send the > *exact* wording of the problem you have been given? That way, I can say for > certain whether or not an LP approach would be better. > > > > > > Cheers, > > > Jason > > > > > > ----------------------------------------------------------- > > > Jason Morris > > > Morris Technical Solutions LLC > > > http://www.morris-technical-solutions.com > > > > > > > > > > > > > > > > > > > > > > > > On Jan 8, 2008 10:55 AM, Mohd. Noor < [EMAIL PROTECTED]> wrote: > > > > > > > Dear all > > > > > > > > What is it means by cost or objective function? > > > > > > > > one more things. > > > > How I am going to map (using rules) between two different attributes > from users and resources > > > > let say user need to run the job and get results in 1 hour > > > > but the resource available is represented in another attribute, say, > the number of CPU available is 100CPUs > > > > > > > > How I am going to translate and map this two different > definition/schema > > > > > > > > Regards > > > > > > > > mnoor > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > -- > ----------------------------------------------------------- > Jason Morris > Morris Technical Solutions LLC > http://www.morris-technical-solutions.com >
