[GE users] Parallel Environment and Complexes

Bernard Li bli at bcgsc.ca
Mon Apr 5 19:28:41 BST 2004


Hey Charu:

Here is my solution - it is not clean but it works...  If you have a
better idea, please let me know:

- there is no license manager for our application, we are just
implementing it so that only one instance will run at a time (since we
only have one license).
- the load sensor just checks the lock file, if it is in use, the sensor
reports 0, if it is not in-use, it reports 1.

- when the user wants to use the application, he requests for 0.001
license (this is just an arbitrary number, as long as # of slots x
(number) is less than 1, then it is ok...
- the startup script would touch a lock file, so the load sensor will
detect that a license is in use
- if another job comes along requesting 0.001 license, it would fail
since the license = 0 and is thus queued
- if the first job finishes, the stop script would delete the lock file,
and load sensor will report the license to be 1

I also have another question regarding PE, is there a way to tie PE to a
complex/resource?  I want it set up so that if someone is using a
specific PE, then he will be forced to grab a specific resource from a
complex as well - will this be addressed in SGE6?

Thanks,

Bernard 

> -----Original Message-----
> From: Charu Chaubal [mailto:Charu.Chaubal at Sun.COM] 
> Sent: Monday, April 05, 2004 9:20
> To: users at gridengine.sunsource.net
> Subject: Re: [GE users] Parallel Environment and Complexes
> 
> Hi Bernard,
> 
> Bernard Li wrote:
> > Hey Charu:
> > 
> > Okay I figured out a workaround...  In the PE's startup 
> script, I had 
> > it touch a lock file and use that as a basis for the loadsensor for 
> > the application's license resource.  Not the best way to do it but 
> > seems to work.
> > 
> 
> Does your load sensor get information both from the license 
> manager as well as the lock file?  Does it also use counting 
> by the built-in consumables of Grid Engine?
> 
> By the way, I learned that this problem is NOT addressed in 
> N1GE 6 :^( .
> 
> Regards,
> 	Charu
> 
> 
> > Thanks,
> > 
> > Bernard
> > 
> > 
> >>-----Original Message-----
> >>From: Charu Chaubal [mailto:Charu.Chaubal at Sun.COM]
> >>Sent: Friday, April 02, 2004 13:01
> >>To: users at gridengine.sunsource.net
> >>Subject: Re: [GE users] Parallel Environment and Complexes
> >>
> >>Hello,
> >>
> >>Please see http://gridengine.sunsource.net/issues/show_bug.cgi?id=75
> >>
> >>I believe this issue has been addressed in Grid Engine 6... 
> >>can someone confirm?
> >>
> >>Thanks,
> >>	Charu
> >>
> >>On Apr 1, 2004, at 11:25 AM, Bernard Li wrote:
> >>
> >>
> >>>Hello:
> >>>
> >>>Is there any way to restrict the number of a specific PE
> >>
> >>that can be
> >>
> >>>running at any one time?
> >>>
> >>>This is more like a license restriction, but I couldn't
> >>
> >>figure out how
> >>
> >>>you can limit it using complexes.
> >>>
> >>>Let's say we have one license for an application, and this
> >>
> >>application
> >>
> >>>runs in a PE - how can you set it up so that the it only counts as 
> >>>requesting for 1 license (for the entire parallel job) as
> >>
> >>opposed to #
> >>
> >>>of PE slots x 1 licenses?
> >>>
> >>>Thanks,
> >>>
> >>>Bernard
> >>>
> >>>
> >>
> >>------------------------------------------------------------
> ---------
> >>
> >>>To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> >>>For additional commands, e-mail: 
> users-help at gridengine.sunsource.net
> >>>
> >>>
> >>
> >>########################################################
> >># Charu V. Chaubal				# Phone: (650) 
> >>786-7672 (x87672)
> >># Grid Computing Technologist	# Fax:   (650) 786-4591
> >># Sun Microsystems, Inc.			# Email: 
> >>charu.chaubal at sun.com
> >>########################################################
> >>
> >>
> >>
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> > For additional commands, e-mail: users-help at gridengine.sunsource.net
> > 
> 
> --
> ####################################################################
> # Charu V. Chaubal              # Phone: (650) 786-7672 (x87672)   #
> # Grid Computing Technologist   # Fax:   (650) 786-4591            #
> # Sun Microsystems, Inc.        # Email: charu.chaubal at sun.com     #
> ####################################################################
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list