AU AARHUS UNIVERSITY DEPARTMENT OF ENGINEERING October 7, 2019 - - PowerPoint PPT Presentation

au
SMART_READER_LITE
LIVE PREVIEW

AU AARHUS UNIVERSITY DEPARTMENT OF ENGINEERING October 7, 2019 - - PowerPoint PPT Presentation

Migrating the INTO-CPS Application to the Cloud Mikkel Bayard Rasmussen Casper Thule Peter Gorm Larsen Hugo Daniel Macedo DIGIT Aarhus University Centre for Digitalisation, Big Data and Data Analytics AU AARHUS UNIVERSITY DEPARTMENT OF


slide-1
SLIDE 1

Migrating the INTO-CPS Application to the Cloud

Mikkel Bayard Rasmussen Casper Thule Hugo Daniel Macedo Peter Gorm Larsen

DIGIT Aarhus University Centre for Digitalisation, Big Data and Data Analytics

DEPARTMENT OF ENGINEERING

AARHUS UNIVERSITY

AU

October 7, 2019

slide-2
SLIDE 2

Agenda

Introduction The INTO-CPS Project The INTO-CPS Tool Chain The INTO-CPS Application The INTO-CPS Cloud Application Adding Multi-User Support and Cloud Based Co-simulation Technologies of the Cloud-based INTO-CPS Application Architecture of the Cloud Version of the INTO-CPS Application Conclusion Discussion Future Work: Migrating Missing Desktop Application Features

slide-3
SLIDE 3

Outline

Introduction The INTO-CPS Project The INTO-CPS Tool Chain The INTO-CPS Application The INTO-CPS Cloud Application Adding Multi-User Support and Cloud Based Co-simulation Technologies of the Cloud-based INTO-CPS Application Architecture of the Cloud Version of the INTO-CPS Application Conclusion Discussion Future Work: Migrating Missing Desktop Application Features

slide-4
SLIDE 4

INtegrated TOol chain for model-based design of CPSs

  • EU Cordis webpage
slide-5
SLIDE 5

The INTO-CPS Tool Chain

slide-6
SLIDE 6

The INTO-CPS Application

The INTO-CPS Interface The INTO-CPS Outputs The INTO-CPS Projects DSEs FMUs Model- Checking Multi- Models Resources SysML Test-Data- Generation Traceability userMetric- Scripts .project.json README.md Models

slide-7
SLIDE 7

The INTO-CPS Technologies

Git NodeJS Chromium Development Application frame COE JavaScript TypeScript Angular ElectronJS Third Party INTO-CPS Application Desktop JavaScript HTML CSS DSE .... Gulp

slide-8
SLIDE 8

Drawback: Frustrated Users

Troublesome installs

Practice shows that the integration of the diverse tools in the INTO-CPS tool chain forces the installation of several software packages, and multiple versions of some. . .

Unexpected performances

Moreover, as specifications vary, variations in performance are

  • ften observed.
slide-9
SLIDE 9

Outline

Introduction The INTO-CPS Project The INTO-CPS Tool Chain The INTO-CPS Application The INTO-CPS Cloud Application Adding Multi-User Support and Cloud Based Co-simulation Technologies of the Cloud-based INTO-CPS Application Architecture of the Cloud Version of the INTO-CPS Application Conclusion Discussion Future Work: Migrating Missing Desktop Application Features

slide-10
SLIDE 10

The INTO-CPS Cloud Application

slide-11
SLIDE 11

R.E. Architecture diagram of the INTO-CPS Application codebase

COE Service Init DownloadManager FMUBuilder MM Config MM Component MM view COE Simulation Component COE Config Component COE view DSE Config DSE view Traceability Config Traceability Overview Traceability view Handler Browser Fetch New Rename Bottom Proj Main Menu FMU Preview COE Process System Utils IntoCpsApp Settings Service

slide-12
SLIDE 12

Cloud issues: Adding Multi-User Support and Cloud Based Co-simulation

Actor Login Signup Get available projects Upload project Configure MM Save MM Configure CoSim Save CoSim Simulate Stop View Results Select Project Request New Password Logout

slide-13
SLIDE 13

Technologies of the Cloud-based INTO-CPS Application

Git NodeJS Development Cloud: AWS (IaaS) COE TypeScript Angular Third Party INTO-CPS Application Browser DSE .... Backend Frontend TypeScript Docker Docker Docker- Compose Docker Docker Firebase Docker Docker Docker NGINX NodeJS

slide-14
SLIDE 14

Frontend Micro-service

Frontend Server Context Component Menu Component Management Component Status Component Communication Component List projects List selected project context Project Management import / export / delete (git) Project Modification Compoenent Display Json content Modify Json Start simulation Simulation visualization COE status COE Console COE Log Trace Daemon Log User Authentication User Settings Communication Service Backend REST REST

slide-15
SLIDE 15

Backend Micro-service

SVN Server DSE Handler COE Handler Storage Handler Authentication Handler Project Settings Database Project Management Git Handler Create Project Upload Project Download Project Download File Upload File Clone / Pull Push Get Project Data Update / Create File Frontend REST REST

slide-16
SLIDE 16

COEs Container and Pooling

FROM openjdk :11− o r a c l e COPY coe . j a r coe . j a r COPY coe . sh coe . sh RUN yum i n s t a l l net−t o o l s −y RUN mkdir −p / data ADD . / data RUN chmod +x ./ coe . sh RUN l s CMD [ ” ./ coe . sh ” ] EXPOSE 8082

Dockerfile

#!/ bin / sh # My f i r s t s c r i p t echo ” H e l l o Coe ! ” echo $ ( l s ) myIP=$ ( i f c o n f i g eth0 | grep ’ i n e t ’ | awk ’{ p r i n t $2} ’ ) echo $myIP myPATH=’ / data / ’ cd $myPATH coes=’ coes / ’ mkdir −p $coes$myIP cd $coes$myIP $ ( j a v a −j a r . . / . . / . . / coe . j a r )

coe.sh

slide-17
SLIDE 17

Outline

Introduction The INTO-CPS Project The INTO-CPS Tool Chain The INTO-CPS Application The INTO-CPS Cloud Application Adding Multi-User Support and Cloud Based Co-simulation Technologies of the Cloud-based INTO-CPS Application Architecture of the Cloud Version of the INTO-CPS Application Conclusion Discussion Future Work: Migrating Missing Desktop Application Features

slide-18
SLIDE 18

Discussion

  • Software development was carried out over 80 days including:

the migration of existing components:

  • project management UI
  • co-simulation launching and visualization UI
  • Developed from scratch the many cloud specific components

absent in the desktop version:

  • authentication
  • encrypted web connection
  • shared COEs pool
  • Code available at the INTO-CPS Association github
  • https://github.com/INTO-CPS-Association/into-cps-

application-cloud

slide-19
SLIDE 19

Future Work: Migrating Missing Desktop Application Features

  • Logging
  • Download Manager
  • Single File Upload
  • DSE & Traceability & Test Case Generation
  • Git