BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download...

40
BiBiServ 2 (in the cloud) Jan Krüger AGPI Seminar 12.12.2011

Transcript of BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download...

Page 1: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ 2 (in the cloud)

Jan Krüger

AGPI Seminar12.12.2011

Page 2: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

Overview● Technical terms and definitions

● Historic (current) approach

● BiBiServ2 aims

● BiBiServ2 Component Overview & LiveDemo

● AmazonWebServices

● BiBiServ in the cloud – instantbibi

● What's missing ? Near future work to do ...

Page 3: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

Technical terms & definitions

JSF 1/2XML Schema

XMLXSLT

Beans/ Pojo's

J2EE

maven

antmercurial

PrimeFaces

IceFaces

SpringGlassfish ivy

Page 4: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ

● Apache WebServer + Perl/CGI● J2EE Server + Axis WebServices● Template based● BiBiTools Libraries for Perl/Java● (S|O)GE Support

Page 5: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (advantages)

● Stable infrastructure

● Test environment

● (Relative) Simple

– no web session

– tools are independent from each other

– static page generation

● Well known UI

Page 6: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (disadvantages)user point of view

● Layout sometimes follows CI <=> Which CI ?

● Sometimes bad error handling

● Often bad (or non existing) documentation

● Limited input data types

● Different meaning/handling for same data type (e.g. fasta)

● Bad tested form evaluation (mostly for complex tools)

● Often missing of (good) examples

Page 7: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (disadvantages)developer point of view

● Need a lot of understanding of web development

● Different technologies (perl/html + ajax + java)

● Two different server = Two error sources

● Test environment only internally available

● Developers hate/fears/love programming effort

– Parameter and Input Validation

– Error handling● Nearly impossible to install test environment on a laptop

● Live debugging is impossible

Page 8: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (disadvantages)admin point of view

● 2 (4) server + database to maintain

● No dedicated database

● platform depended binaries (on webserver)

● Nearly impossible to install test environment on a laptop

● Webservice : axis 1.x based (= non standard data types, broken wsdl), SOAP::Lite

● Mostly no documentation of tools

● Porting to a new platform is very time consuming

Page 9: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ2 aims

● Global layout /CI

● Well documented (manual, forms, errors), detailed tool description

● Persistent URL, long term support, different states of publication

● Modern, up-to-date UI

● Input data follows data type not format

● Developer :

– Fast publishing with minimal programming effort

– Content/Functionality “can” modified manually

● Platform independent server structure

● Easy server setup for local development

Page 10: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ2 overview (1)

XSD

Wizard

ToolDescription

Base-

CodeGenTool

Project

IvyLibraryStorage

ToolSpecific

Resources

Ontology,Ontology Mappings

VCS(Mercurial)

Page 11: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ2 overview (2)

ToolProject

Ant-

Netbeans

ToolBAR

ManagerClient

ManagerServer(Core)

BiBiServ2 Web Application

RequestFilterVCS

(Mercurial)

DB BiBiTools

AdminModul

ComputeGrid

/<toolid>

FS

WWW

S3

WEB WSSSWAP

Download

Manual References

WEB WSSSWAP

Download

Manual References

WEB WSSSWAP

Download

Manual References/admin/<modulid>

StatisticsUser

management

Logs “My Space” “My Jobs”

Otherresources(Apache)

Page 12: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

Amazon Web Service

● AWS : set of online services ● Elastic Compute Cloud (EC2)

– Various instance types from XS to XXXL

– various AMI's ● Simple Storage Service (S3)

– Key-value storage

– Fast & independent from instances

– various interfaces (SOAP, REST, API, Shell, …)

Page 13: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (in the Cloud)bioinformatic server limitation

● Problems

– huge (and fast growing) data set

– limited bandwidth

– Limited CPU time, Limited memory per job

● Solution

– Move the server to the data instead the data to server

Page 14: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (in the Cloud)InstantBibi

● set up an application server is time consuming

– Download needed resources

– Configuration of Server/Database

– Start server and deploy tools, extensions, ...

● 1st developed to full-fill one of BiBiServ2 aims → easy setup of a development system

● Extended for setup a end-user system, including example apps/bins for different platforms

● Run on any Unix based system with installed Java and ant build tool

Page 15: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (in the Cloud)InstantBibi

● Check java & ant version

● Get instantbibi

● Call ant instant

– Get depended resources

– Set up and configure domain && database

– Start domain

● Call ant install.guugle

– Get precompiled guugle resources

– Install BAR and system depended tool binaries

Page 16: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

What's missing ? (1)Future work to do ...

● improve Layout

● support a more “neutral” layout for non bibiserv usage

● support for cloud fs (e.g. Amazon S3)

● extend/rewrite MyBiBiServ area

● GUI/Module Manager

● Wizard

● enhanced statistics

● “MyJobs”

● “MySpace”

Page 17: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

What's missing ? (1)Future work to do ...

● improve Layout

● support a more “neutral” layout for non bibiserv usage

● support for cloud fs (e.g. Amazon S3)

● extend/rewrite MyBiBiServ area

● GUI/Module Manager

● Wizard

● enhanced statistics

● “MyJobs”

● “MySpace”

Page 18: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

What's missing ? (2)Future work to do ...

● Views

– Sequence Alignments – Raeda

– Repeats – RepVis

– RNA secondary structure – PseudoViewer Korea

– RNA secondary structure – RNAMovies● Runtime estimation

Page 19: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

XSD

Wizard

ToolDescription

Base-

CodeGenTool

Project

IvyLibraryStorage

ToolSpecific

Resources

Ontology,Ontology Mappings

VCS(Mercurial)

Turan – diploma thesis (2009)Tobias – bachelor thesis (2011)

Daniel – master thesis (2008)

Sven – PHD (2012)

Ant-

Netbeans

ToolBAR

ManagerClient

ManagerServer(Core)

BiBiServ2 Web Application

RequestFilter

DB

BiBiTools

AdminModul

ComputeGrid

/<toolid>

FS

S3

WEB WSSSWAP

Download

Manual References

WEB WSSSWAP

Download

Manual References

WEB WSSSWAP

Download

Manual References/admin/<modulid>

StatisticsUser

management

Logs “My Space” “My Jobs”

Otherresources(Apache)

Hao Chen – diploma thesis (2008)Madis – master thesis (2011)

Jan Koelling - bachelor thesis (2010)

Views:Borislava – bachelor thesis(2009)Sammy – bachelor thesis(2009)

Madis – master thesis (2011)

Richard - bachelor thesis (2008)

Christian - bachelor thesis (2012)

Page 20: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

Thanks for your attention!

Page 21: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ 2 (in the cloud)

Jan Krüger

AGPI Seminar12.12.2011

Page 22: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

Overview● Technical terms and definitions

● Historic (current) approach

● BiBiServ2 aims

● BiBiServ2 Component Overview & LiveDemo

● AmazonWebServices

● BiBiServ in the cloud – instantbibi

● What's missing ? Near future work to do ...

Page 23: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

Technical terms & definitions

JSF 1/2XML Schema

XMLXSLT

Beans/ Pojo's

J2EE

maven

antmercurial

PrimeFaces

IceFaces

SpringGlassfish ivy

Page 24: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ

● Apache WebServer + Perl/CGI● J2EE Server + Axis WebServices● Template based● BiBiTools Libraries for Perl/Java● (S|O)GE Support

Page 25: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (advantages)

● Stable infrastructure

● Test environment

● (Relative) Simple – no web session

– tools are independent from each other

– static page generation

● Well known UI

Page 26: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (disadvantages)user point of view

● Layout sometimes follows CI <=> Which CI ?

● Sometimes bad error handling

● Often bad (or non existing) documentation

● Limited input data types

● Different meaning/handling for same data type (e.g. fasta)

● Bad tested form evaluation (mostly for complex tools)

● Often missing of (good) examples

Page 27: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (disadvantages)developer point of view

● Need a lot of understanding of web development

● Different technologies (perl/html + ajax + java)

● Two different server = Two error sources

● Test environment only internally available

● Developers hate/fears/love programming effort

– Parameter and Input Validation

– Error handling● Nearly impossible to install test environment on a laptop

● Live debugging is impossible

Page 28: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (disadvantages)admin point of view

● 2 (4) server + database to maintain

● No dedicated database

● platform depended binaries (on webserver)

● Nearly impossible to install test environment on a laptop

● Webservice : axis 1.x based (= non standard data types, broken wsdl), SOAP::Lite

● Mostly no documentation of tools

● Porting to a new platform is very time consuming

Page 29: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ2 aims

● Global layout /CI

● Well documented (manual, forms, errors), detailed tool description

● Persistent URL, long term support, different states of publication

● Modern, up-to-date UI

● Input data follows data type not format

● Developer :

– Fast publishing with minimal programming effort

– Content/Functionality “can” modified manually

● Platform independent server structure

● Easy server setup for local development

Page 30: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ2 overview (1)

XSD

Wizard

ToolDescription

Base-

CodeGenTool

Project

IvyLibraryStorage

ToolSpecific

Resources

Ontology,Ontology Mappings

VCS(Mercurial)

Page 31: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ2 overview (2)

ToolProject

Ant-

Netbeans

ToolBAR

ManagerClient

ManagerServer(Core)

BiBiServ2 Web Application

RequestFilterVCS

(Mercurial)

DB BiBiTools

AdminModul

ComputeGrid

/<toolid>

FS

WWW

S3

WEB WSSSWAP

Download

Manual References

WEB WSSSWAP

Download

Manual References

WEB WSSSWAP

Download

Manual References/admin/<modulid>

Statistics Usermanagement

Logs “My Space” “My Jobs”

Otherresources(Apache)

Page 32: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

Amazon Web Service

● AWS : set of online services ● Elastic Compute Cloud (EC2)

– Various instance types from XS to XXXL

– various AMI's ● Simple Storage Service (S3)

– Key-value storage

– Fast & independent from instances

– various interfaces (SOAP, REST, API, Shell, …)

Page 33: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (in the Cloud)bioinformatic server limitation

● Problems – huge (and fast growing) data set

– limited bandwidth

– Limited CPU time, Limited memory per job

● Solution– Move the server to the data instead the data to server

Page 34: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (in the Cloud)InstantBibi

● set up an application server is time consuming– Download needed resources

– Configuration of Server/Database

– Start server and deploy tools, extensions, ...

● 1st developed to full-fill one of BiBiServ2 aims → easy setup of a development system

● Extended for setup a end-user system, including example apps/bins for different platforms

● Run on any Unix based system with installed Java and ant build tool

Page 35: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

BiBiServ (in the Cloud)InstantBibi

● Check java & ant version

● Get instantbibi

● Call ant instant

– Get depended resources

– Set up and configure domain && database

– Start domain

● Call ant install.guugle

– Get precompiled guugle resources

– Install BAR and system depended tool binaries

Page 36: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

What's missing ? (1)Future work to do ...

● improve Layout

● support a more “neutral” layout for non bibiserv usage

● support for cloud fs (e.g. Amazon S3)

● extend/rewrite MyBiBiServ area

● GUI/Module Manager

● Wizard

● enhanced statistics

● “MyJobs”

● “MySpace”

Page 37: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

What's missing ? (1)Future work to do ...

● improve Layout

● support a more “neutral” layout for non bibiserv usage

● support for cloud fs (e.g. Amazon S3)

● extend/rewrite MyBiBiServ area

● GUI/Module Manager

● Wizard

● enhanced statistics

● “MyJobs”

● “MySpace”

Page 38: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

What's missing ? (2)Future work to do ...

● Views

– Sequence Alignments – Raeda

– Repeats – RepVis

– RNA secondary structure – PseudoViewer Korea

– RNA secondary structure – RNAMovies● Runtime estimation

Page 39: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

XSD

Wizard

ToolDescription

Base-

CodeGenTool

Project

IvyLibraryStorage

ToolSpecific

Resources

Ontology,Ontology Mappings

VCS(Mercurial)

Turan – diploma thesis (2009)Tobias – bachelor thesis (2011)

Daniel – master thesis (2008)

Sven – PHD (2012)

Ant-

Netbeans

ToolBAR

ManagerClient

ManagerServer(Core)

BiBiServ2 Web Application

RequestFilter

DB

BiBiTools

AdminModul

ComputeGrid

/<toolid>

FS

S3

WEB WSSSWAP

Download

Manual References

WEB WSSSWAP

Download

Manual References

WEB WSSSWAP

Download

Manual References/admin/<modulid>

StatisticsUser

management

Logs “My Space” “My Jobs”

Otherresources(Apache)

Hao Chen – diploma thesis (2008)Madis – master thesis (2011)

Jan Koelling - bachelor thesis (2010)

Views:Borislava – bachelor thesis(2009)Sammy – bachelor thesis(2009)

Madis – master thesis (2011)

Richard - bachelor thesis (2008)

Christian - bachelor thesis (2012)

Page 40: BiBiServ 2 (in the cloud)jkrueger/documents/... · Modul Compute Grid / FS S3 WEB WS SSWAP Download Manual References WEB WS SSWAP Download Manual References WEB WS

Thanks for your attention!