Develop a replicator that distributes a large job

Assignment Help Operating System
Reference no: EM132832567

Project: A Simple Distributed Computing Platform

Description:

You are asked to develop a replicator (client) that distributes a large job over a number of computers (a server group) on a single switched LAN (our Linux lab). In this assignment, a large (simulation) job can be divided into a number of small jobs, each of which can be assigned to one machine from the server group for execution. The execution results of the small jobs can be merged once all of them successfully terminate.

System Architecture:

1427_server.jpg

The client and servers are running Network File System (NFS) so that user files are visible at $HOME directory. You may want to set up the following environment:

• SHOME/replicate.hosts: a list of (server) hostnames which participate in the simulation. There is no reason why your implementation cannot support up to 10 servers.
• SHOME/replicate_out the directory that stores the small job execution result.
The simulation program " hyper nk " (binary) is provided. In this assignment, you don't need to know or care what "hyperlink" does, and

The simulation program " hyper link " (binary) is provided. In this assignment, you don't need to know or care what "hyper_link" does, and actually it is a computing intensive (CPU demanding) simulator. The command line arguments of "hyper link" are job# 1000000 999 1 2 2 100, where the job number determines the number of small jobs in your simulation. To allow the client to run a large job, the job# should be given in a tuple: start, end, and step. For example, the command (from the client) "hyper_link 1 100 1 1000000 999 1 2 2 100" yields 100 small jobs with the job# starting from 1 to 100. Each small job produces a screen output (see example below) at the end (if finished successfully). Your code needs to redirect the output to a file and save it in $HOME/replicate_out. For example (on the server side),

Requirements:

1. The communications between the replicator and servers are achieved through remote procedure calls in the client-server fashion. You can only use C programming tannage to complete this project. Your implementation should not rely on any extra library (to compile your code). Your code must compile by using gcc installed on the Linux workstations in FH 133.

2. A user interface is required for the replicator to control the server. A command line interface will be acceptable. A (working) graphic user interface (GUI) will impress the instructor and earn up to 20 bonus credits. Your client interface should at least support the following operations.
o start a large job. For example: hyper_link 1 100 1 1000000 999 1 2 2 100 (start 100 small jobs with job number starting from 1 to 100)
o show the current CPU load of a certain server (if the server is active).
o show the current server status (active or inactive).
o stop a certain server.
o restart a certain server.
o For those who are going to implement GUI, you need to create an icon for each server, and show the server status in the real time, e.g., the CPU load (with the mark of hi-threshold), active/inactive, etc.
o The hi-threshold and lo-threshold can be set to the pre-determined values (as long as they are reasonable). Alternatively, you will impress the instructor by implementing the configurable threshold values during the run. If that is the case, you have to provide two extra commands that set the values.

3. The replicator has to make sure all small jobs are successfully finished.
o If a server crashes (or not responsive), the running job (not finished yet) will be killed and rescheduled (at a certain time per your design) for execution.
o If a server CPU load exceed the preset threshold (the higher threshold), the replicator stops the server (and therefore kills the job).
o The replicate should keep polling the CPU load of the stopped server. Once the load becomes lower than the lower threshold (a preset value), the server should be reactivated to run the jobs.
o The replicator can also stop any server (through user interface) if needed. Once happened, the unfinished job will be killed.
o If a job terminates abnormally (e.g., being killed), the replicator has to reschedule the job execution later.

4. Makefile: you need to provide a Makefile that allows the instructor to compile your code by simply typing "make".

5. Write-up: you are required to write a README document (in txt format) that describes your project design detail and the execution sequence (with the commands). In particular, please explicitly state which part, if there is any, does not work and the possible reasons

Attachment:- Distributed Computing.rar

Reference no: EM132832567

Questions Cloud

Which of the two new ideas will increase profits : Mo and Joe run a very successful restaurant in a busy downtown area. Which of the two new ideas will increase profits most
Prepare the journal entry to record the purchase return : Prepare the journal entry to record the purchase return using the perpetual inventory system. Prepare the journal entry for JB Supermarkets on July 24.
Most important aspect of change management : Discuss what you believe to be the most important aspect of change management
Demonstrate the diversity-related skills : Do they demonstrate any of the diversity-related skills discussed in the textbook, and have they contributed to their success, if so how?
Develop a replicator that distributes a large job : Develop a replicator that distributes a large job over a number of computers (a server group) on a single switched LAN (our Linux lab
Prepare the journal entry to record return for quikk-mart : Prepare the journal entry to record the return for Quikk-Mart on July 22. Quikk-Mart received a shipment of T-shirts from Killers and Kings Clothing
Pros and cons of research styles of human sexuality : What is the pros and cons of different research styles of human sexuality.
Explain the function of a page break : a) Briefly explain any FIVE (5) flyer. Provide details for each of the formatting suggestions provided.
What amount to be reported as investment in share rights is : What Amount to be reported as investment in share rights is? What Total cost of the new investment if all the rights are exercised is

Reviews

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd