Top Banner
Design Paradigm Transparent to the user Component add-on rather than alteration GINI remains independent Only altered the Configuration file GINI on a Cloud © November 09 1 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie
19

Design Paradigm

Mar 18, 2016

Download

Documents

moral

Design Paradigm. Transparent to the user Component add-on rather than alteration GINI remains independent Only altered the Configuration file. David El Achkar, Simon Foucher , Mia Hochar, Marc Atie. Design Paradigm. Use of flexible communication library: twisted GINI already in Python - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Design Paradigm

1

Design ParadigmTransparent to the user

Component add-on rather than alterationGINI remains independentOnly altered the Configuration file

GINI on a Cloud © November 09

David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

Page 2: Design Paradigm

2

Design ParadigmUse of flexible communication library:

twistedGINI already in PythonFlexibleAvailable source codeStableHigh-level functions

GINI on a Cloud © November 09

David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

Page 3: Design Paradigm

3

Improvements Overview

GINI on a Cloud © November 09

Front End Dispatcher

Database

Scheduler

Back End

Back End

Back End

Back End

Server Workers

Client

David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

Page 4: Design Paradigm

4

Current Access to remote server

GINI on a Cloud © November 09

Page 5: Design Paradigm

5

Connection to server

GINI on a Cloud © November 09

Page 6: Design Paradigm

6

Connection to server

GINI on a Cloud © November 09

Front End

Back End

SSH Tunnel

Page 7: Design Paradigm

7

Addition to GINI

GINI on a Cloud © November 09

Page 8: Design Paradigm

8

Addition to GINI

GINI on a Cloud © November 09

Page 9: Design Paradigm

9

Gateway to the cloud

GINI on a Cloud © November 09

Page 10: Design Paradigm

10

Sequence of Events1. Send Dummy variable

Front End Dispatcher

Database

NoWorker

GINI on a Cloud © November 09

David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

Page 11: Design Paradigm

11

Sequence of Events2. Dispatcher searches for a worker

Front End Dispatcher

Database

Best Worker?

GINI on a Cloud © November 09

David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

Page 12: Design Paradigm

12

Sequence of Events3. Returns worker or dummy variable

Front End Dispatcher

Database

Worker’s IP

GINI on a Cloud © November 09

David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

Page 13: Design Paradigm

13

Why the dummy variable?

GINI on a Cloud © November 09

Need to establish TCP communicationRecycled as an error flagCould be user to convey info in future

upgrade

Page 14: Design Paradigm

14

End Result: Unaltered GINI

GINI on a Cloud © November 09

Page 15: Design Paradigm

15

Connection to server

GINI on a Cloud © November 09

Hidden location of back end

Front End

Back End

SSH Tunnel

Page 16: Design Paradigm

16

FlexibilityNon-fixed data types being passedCurrently a string: IP, DNS or anything else

GINI on a Cloud © November 09

Page 17: Design Paradigm

17

DrawbackTemporary TCP connection: Port expiration at

timeoutMost Clients don’t have DNS

GINI on a Cloud © November 09

Page 18: Design Paradigm

18

Design Dilemma

GINI on a Cloud © November 09

EitherMaintain permanent client-dispatcher

connection Resources consuming Might not bring any benefits Requires heavy alterations to gServer

Drop the connection after delivering the goods Lightweight component No resources used Impossible (or difficult) to retrieve clients

Page 19: Design Paradigm

19GINI on a Cloud © November 09