Platform LSF Reference Version 6.2
lsb.serviceclasses structure
Platform LSF Reference
458
lsb.serviceclasses structure
Each service class definition begins with the line Begin ServiceClass and ends
with the line
End ServiceClass.
Syntax
Begin ServiceClass
NAME = string
PRIORITY = integer
GOALS = [throughput | velocity | deadline] [\
[throughput | velocity | deadline] ...]
CONTROL_ACTION = VIOLATION_PERIOD[minutes] CMD [action]
USER_GROUP = all | [user_name] [user_group] ...
DESCRIPTION = text
You must specify:
◆
Service class name
◆
Goals
◆
Priority
All other parameters are optional.
Example
Begin ServiceClass
NAME=Uclulet
PRIORITY=20
GOALS=[DEADLINE timeWindow (8:30-16:00)]
DESCRIPTION="working hours"
End ServiceClass
CONTROL_ACTION
Syntax
CONTROL_ACTION=VIOLATION_PERIOD[
minutes] CMD [action]
Description
Optional. Configures a control action to be run if the SLA goal is delayed for a specified
number of minutes.
If the SLA goal is delayed for longer than VIOLATION_PERIOD, the action specified
by CMD is invoked. The violation period is reset and if the SLA is still active when the
violation period expires again, the action runs again. If the SLA has multiple active goals
that are in violation, the action is run for each of them.
Example
CONTROL_ACTION=VIOLATION_PERIOD[10] CMD [echo `date`: SLA is
in violation >> ! /tmp/sla_violation.log]
Default
None
DESCRIPTION
Syntax
DESCRIPTION=
text
Description
Optional. Description of the service class. Use bsla to display the description text.
This description should clearly describe the features of the service class to help users
select the proper service class for their jobs.
The text can include any characters, including white space. The text can be extended to
multiple lines by ending the preceding line with a backslash (\). The maximum length
for the text is 512 characters.