Docsity

SRS Report for software engineering, Study Guides, Projects, Research of Computer Science

Partial preview of the text

Download SRS Report for software engineering and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

Version <1.0>

Revision History

Date Version Description People

<23/Dec/01> <1.0> First draft Project Owner and

Client: Rajkumar

Buyya

Faculty Advisor: Dr.

Arif Zaman

Project Group:

Jahanzeb Sherwani,

Nosheen Ali, Nausheen

Lotia, Zahra Hayat

14 Embarrassingly Parallel Jobs..................................................................................................................................................... 13

15 Job accounting..................................................................................................................................................... 14

GUI.....................................................................................................................................................
CPU.....................................................................................................................................................
SGE.....................................................................................................................................................

19 Open-source software..................................................................................................................................................... 14

20 Homogenous cluster..................................................................................................................................................... 14

21 References ..................................................................................................................................................... 14

22 Overview ..................................................................................................................................................... 14

23 Overall Description ..................................................................................................................................................... 15

24 Product Perspective ..................................................................................................................................................... 15

25 Product Functions ..................................................................................................................................................... 15

26 User Characteristics ..................................................................................................................................................... 16

27 Constraints ..................................................................................................................................................... 16

28 Assumptions and dependencies ..................................................................................................................................................... 16

29 Apportionment of requirements ..................................................................................................................................................... 17

30 Specific Requirements ..................................................................................................................................................... 17

31 Functionality ..................................................................................................................................................... 17

32 Submit Job..................................................................................................................................................... 17

Introduction..................................................................................................................................................... 17

Inputs..................................................................................................................................................... 17

Processing..................................................................................................................................................... 17

Outputs..................................................................................................................................................... 18

37 View Job Status..................................................................................................................................................... 18

Introduction..................................................................................................................................................... 18

Inputs..................................................................................................................................................... 18

Processing..................................................................................................................................................... 18

Outputs..................................................................................................................................................... 18

Outputs..................................................................................................................................................... 19

57 Calculate Scheduling Information..................................................................................................................................................... 19

Introduction..................................................................................................................................................... 19

Inputs..................................................................................................................................................... 20

Processing..................................................................................................................................................... 20

Outputs..................................................................................................................................................... 20

62 Determine Execution Host..................................................................................................................................................... 20

Introduction..................................................................................................................................................... 20

Inputs..................................................................................................................................................... 20

Processing..................................................................................................................................................... 20

Outputs..................................................................................................................................................... 20

67 Dispatch Job..................................................................................................................................................... 20

Introduction..................................................................................................................................................... 20

Inputs..................................................................................................................................................... 20

Processing.....................................................................................................................................................

Outputs..................................................................................................................................................... 21

72 Update Cluster Status..................................................................................................................................................... 21

Introduction..................................................................................................................................................... 21

Inputs..................................................................................................................................................... 21

Processing..................................................................................................................................................... 21

Outputs..................................................................................................................................................... 21

77 Execute Job..................................................................................................................................................... 21

Introduction..................................................................................................................................................... 21

Inputs..................................................................................................................................................... 21

Processing..................................................................................................................................................... 21

Outputs..................................................................................................................................................... 21

(^82) Reliability ..................................................................................................................................................... 22

Maintenance..................................................................................................................................................... 22

84 Maximum bug rate..................................................................................................................................................... 22

99 Online User Documentation and Help System Requirements ..................................................................................................................................................... 23

100 Purchased Components ..................................................................................................................................................... 23

101 Interfaces ..................................................................................................................................................... 23

102 User Interfaces..................................................................................................................................................... 23

103 Cluster User Interface..................................................................................................................................................... 23

(^104) Cluster Administrator Interface..................................................................................................................................................... 23

105 Hardware Interfaces..................................................................................................................................................... 24

106 Software Interfaces..................................................................................................................................................... 24

107 Communications Interfaces..................................................................................................................................................... 24

108 Licensing Requirements ..................................................................................................................................................... 24

109 Legal, Copyright and Other Notices ..................................................................................................................................................... 24

110 Supporting Information ..................................................................................................................................................... 24

111 Appendix A – Background Research (dated 10th Nov, 2001) on:..................................................................................................................................................... 24

112 Appendix B – Data Flow Diagrams..................................................................................................................................................... 24

113 Appendix C – Data

Dictionary..................................................................................................................................................... 24

Computational economy refers to the inclusion of user-specified QoS parameters with

jobs so that resource management is based on a user-centric approach rather than on a

system-centric approach. This essentially means that user constraints such as deadline

and budget are more important in determining the priority of a job by the scheduler, than

system policies like ordering jobs according to the basis of submission time. Currently,

there is no holistic scheduling mechanism in cluster computing to enable differing QoS

levels for different clients.

1.3.4.. Linux

Linux is an open source operating system, with extensive documentation and user

support.

1.3.5.. Grid Computing [3]

A grid is an infrastructure that couples resources such as computers (PCs, workstations,

clusters and so on), software (for special purpose applications) and devices (printers,

scanners) across the Internet and presents them as a unified integrated single resource

that can be widely used. Grid computing refers to using a grid for processing jobs and

processes.

1.3.6.. Bid-based Proportional Resource-Sharing Model [4]

This is an economic model that specifies one way of allocating (cluster) resources

between competing users based on what their criteria is, such as deadline and budget. In

this model, the amount of resource allocated to users is proportional to the values of their

bids. Essentially, in a bid-based system, the users are allocated tokens or credits, which

they can use for having access to resources. The value of each credit depends on the

resource demand and cost at the time of usage. We can modify this approach for our

cluster, by evaluating this credit/priority according to the deadline and price constraints

of users, and considering the system load and resources use as well. This priority is then

used by a scheduling policy to allocate resource proportionally to the competing jobs.

1.3.7.. Stride Scheduling [5]

This is a scheduling algorithm to enforce resource allocations proportional to a user’s

priority or share. A pool of tickets represents resource rights to a shared resource. A stride

is inversely proportional to the number of tickets allocated to a job, hence representing

the interval (in terms of CPU time) between two successive scheduling of a job. Jobs

with more tickets have shorter strides and hence are scheduled more frequently and

obtain a greater fraction of the resource. The algorithm is deterministic and quite

accurately schedules jobs in exact proportions based on their ticket allocations.

1.3.8.. Process Migration

It is the process of moving a job from one computer system to another without restarting

the job from the beginning.

1.3.9.. Sequential Jobs

These are jobs that must be run on a single node, and cannot be split into separate jobs.

1.3.10.. Embarrassingly Parallel Jobs

These are parallel jobs that are comprised of independent parts that can be split up and

performed on separate nodes as if they are sequential jobs, with minimal inter-job

communication necessary. This is opposed to real parallel jobs that comprise dependent

threads that need to interact with each other during the course of execution.

1.3.11.. Job accounting

It is a method of quantifying the system resources used by a job.

1.3.12.. GUI

Graphical user interface

1.3.13.. CPU

Central processing unit of a computer

1.3.14.. SGE

1.3.15.. Open-source software

Software for which the code is freely available for use and research

1.3.16.. Homogenous cluster

A cluster in which the nodes or workstations have uniform characteristics such as the

same memory size and hard disk space. They run the same operating system.

1.4. References

[1] R. Buyya, D. Abramson, and J. Giddy, Nimrod/G: An Architecture for a Resource

Management and Scheduling System in a Global Computational Grid , HPC ASIA’2000,

China, IEEE CS Press, USA, 2000.

[2] R. Buyya, D. Abramson, J. Giddy, An Economy Driven Resource Management

Architecture for Global Computational Power Grids , The 2000 International Conference

on Parallel and Distributed Processing Techniques and Applications (PDPTA 2000), Las

Vegas, USA, June 26-29, 2000.

[3] R. Buyya, D. Abramson, and J. Giddy , An Economy Grid Architecture for Service-

Oriented Grid Computing , 10th IEEE International Heterogeneous Computing Workshop

(HCW 2001), with IPDPS 2001, SF, California, USA, April 2001.

[4] Rajkumar Buyya, Heinz Stockinger‡, Jonathan Giddy, and David Abramson,

Economic Models for Management of Resources in Peer-to-Peer and Grid Computing ,

Monash University.

[5] B.N. Chun and D.E. Culler, Market-based proportional resource sharing for clusters.

Submitted for publication, September 1999.

1.5. Overview

The rest of the SRS examines the specifications of the Libra Scheduler in detail. Section

2 of the SRS presents the general factors that affect the Libra scheduler and its

requirements, such as user characteristics and project constraints. Section 3 outlines the

detailed, specific functional, performance, system and other related requirements of the

Libra scheduler. Supporting information about appendices is provided in Section 3.

  • Should be scalable, which means that its performance should not degrade with the

addition of nodes and jobs to the cluster

  • Should be configurable, and allow for various scheduling policies that can be

modified to incorporate QoS parameters

  • (^) Should be separable from the cluster management system
  • Should provide administrative security
  • Should provide at least a basic level of job accounting, to aid in scheduling policies
  • Should ideally provide a GUI for all components, such as for users to submit jobs and

for administrators to oversee scheduling

A market-based economic model for computational economy needs to be developed for

the Libra scheduler, which would be responsible for the pricing and allocation of

resources according to user constraints. The model is the bid-based proportional

resource-sharing model, which will allocate computational time to jobs according to their

share determined by the priority of their jobs according to deadline and budget

considerations. To ensure that the actual resource allocation reflects the overall job share,

the proportional stride-scheduling algorithm will be used.

1. User Characteristics

There are essentially two classes of users for the Libra Scheduler used with the : the user

who wishes to submit jobs for the cluster and the administrator who oversees scheduling

and cluster usage. The user needs to know the exact nature of the submitted job, such as

the execution time as well as resources required, and must possess the technical know-

how to use the interface for submitting jobs. The administrator must be an advanced

cluster operator, fully qualified in using Linux, SGE, and the Libra Scheduler.

2. Constraints

The current constraints on the project are related to the provision of hardware resources

to implement and test a high-performance cluster. At present, a network of four Pentium-

III workstations, with a 128 Mb RAM, serves as the cluster, with SGE running on top of

the Linux operating system. For better performance analysis, a larger number of

dedicated workstations would be beneficial.

For testing purposes, a simulating tool needs to be used which may have to be specially

designed if a generic one is not readily and freely available.

3. Assumptions and dependencies

A number of factors that may affect the requirements specified in the SRS include:

  • The workability of the modules such as those dealing with process migration with

the scheduling policies provided by the Libra Scheduler is assumed.

  • A basic module of job accounting and payment considerations will be provided, as

they are not the focus of the scheduler.

  • Users are assumed to have a fair estimate of job execution times, so that the decision

to accept or reject a job is facilitated.

4. Apportionment of requirements

Detailed requirements with respect to the economic front-end, that is, the exact costing

and pricing policy that will be used to charge users for using the cluster will be specified

in a later version. The pricing mechanism will not affect the scheduling policies, as they

assume a given cost and budget, and schedule resources accordingly.

Furthermore, at present, only a command line Linux interface or the interface of the will

be used as the user and administrator interface. A GUI might be added once the basic

functionality is implemented.

It also remains to be decided whether a software tool for simulation and testing purposes

will be designed or a generic one that is freely available will be used.

3. Specific Requirements

1.6. Functionality

This section is organized by the processes and features encapsulated in the Libra

scheduler. First, three features of the overall cluster management system and its

interaction with the user or administrator are described: Submit Job, View Job Status,

Delete/Change Job. These are linked to the inputs and working processes of the

scheduler. They are followed by a detailed specification of the functionality of the Libra

scheduler, which are diagrammatically explained by the Data Flow Diagrams provided in

Appendix B. Appendix C provides the Data dictionary which should be used to interpret

and understand the Data Flow Diagrams.

Submit Job

1... Introduction

This functional feature deals with the end-user (can also be used by the administrator)

and is facilitated by the interface of the. Hence, it is linked to the scheduler, but does not

interface directly with the scheduler. However, the SGE interface will need to be adapted

to include additional submission parameters that a user needs to be submit, which are not

already supported by SGE. This may alternately be done through a command-line

interface.

2... Inputs

User Information – relevant user data such as name and authentication id that needs to be

used to submit a job to the cluster.

Job Information – about the job that the user wants to submit, as well as already pending

jobs, to determine whether the cluster can accept more jobs and can cater to the particular

user job. The job details are provided in the functional feature Initialize Job.

Cluster Information – Cluster Type and Scheduling mechanism details, Current Load

Status, Submission Directions and Criteria.

3... Processing

Initialize Job

1... Introduction

This is a main functional requirement that prepares the scheduler for eventually

scheduling and executing a job. The Libra scheduler performs it once a job has been

accepted by SGE, with information from the scheduler.

2... Inputs

The information submitted by the user about the job, as well as the job id assigned by

SGE.

3... Processing

Two processes are performed as part of this function: the details of the job are retrieved

and then these details are set in variables that represent the state of the cluster and its

queues. The parsed parameters are passed on to the scheduling module where the job may

be accepted or rejected.

4... Outputs

The output comprises the set variables that represent job information submitted with a

job. Hence, the exact job details are output: Job details – Job Id, Job type, Standalone

Execution time, Location of executable and input data sets, System Type, Budget,

Deadline.

Accept/Reject Job

1... Introduction

This is the function that is responsible for determining the possibility of satisfying the

user, given his budget and deadline. Hence, the most important inputs are budget,

deadline, and execution time, to determine whether the job can be accepted or not.

2... Inputs

Job details – Job Id, Job type, Standalone Execution time, Location of executable and

input data sets, System Type, Budget, Deadline.

Cluster information – CPU load, node status, remaining time of pending jobs

3... Processing

Based on the job parameters, the scheduler figures out a priority of the job that reflects

the share of CPU time that it deserves and needs according to the specified criteria. The

scheduler determines whether the job can be finished by the requisite deadline, given the

execution time of the job and the execution status of other pending jobs on various nodes.

4... Outputs

The output includes a boolean value specifying whether the job has been accepted or

rejected. A suggested deadline or cost is given to the user, as a precondition for the job to

be accepted.

Calculate Scheduling Information

1... Introduction

This is the feature of Libra that decides how the job will be scheduled based on its budget

and deadline. It uses the Stride Scheduling Algorithm to enforce resource allocations

(CPU cycles) proportional to a user’s budget and deadline. It is performed by Libra once

it has decided that a job can be accommodated.

2... Inputs

Job details – Job Id, Job type, Standalone Execution time, Location of executable and

input data sets, System Type, Budget, Deadline.

3... Processing

Allocate tickets to a job based on its budget and deadline and the budget and deadlines of

all other jobs on the execution host under debate. Calculate the stride and the pass of the

job, where the stride is simply the global stride constant divided by the tickets and the

pass is initially just the stride.

4... Outputs

Scheduling information – the job’s tickets, stride and pass.

Determine Execution Host

1... Introduction

This feature decides on which node and on which queue the job will be placed for

execution. It is done on the basis of the job’s budget, execution time and deadline.

2... Inputs

Job details – Job Id, Job type, Standalone Execution time, Location of executable and

input data sets, System Type, Budget, Deadline.

Cluster Information - CPU Load, Node Status, Remaining Time of Pending Jobs,

Available Memory

3... Processing

Libra first looks at the load on each of the hosts and sorts them in ascending order,

choosing the host that is least loaded. This ensures that load balancing is taken care of. It

then selects the appropriate queue based on whether the job is sequential or

embarrassingly parallel, budget, etc…

4... Outputs

The chosen execution host and queue.

Dispatch Job

1... Introduction

This feature takes the job and inserts it into the queue on the execution host that the

scheduler had previously decided it is to be placed in. This is a separate feature since the

job may be able to wait for a while before it is given CPU time, allowing other jobs to

complete or be scheduled earlier if their deadlines are more urgent. Thus, the dispatcher

decides when to actually send the job for execution.

2... Inputs

The chosen execution host and queue on which to place the job for execution.