Skip to content

Project Workflow

Revanth Kumar edited this page Dec 11, 2015 · 1 revision

Created by: Revanth

Project contains 3 levels:

Front end (Mini NOC GUI): Revanth Middleware (Java Spring): Pranjal Backend (Openstack): Di

Workflow:

  1. User enters username and password. This information will be sent to the middleware as a POST request to the spring java server.
  2. Server upon receiving the credentials creates a new domain scoped (not tenant scoped) token using appropriate WEB API and once it gets a success message will store the token and sends back the home page to front end.
  3. Home page has links to different monitors (Processor and Network/RAM). When the user clicks on any monitor, front end will send a GET request to middleware to fetch information about all the instances running in all the tenants. Informations like Name of the instance, UUID of the instance and tenant name to which the instance belongs to. All this information will be embedded into the appropriate HTML file and that file will be sent back as response.
  4. When the user clicks on any instance, front end will generate a GET request for instance specific information like Name, UUID, Tenant name, Owner of the instance and Usage statistics(CPU Utilization / Network / RAM). The middle ware should in this case send appropriate HTML page as response.
  5. Some times it may happen that the token will be expired so it is the middle ware's duty to check and take actions appropriately abstracting that from the front end.
  6. When the user clicks on start traffic button, the front end makes a GET call asking the middle ware to run appropriate files (CPU / Network / RAM Utilization boosters). This will be an AJAX call, so the front end will be expecting a JSON containing information about success of the process.
  7. Similarly when the user clicks on Stop, the middle ware should stop the processes. Make sure if the stop is clicked without clicking start, Please through an error. This will be an AJAX call, so the front end will be expecting a JSON containing information about success of the process.

Duties:

  1. Di will assist Pranjal in deciding on which API call to make and how the utilization boosters are made.
  2. Pranjal will write the middle ware code that does all the above given actions.
  3. Revanth will write the front end that the user interacts with (NOC GUI).

Clone this wiki locally