Tutorial on the OMG Deployment and Configuration (DnC) Specification Industrializing the Development Distributed Real-time & Embedded Systems Other contributors.

Slides:



Advertisements
Similar presentations
EcoTherm Plus WGB-K 20 E 4,5 – 20 kW.
Advertisements

Symantec 2010 Windows 7 Migration Global Results.
AGVISE Laboratories %Zone or Grid Samples – Northwood laboratory
Trend for Precision Soil Testing % Zone or Grid Samples Tested compared to Total Samples.
Entity Relationship (ER) Modeling
PDAs Accept Context-Free Languages
ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala
Process Description and Control
EuroCondens SGB E.
Slide 1Fig 26-CO, p.795. Slide 2Fig 26-1, p.796 Slide 3Fig 26-2, p.797.
Distributed Systems Architectures
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 4 Computing Platforms.
Sequential Logic Design
Copyright © 2013 Elsevier Inc. All rights reserved.
David Burdett May 11, 2004 Package Binding for WS CDL.
Create an Application Title 1Y - Youth Chapter 5.
Add Governors Discretionary (1G) Grants Chapter 6.
CALENDAR.
CHAPTER 18 The Ankle and Lower Leg
The 5S numbers game..
© Tally Solutions Pvt. Ltd. All Rights Reserved Shoper 9 License Management December 09.
A Fractional Order (Proportional and Derivative) Motion Controller Design for A Class of Second-order Systems Center for Self-Organizing Intelligent.
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Break Time Remaining 10:00.
The basics for simulations
PP Test Review Sections 6-1 to 6-6
Employee & Manager Self Service Overview
1 IMDS Tutorial Integrated Microarray Database System.
2013 Fox Park Adopt-A-Hydrant Fund Raising & Beautification Campaign Now is your chance to take part in an effort to beautify our neighborhood by painting.
Regression with Panel Data
TCCI Barometer March “Establishing a reliable tool for monitoring the financial, business and social activity in the Prefecture of Thessaloniki”
Operating Systems Operating Systems - Winter 2012 Chapter 2 - Processes Vrije Universiteit Amsterdam.
Operating Systems Operating Systems - Winter 2010 Chapter 3 – Input/Output Vrije Universiteit Amsterdam.
Dynamic Access Control the file server, reimagined Presented by Mark on twitter 1 contents copyright 2013 Mark Minasi.
TCCI Barometer March “Establishing a reliable tool for monitoring the financial, business and social activity in the Prefecture of Thessaloniki”
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Copyright © [2002]. Roger L. Costello. All Rights Reserved. 1 XML Schemas Reference Manual Roger L. Costello XML Technologies Course.
Progressive Aerobic Cardiovascular Endurance Run
Biology 2 Plant Kingdom Identification Test Review.
FAFSA on the Web Preview Presentation December 2013.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
Facebook Pages 101: Your Organization’s Foothold on the Social Web A Volunteer Leader Webinar Sponsored by CACO December 1, 2010 Andrew Gossen, Senior.
TCCI Barometer September “Establishing a reliable tool for monitoring the financial, business and social activity in the Prefecture of Thessaloniki”
When you see… Find the zeros You think….
Before Between After.
2011 FRANKLIN COMMUNITY SURVEY YOUTH RISK BEHAVIOR GRADES 9-12 STUDENTS=332.
1 GIS Maps and Tax Roll Submission. 2 Exporting A New Shapefile.
: 3 00.
5 minutes.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques
Static Equilibrium; Elasticity and Fracture
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Clock will move after 1 minute
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.1 Module 9 TCP/IP Protocol Suite and IP Addressing.
Lial/Hungerford/Holcomb/Mullins: Mathematics with Applications 11e Finite Mathematics with Applications 11e Copyright ©2015 Pearson Education, Inc. All.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 13 Pointers and Linked Lists.
Physics for Scientists & Engineers, 3rd Edition
Select a time to count down from the clock above
1.step PMIT start + initial project data input Concept Concept.
9. Two Functions of Two Random Variables
A Data Warehouse Mining Tool Stephen Turner Chris Frala
1 Dr. Scott Schaefer Least Squares Curves, Rational Representations, Splines and Continuity.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Introduction Embedded Universal Tools and Online Features 2.
Krishnakumar Balasubramanian
Applying Domain-Specific Modeling Languages to Develop DRE Systems
Applying Domain-Specific Modeling Languages to Develop DRE Systems
Presentation transcript:

Tutorial on the OMG Deployment and Configuration (DnC) Specification Industrializing the Development Distributed Real-time & Embedded Systems Other contributors include Tao Lu, Gan Deng, Jai Balasubramanian, Kitty Balasubramanian, Bala Natarajan, William R. Otte, Jeff Parsons, Frank Pilhofer, Craig Rodrigues,Nanbor Wang, & Johnny Willemsen Other contributors include Tao Lu, Gan Deng, Jai Balasubramanian, Kitty Balasubramanian, Bala Natarajan, William R. Otte, Jeff Parsons, Frank Pilhofer, Craig Rodrigues, Nanbor Wang, & Johnny Willemsen Dr. Douglas C. Schmidt Professor of EECS Vanderbilt University Nashville, Tennessee

New OMG Deployment & Configuration Specification

Tutorial on DnC Douglas C. Schmidt 3 CCM Deployment & Configuration (D&C) Spec “D&C” spec was adopted by OMG in 2003 “Deployment & Configuration of Component-based Distributed Applications” Intended to replace Packaging & Deployment chapter of CCM (CORBA 3.0) specification Supports … Hierarchical assemblies Resource management QoS characteristics Automated deployment Vendor-independent deployment infrastructure

Tutorial on DnC Douglas C. Schmidt 4 D&C & Model-Driven Architecture D&C is specified using a platform- independent model –Defines “deployment” model –Independent of CORBA & CCM (specified in UML) Can be refined into CCM-specific model (T1) Uses standard mappings to generate –IDL (for “on-line” data) using UML Profile for CORBA (M1) –XML Schema (for “off-line” data) using XMI (M2) Intermediate transformation T2 –Transforms PSM for CCM into suitable input for M1 & M2

Tutorial on DnC Douglas C. Schmidt 5 Deployment & Configuration “Segments” PIMData ModelRun-time Model Component Software Metadata to describe component-based applications & their requirements Repository Manager interfaces to browse, store, & retrieve such metadata TargetMetadata to describe heterogeneous distributed systems & their capabilities Target Manager interfaces to collect & retrieve such metadata & commit resources ExecutionMetadata to describe a specific deployment plan for an application into a distributed system Execution Manager interfaces to prepare environment, execute deployment plan on target, manage lifecycle Data model –Metadata, usually in XML format Run-time model –Deployment interfaces (similar to CORBA services)

Tutorial on DnC Douglas C. Schmidt 6 D&C Actors Different stages & different actors –Development Specifier/ Developer Assembler Packager –Target Domain Administrator –Deployment Repository Administrator Planner Executor Actors are abstract –Usually humans & software tools Development Target Deployment Bridge Firewall Creates Executor Deployment Plan Uses Deploys These actors & stages are simply making explicit existing processes

Tutorial on DnC Douglas C. Schmidt 7 Specification & Implementation –Defining, partitioning, & implementation application functionality as standalone components Packaging –Bundling a suite of software binary modules & metadata representing application components Installation –Populating a repository with the packages required by the application Configuration –Configuring the packages with the appropriate parameters to satisfy the functional & systemic requirements of an application without constraining to any physical resources Planning –Making appropriate deployment decisions including identifying the entities, such as CPUs, of the target environment where the packages will be deployed Preparation –Moving the binaries to the identified entities of the target environment Launching –Triggering the installed binaries & bringing the application to a ready state QoS Assurance & Adaptation –Runtime reconfiguration & resource management to maintain end-to-end QoS OMG Deployment & Configuration (D&C) specification (ptc/ ) CCM Development & Deployment Phases

Tutorial on DnC Douglas C. Schmidt 8 Metadata Produced/Used by D&C Tools (1/2) Component Packaging & Assembly System Deployment Component DLLs Component & Home Properties Component Interface Descriptors (.ccd) Packaging Tools Component Packages (*.cpk) Component & Home Properties Component Package Descriptors (.cpd) Implementation Artifact Descriptors (.iad) Plan Descriptor (.cdp) Domain Descriptor (.cdd) Assembly Tools Component Implementation Descriptor (*.cid) Component Interface Descriptor (.ccd) –Describes the interface, ports, & properties of one component Implementation Artifact Descriptor (.iad) –Describes the implementation artifacts (e.g., DLLs, OS, etc.) of one component Component Package Descriptor (.cpd) –Describes multiple alternative implementations of one component Package Configuration Descriptor (.pcd) –Describes a configuration of a component package Top-level Package Descriptor (package.tpd) –Describes the top-level component package in a package (.cpk) Component Implementation Descriptor (.cid) –Describes a specific implementation of a component interface –Implementation can be either monolithic- or assembly-based –Contains subcomponent instantiations in case of assembly based implementations –Contains interconnection information between components Component Packages (.cpk) –A component package can contain a single component –A component package can also contain an assembly These files can be coalesced into a smaller # of files (i.e., 1) in practice

Tutorial on DnC Douglas C. Schmidt 9 Metadata Produced/Used by D&C Tools (2/2) Component Domain Descriptor (.cdd) –Describes the target domain resources (e.g., nodes, interconnects, bridges, & shared resources) Deployment Plan Descriptor (.cdp) –Describes the mapping of a configured application into a domain, this includes mapping monolithic implementations to nodes, & requirements to resources Component Interface Descriptors (.ccd) Deployment Plan Descriptor (.cdp) Component Package Descriptors (.cpd) Deployment Planning Tools Component Domain Descriptor (.cdd) Component& Home Properties realizes These files can also be coalesced into a smaller # of files (i.e., 1) in practice

Tutorial on DnC Douglas C. Schmidt 10 Component-based Software: Component Component –Modular –Encapsulates its contents –Replaceable “black box”, conformance defined by interface compatibility Component Interface –“Ports” consist of provided interfaces (facets) & required (used) interfaces (receptacles) –Attributes Component Implementation –“Monolithic” (i.e., executable software) or –“Assembly-based” (a set of interconnected subcomponents)

Tutorial on DnC Douglas C. Schmidt 11 Monolithic Component Implementation Executable piece of software –One or more “implementation artifacts” (e.g.,.exe,.so,.o,.class) –Zero or more supporting artifacts (e.g., configuration files) May have hardware or software requirements/constraints –Specific CPU (e.g., x86, PPC, SPARC) –Specific OS (e.g., Windows, VxWorks, Linux, Solaris) –Hardware devices (e.g., GPS sensor) Described by *.ccd, *.iad, & *.cid files

Tutorial on DnC Douglas C. Schmidt 12 Assembly-based Component Implementation Set of interconnected (sub)components Hardware & software independent –Reuses subcomponents as “black boxes,” independent of their implementation Implements a specific (virtual) component interface –i.e., external ports & attributes are “mapped” to internal subcomponents Assemblies are fully reusable –Can be “standalone” applications or reusable components Assemblies are hierarchical i.e., can be used in an encompassing assembly Note recursion here… Described by *.ccd & *.cid files

Tutorial on DnC Douglas C. Schmidt 13 Component Package A set of alternative, replaceable implementations of same component interface –e.g., implementations for Windows, Linux, and/or JVM Can be a mix of monolithic & assembly-based implementations –e.g., a parallel, scalable implementation for a Solaris symmetric multiprocessor or a single monolithic Java component Implementations may have different “quality of service” (QoS) –e.g., latency, resolution, security “Best” implementation is chosen at deployment time by Planner –Based on available hardware & QoS requirements Assembler Creates Component Resource Requirements Impl Properties Specifier/Developer Creates Component Assembly Component CreatesPackager Component Packages

Tutorial on DnC Douglas C. Schmidt 14 CCM Development Actors

Tutorial on DnC Douglas C. Schmidt 15 Component Packaging Goal: Associate component implementation(s) with metadata

Tutorial on DnC Douglas C. Schmidt 16 Component Packaging Tools Goals –Extract systemic properties into metadata –Configure components, containers, target environment, & applications –Provide abstraction of physical information, e.g., OS version, location of DLLs, etc. CCM component packages bring together –Multiple component implementations –Component properties –Descriptors (XML Files) Descriptors provide metadata that describe contents of a package, dependencies on other components, 3 rd party DLLs, & value factories

Tutorial on DnC Douglas C. Schmidt 17 Application Assembly Goal: Group packages & metadata by specifying their interconnections

Tutorial on DnC Douglas C. Schmidt 18 Application Assembly Tools Goals –Compose higher level components from set of (sub)components –Store composition & connection information as metadata –Provide abstraction of logical information, e.g., interconnections Component assembly description specifies: –Subcomponent packages –Subcomponent instantiation & configuration –Interconnections –Mapping of ports & properties to subcomponents “Pure metadata” construct (no directly executable code, hardware-agnostic)

Tutorial on DnC Douglas C. Schmidt 19 Component Data Model Overview We’ll show XML snippets for each of these component data model elements

Tutorial on DnC Douglas C. Schmidt 20 Example CCM DRE Application The Display component is an assembly of three (sub)components RateGen, GPS, & NavDisplay implemented monolithically (for this example) GPS component requires a particular type of GPS device Two alternative implementations for NavDisplay –Text-based & GUI versions Rate Control Display component

Tutorial on DnC Douglas C. Schmidt 21 Component Interface Description

Tutorial on DnC Douglas C. Schmidt 22 Component Interface Description Metadata used by Specifiers to describe component interface (*.ccd file) –Identifies a component’s specific (most-derived) type & supported (inherited) types –Describes a component’s ports & properties (attributes) –Optionally configures default property values

Tutorial on DnC Douglas C. Schmidt 23 Component Interface Descriptor for the RateGen Component: RateGen.ccd (1/3) <Deployment:ComponentInterfaceDescription xmlns:Deployment=' xmlns:xmi=' > Rate Generator IDL:HUDisplay/RateGen:1.0 RateGen.idl supports IDL:HUDisplay/rate_control:1.0 true false true Facet [...] Rate Pulse RateGen

Tutorial on DnC Douglas C. Schmidt 24 Component Interface Descriptor for the RateGen Component: RateGen.ccd (2/3) [...] Pulse IDL:HUDisplay/tick:1.0 false true EventPublisher Rate tk_long [...] Rate Pulse RateGen

Tutorial on DnC Douglas C. Schmidt 25 Component Interface Descriptor for the RateGen Component: RateGen.ccd (3/3) [...] Rate tk_long 1 Rate Pulse RateGen Note the default value for the Rate property –Can be overridden by implementation, package, assembly, user, or at deployment time

Tutorial on DnC Douglas C. Schmidt 26 Component Interface Descriptor for the GPS Component: GPS.ccd (1/2) <Deployment:ComponentInterfaceDescription xmlns:Deployment=' xmlns:xmi=' > Global Positioning Sensor IDL:HUDisplay/GPS:1.0 GPS.idl MyLocation IDL:HUDisplay/position:1.0 true false true Facet [...] MyLocation Ready GPS Refresh

Tutorial on DnC Douglas C. Schmidt 27 Component Interface Descriptor for the GPS Component: GPS.ccd (2/2) [...] Ready IDL:HUDisplay/tick:1.0 false true EventPublisher Refresh IDL:HUDisplay/tick:1.0 true false EventConsumer MyLocation Ready GPS Refresh

Tutorial on DnC Douglas C. Schmidt 28 Component Interface Descriptor for the NavDisplay Component: NavDisplay.ccd (1/2) <Deployment:ComponentInterfaceDescription xmlns:Deployment=' xmlns:xmi=' > Navigation Display Device IDL:HUDisplay/NavDisplay:1.0 NavDisplay.idl Refresh IDL:HUDisplay/tick:1.0 true false EventConsumer [...] GPSLocation NavDisplay Refresh

Tutorial on DnC Douglas C. Schmidt 29 Component Interface Descriptor for the NavDisplay Component: NavDisplay.ccd (2/2) [...] GPSLocation IDL:HUDisplay/position:1.0 false true false SimplexReceptacle GPSLocation NavDisplay Refresh

Tutorial on DnC Douglas C. Schmidt 30 Component Implementation Description for a Monolithic Implementation

Tutorial on DnC Douglas C. Schmidt 31 Component Implementation Description for a Monolithic Implementation Metadata used by Developers to describe a monolithic component implementation (*.cid file) –Contains deployment requirements & QoS capabilities –References artifacts by URL, which may have dependencies Start Here

Tutorial on DnC Douglas C. Schmidt 32 Component Implementation Descriptor for the RateGen Component: RateGen.cid (1/2) <Deployment:ComponentImplementationDescription xmlns:Deployment=' xmlns:xmi=' RateGen Executor RateGen_exec.dll CIAO Library CIAO.dll [...] Rate Pulse RateGen RateGen_exec.dll

Tutorial on DnC Douglas C. Schmidt 33 Component Implementation Descriptor for the RateGen Component: RateGen.cid (2/2) [...] os Operating System version tk_string Windows 2000 Rate Pulse RateGen RateGen_exec.dll

Tutorial on DnC Douglas C. Schmidt 34 [...] GPS GPS Device vendor tk_string My Favorite GPS Vendor [... Requires Windows OS...] MyLocation Ready GPS Refresh Component Implementation Descriptor for the GPS Component: GPS.cid (excerpt) GPS_exec.dll

Tutorial on DnC Douglas C. Schmidt 35 Two Component Implementation Descriptors for the NavDisplay Component Two alternative implementations (i.e., text vs. GUI) & thus two Component Implementation Descriptor (*.cid) files: –NavDisplay.cid Text-based implementation –NavDisplayGUI.cid GUI implementation on graphical display XML code not shown here (but available in CIAO release in CIAO_ROOT/examples/Display) GPS_exec.dll NavDisplay_exec.dll GPSLocation NavDisplay Refresh GPS_exec.dll NavDisplayGUI_exec.dll

Tutorial on DnC Douglas C. Schmidt 36 Component Package Description

Tutorial on DnC Douglas C. Schmidt 37 Component Package Description Metadata used by Packagers to describe a set of alternative implementations of the same component (*.cpd files) –May redefine (overload) properties

Tutorial on DnC Douglas C. Schmidt 38 Component Package Descriptor for the NavDisplay Component: NavDisplay.cpd GPS_exec.dll NavDisplay_exec.dll GPSLocation NavDisplay Refresh GPS_exec.dll NavDisplayGUI_exec.dll <Deployment:ComponentPackageDescription xmlns:Deployment=' xmlns:xmi=' > Navigation Display Device Text-based Display Graphical Display

Tutorial on DnC Douglas C. Schmidt 39 Display Component Assembly Rate Control Display component Recall that the Display component is an assembly of (sub)components We’ve shown the various D&C XML files for Display ’s three (sub)components We now show the assembly for the Display component itself, which is essentially a façade Again, note the recursion, where assembly-based components can be composed of monolithic and/or assembly-based (sub)components…

Tutorial on DnC Douglas C. Schmidt 40 Component Interface Descriptor for the Display Component: Display.ccd (1/1) <Deployment:ComponentInterfaceDescription xmlns:Deployment=' Navigation System IDL:HUDisplay/Display:1.0 control IDL:HUDisplay/rate_control:1.0 true false true Facet Rate tk_long Control Display Rate

Tutorial on DnC Douglas C. Schmidt 41 Component Assembly Description

Tutorial on DnC Douglas C. Schmidt 42 Component Assembly Description Metadata used by Assemblers to describe an assembly-based implementation (*.cid files) –Define subcomponent instances –Connections between subcomponent ports –Connecting assembly (external) ports to subcomponent (internal) ports –Mapping assembly properties to subcomponent properties

Tutorial on DnC Douglas C. Schmidt 43 Component Implementation Descriptor for the Display Component: Display.cid (1/4) <Deployment:ComponentImplementationDescription xmlns:Deployment=' xmlns:xmi=' > RateGen Subcomponent GPS Subcomponent NavDisplay Subcomponent [...] Rate Control Display component Define subcomponent instances

Tutorial on DnC Douglas C. Schmidt 44 Component Implementation Descriptor for the Display Component: Display.cid (2/4) [...] GPS Trigger Pulse Refresh NavDisplay Trigger Ready Refresh [...] Rate Control Display component Connections between subcomponent ports

Tutorial on DnC Douglas C. Schmidt 45 Component Implementation Descriptor for the Display Component: Display.cid (3/4) [...] control port Control supports Location MyLocation GPSLocation [...] Rate Control Display component Connecting assembly (external) ports to subcomponent (internal) ports The external/internal mappings are virtual, i.e., there’s no extra indirection overhead

Tutorial on DnC Douglas C. Schmidt 46 Component Implementation Descriptor for the Display Component: Display.cid (4/4) [...] Rate Mapping Rate Rate Rate Control Display component Mapping an assembly’s (external) properties to subcomponent (internal) properties

Tutorial on DnC Douglas C. Schmidt 47 Package Configuration

Tutorial on DnC Douglas C. Schmidt 48 Package Configuration Metadata used by Packagers to describe a reusable component package (*.pcd files) –Sets initial configuration –Sets QoS requirements matched against implementation capabilities & resource availabilities –May refine (specialize) existing package

Tutorial on DnC Douglas C. Schmidt 49 Package Configuration for the Display Application: Display.pcd (1/1) <Deployment:PackageConfiguration xmlns:Deployment=' xmlns:xmi=' > Display Application Rate tk_long 10 Rate Control Display component

Tutorial on DnC Douglas C. Schmidt 50 Deployment Planning Goal: Map application assembly onto target environment via deployment plan

Tutorial on DnC Douglas C. Schmidt 51 Deployment Planning Tools Goals –Concretize deployment metadata –Using Deployment Domain to describe deployment environment Component Deployment Plan description: –Flatten the assembly hierarchy -- an assembly of monolithic components –Deployment details – locations to deploy components –Interconnections –Mapping of ports & properties to subcomponents

Tutorial on DnC Douglas C. Schmidt 52 Metadata used by Domain Administrators to describe a “target domain” (*.cdd files) –Nodes: targets for executing monolithic component implementations –Interconnects: direct connections (e.g., Ethernet cable, Myrinet) –Bridges: indirect connections (e.g., routers, switches) Target Data Model

Tutorial on DnC Douglas C. Schmidt 53 Target Data Model: Resources Metadata used by Domain Administrators to describe a consumable resource (*.cdd files) –Satisfies a requirement (from monolithic implementation) –SatisfierPropertyKind : Operators & predicates to indicate if/how a resource property is "used up"

Tutorial on DnC Douglas C. Schmidt 54 Matching Requirements against Resources Predicate Generic grammar for defining resources & requirements Well-defined, generic matching & accounting algorithm –Depending on predicate, resource capacity can be "used up"

Tutorial on DnC Douglas C. Schmidt 55 Example Domain My Network AliceBob MyCable

Tutorial on DnC Douglas C. Schmidt 56 Domain Descriptor: MyNetwork.cdd (1/3) <Deployment:Domain xmlns:Deployment=' xmlns:xmi=' My Network Alice os Operating System Attribute version tk_string Windows 2000 [...] Alice

Tutorial on DnC Douglas C. Schmidt 57 Domain Descriptor: MyNetwork.cdd (2/3) [...] GPS GPS Device vendor Attribute tk_string My Favorite GPS Vendor [...] Alice

Tutorial on DnC Douglas C. Schmidt 58 Domain Descriptor: MyNetwork.cdd (3/3) [...] Bob [... "Windows 2000" OS resource...] [... "Graphical Display" resource...] Bob MyCable

Tutorial on DnC Douglas C. Schmidt 59 Deployment Goal: Deploy/execute application/components according to deployment plan

Tutorial on DnC Douglas C. Schmidt 60 Deployment Infrastructure Overview Goals –Realize a deployment plan on its target deployment platform Deployment phase includes: –Performing work in the target environment to be ready to execute the software (such as downloading software binaries) –Install component instances into the target environment –Interconnecting & configuring component instances

Tutorial on DnC Douglas C. Schmidt 61 Repository Manager –Database of components that are available for deployment (“staging area”) Target Manager –Retrieval of target data (i.e., available nodes & resources) Execution Manager –Execution of an application according to a “Deployment Plan” Domain Application Manager –Responsible for deploying an application at the domain level Domain Application –Represents a “global” application that was deployed across nodes Node Manager –Responsible for managing a portion of an application that’s limited to its node Node Application Manager –Responsible for deploying a locality constrained application onto a node Node Application –Represents a portion of an application that’s executing within a single node Deployment Infrastructure Overview (1/2) “Component Software” Runtime Model “Target” Runtime Model “Execution” Runtime Model

Tutorial on DnC Douglas C. Schmidt 62 The DAnCE Deployment Runtime

Tutorial on DnC Douglas C. Schmidt 63 Deployment Infrastructure Overview (2/2) Infrastructure (Services)

Tutorial on DnC Douglas C. Schmidt 64 Deployment Plan (1/2) Self-contained IDL data structure (struct type) for executing an application within a specific domain, based on a specific set of resources –Records all decisions made during planning, e.g., implementation selection, component instance-to-node assignment, resource allocation, etc. –“Flat” assembly of instances of components with monolithic implementations (all assemblies are resolved)

Tutorial on DnC Douglas C. Schmidt 65 Deployment Plan (2/2) A deployment plan does not contain implementation artifacts –Contains URLs to artifacts, as served up by the Repository Manager HTTP mandatory, other protocols optional –Node Managers use URLs to download artifacts (& may cache them) struct DeploymentPlan { string label; string UUID; ComponentInterfaceDescription realizes; MonolithicDeploymentDescriptions implementation; InstanceDeploymentDescriptions instance; PlanConnectionDescriptions connection; PlanPropertyMappings externalProperty; ImplementationDependencies dependsOn; ArtifactDeploymentDescriptions artifact; Properties infoProperty; };

Tutorial on DnC Douglas C. Schmidt 66 Deployment Infrastructure: Repository Manager Database of components –Metadata (from Component Data Model) –Artifacts (i.e., executable monolithic implementations) Applications can be configured –e.g., to apply custom policies, e.g., "background color" = "blue" Applications are installed from packages –ZIP files containing metadata in XML format & implementation artifacts CORBA interface for installation of packages, retrieval, & introspection of metadata HTTP interface for downloading artifacts –Used by Node Managers during execution

Tutorial on DnC Douglas C. Schmidt 67 Deployment Infrastructure: Target Manager Singleton service, i.e., one TargetManager per domain Retrieval of available or total resource capacities Allocation & release of resources (during application deployment) No “live” monitoring of resources implied (optional) –Assumption: all resources are properly allocated & released through this interface Allows “off-line” scenarios where the possibility & the effect of deploying applications is analyzed –e.g., “Given this configuration, is it possible to run this set of application components simultaneously? How?”

Tutorial on DnC Douglas C. Schmidt 68 Deployment Infrastructure: Execution Manager Singleton service, i.e., one ExecutionManager per domain A “daemon-like” process always running in each domain User-visible front-end for executing a global (domain-level) deployment plan –Deployment plan results from planning for the deployment of an application, based on a specific set of nodes & resources Has information on all NodeManagers in the domain Instructs NodeManagers to execute respective per-node pieces of an application

Tutorial on DnC Douglas C. Schmidt 69 Deployment Infrastructure: Plan Launcher (1/2) DAnCE_Plan_Launcher_Impl (Shared Library) Plan_Launcher_Base (Abstract Base Class) Plan_Launcher_Base_Impl (Template-Based generic implementation) EM_LauncherNM_Launcher Command Line Processing Logic Dispatch Logic dance_plan_launcher (executable) The Plan Launcher is comprised of two separate artifacts: –dance_plan_launcher, which is an executable containing only command line processing and dispatching logic –DAnCE_Plan_Launcher_Impl, which is a shared library containing the actual implementation used by the dispatching logic in the executable Instantiate Interact

Tutorial on DnC Douglas C. Schmidt 70 Deployment Infrastructure: Plan Launcher The shared library is intended to be leveraged by end-users in order to write their own executor (plan launcher) replacements –Plan_Launcher_Base defines major plan lifecycle commands common to ExecutionManager/NodeManager directed deployments –Plan_Launcher_Base_Impl provides generic template-based implementations –EM_Launcher/NM_Launcher are concrete template instantiations with additional logic unique to each deployment type. DAnCE_Plan_Launcher_Impl (Shared Library) Plan_Launcher_Base (Abstract Base Class) Plan_Launcher_Base_Impl (Template-Based generic implementation) EM_LauncherNM_Launcher Command Line Processing Logic Dispatch Logic dance_plan_launcher (executable) Instantiate Interact

Tutorial on DnC Douglas C. Schmidt 71 Deployment Infrastructure: Node Manager Mirrors the ExecutionManager, but is limited to one node only A “daemon-like” process that is always running on each individual node Responsible for deploying local (node-level) deployment plan

Tutorial on DnC Douglas C. Schmidt 72 Deployment Infrastructure: Locality Manager (1/2) D&C Specification can be viewed as a mechanism for establishing various Localities in different contexts A Locality is a grouping of installed instances in a particular context –Components & Homes installed in a component server –Component servers installed on a Node –Nodes installed in the context of a D&C Domain Individual Localities can have specific knowledge of how to install particular instance types –CIAO Components –CARDAMOM Components –EJB –Opaque processes 72 We would like to expand the horizons of D&C beyond a single component model, to be a generic deployment tool.

Tutorial on DnC Douglas C. Schmidt 73 Deployment Infrastructure: Locality Manager (2/2) Process of installing an instance can be generalized 1.Instantiate a run time environment (CIAO Container) 2.Interact with the run time environment to install instances (CIAO Components & Homes) 3.Interact with installed instances to create connections 4.Eventually, interact with the run time environment to remove an instance 73 These instance-specific steps can be provisioned with plug-ins to create a generic application server. These instance-specific steps can be provisioned with plug-ins to create a generic application server.

Tutorial on DnC Douglas C. Schmidt 74 Execution/Node Managers Interaction ExecutionManager computes per-node Deployment Plan –“Virtual” assemblies of components on the same node –Described using the same data structure All parts are sent to their respective NodeManager –Processing can be concurrent ExecutionManager then sends “provided” references to their users Transparent to “Executor” user RateGenGPS NavDisplay AliceBob Rate Control Display component

Tutorial on DnC Douglas C. Schmidt 75 Domain* provides functionality at the domain level Node* provides similar functionality, but restricted to a Node ApplicationManager startLaunch() & destroyApplication() operations Application finishLaunch() & start() operations Launch Application: Domain vs. Node

Tutorial on DnC Douglas C. Schmidt 76 Deployment Actors Actors  usually, humans aided by software tools

Tutorial on DnC Douglas C. Schmidt 77 Deployment Actors: Repository Administrator Receives component package from software vendor Installs package into repository, using Repository Manager Assigns “installation name” Optionally applies custom configuration properties i.e., sets default values for an application’s external attributes (can be overridden during deployment) Optionally sets “selection requirements” Will be matched against implementation capabilities (during planning) Maintains repository contents Browsing repository, updating packages, deleting packages … COMPONENT REPOSITORY QoS Specs Configurations Dependencies Repository Administrator Component Packages Installs

Tutorial on DnC Douglas C. Schmidt 78 Deployment Actors: Planner Accesses application metadata from Repository Manager –Resolving referenced packages Accesses resource metadata from Domain through Target Manager –Live “on-line” data or simulated “off- line” data Matches requirements against resources Makes planning decisions –Selects appropriate component implementations –Places monolithic component instances onto nodes, assembly connections onto interconnects & bridges Produces Deployment Plan –“Off-line” plans can be stored for later reuse Finds Package Planner COMPONENT REPOSITORY QoS Specs Configurations Dependencies Resources Domain Desktop Printer Laptop computer Ethernet Bridge Firewall Creates Deployment Plan Accesses

Tutorial on DnC Douglas C. Schmidt 79 Deployment Actors: Executor Passes Deployment Plan to Execution Manager Separate “Preparation” & “Launch” phases –Preparation readies software for execution Usually involves loading implementation artifacts to nodes via Node Manager May (implementation-specific) also involve pre-loading artifacts into memory, e.g., for faster launch –Launch starts application Instantiating & configuring components Interconnecting components Starting components Executor Gets Deployment Plan Deploys Resources Domain Desktop Printer Laptop computer Ethernet Bridge Firewall

Tutorial on DnC Douglas C. Schmidt 80 Recall that the Display component is an assembly component When we deploy it, only the “monolithic” components will be actually deployed “Deployer actor” can specify which “monolithic” component(s) maps to which nodes, as specified by the ComponentDeploymentPlan (.cdp) descriptor We deploy three components to two nodes Deployment Example <Deployment:DeploymentPlan … Display Deployment Plan RateGen_Instance Alice GPS_Instance Alice NavDisplay_Instance Bob Display component Rate Control Mapping components to nodes

Tutorial on DnC Douglas C. Schmidt 81 Deployment Example: Prepare Plan Before calling preparePlan(), ExecutionManager should be running & two NodeManagers should be running on Alice & Bob nodes The Planner creates the global deployment plan & the Executor passes it to preparePlan() on the ExecutionManager, which instantiates a DomainApplicationManager. The DomainApplicationManager splits the plan into multiple locality-constrained plans. The Domain ApplicationManager contacts the two NodeManagers residing in Alice & Bob nodes and invokes preparePlan. The NodeManager creates appropriate NodeApplicationManagers & returns object references to the DomainApplicationManager.

Tutorial on DnC Douglas C. Schmidt 82 Deployment Example: Start Launch (1/2) Executor invokes startLaunch on a DomanApplicationManager. The DomainApplicationManager instantiates a DomainApplication object The DomainApplication object invokes startLaunch on the appropriate NodeApplicationManager on each node in the deployment. Each NodeApplicationManager instantiates a NodeApplication object. Each NodeApplication will evaluate the plan & spawn appropriate Locality Manager processes, and pass process-constrained plans to each. install home and component instances, & collate port object references to be returned to the DomainApplication.

Tutorial on DnC Douglas C. Schmidt 83 Deployment Example: Start Launch (2/2) NodeApplication spawns a LocalityManager process, which initializes and configures itself. NodeApplication invokes preparePlan, providing the LocalityManager with a process-constrained plan NodeApplication invokes startLaunch on the LocalityManager, which installs and configures containers, homes, and component instances, & collates port object references to be returned to the DomainApplication.

Tutorial on DnC Douglas C. Schmidt 84 Deployment Example: Finish Launch & Start (1/2) Executor invokes finishLaunch on the DomainApplication. The DomainApplication collates connection references and provides them as a parameter to finishLaunch on the NodeApplication references. The NodeApplication connects locally installed components using information found in it’s cached copy of the plan and object references provided by the DomainApplicatoin Optional “start” parameter could be given to indicate whether actually “start” the application (i.e., ccm_activate(), etc)

Tutorial on DnC Douglas C. Schmidt 85 Deployment Example: Finish Launch & Start (2/2) NodeApplication invokes finishLaunch on each managed LocalityManager Each LocalityManager establishes connections for all hosted components and homes Hosted instances are considered configured (i.e., each has received configuration_complete) at the end of finishLaunch Component instances are activated either at the end of finishLaunch or during start, depending on the boolean parameter. configuration_complete can be synchronized for the whole application by calling finishLanch and start separately.

Tutorial on DnC Douglas C. Schmidt 86 Deployment Example: Application Teardown Executor initiates tear-down by first terminating running applications under its control –DomainApplicationManager ensures tear down of NodeApplications running on both Alice & Bob nodes It then tears down both managers in Alice & Bob nodes

Tutorial on DnC Douglas C. Schmidt 87 1.Define your interfaces using IDL 2.x features, e.g., use the familiar CORBA types (such as struct, sequence, long, Object, interface, raises, etc.) to define your interfaces & exceptions 2.Define your component types using IDL 3.x features, e.g., use the new CCM keywords (such as component, provides, uses, publishes, emits, & consumes) to group the IDL 2.x types together to form components 3.Use IDL 3.x features to manage the creation of the component types, e.g., use the new CCM keyword home to define factories that create & destroy component instances 4.Implement your components, e.g., using C++ or Java & the Component Implementation Definition Language (CIDL), which generates component servants, executor interfaces, associated metadata, & compositions 5.Assemble your components, e.g., group related components together & characterize their metadata that describes the components present in the assembly 6.Deploy your components & run your application, e.g., move the component assembly packages to the appropriate nodes in the distributed system & invoke operations on components to perform the application logic Steps for Developing CCM Applications

Tutorial on DnC Douglas C. Schmidt 88 Deployment & Configuration Process NodeApplication Manager Container «instantiates» Home «instantiates» NodeApplication «instantiates» Canonical steps in the application deployment & configuration process (performed by CCM Deployment & Configuration engine based on a deployment plan): 1.NodeApplicationManager creates the NodeApplication environment which manages creation of LocalityManager instances. 2.Spawn Locality Manager processes to host container/component/home instances. 3.Create containers, homes, and component instances 4.Establish connections between components Component «instantiates» LocalityManager «spawns»

Tutorial on DnC Douglas C. Schmidt 89 Deployment & Configuration Process – Step 1 NodeApplication Manager Container «instantiates» Home «instantiates» NodeApplication «instantiates» Canonical steps in the application deployment & configuration process (performed by CCM Deployment & Configuration engine based on a deployment plan): 1.NodeApplicationManager creates the NodeApplication environment which manages installation of Locality Manager instances. 2.Spawn LocalityManager processes to host component/home instances. 3.Create container, home, and component instances 4.Establish connections between components Component «instantiates» LocalityManager «spawns»

Tutorial on DnC Douglas C. Schmidt 90 Creating a NodeApplication DomainApplication NodeApplicationManager startLaunch () NodeApplication prepare_instances() start_launch_instances() Instantiates a NodeApplication Analyzes the plan to determine: 1.Number of locality managers 2.Configuration of locality managers 3.Determines grouping of component/home instances with localities DomainApplicationManager startLaunch ()

Tutorial on DnC Douglas C. Schmidt 91 Deployment & Configuration Process – Step 2 NodeApplication Manager Container «instantiates» Home «instantiates» NodeApplication «instantiates» Canonical steps in the application deployment & configuration process (performed by CCM Deployment & Configuration engine based on a deployment plan): 1.NodeApplicationManager creates the NodeApplication environment which manages installation of LocalityManagers. 2.Spawn Locality Manager processes to host component/home instances. 3.Create container, home, and component instances 4.Establish connections between components Component «instantiates» LocalityManager «spawns»

Tutorial on DnC Douglas C. Schmidt 92 Spawning a LocalityManager NodeApplication spawns a separate process for the LocalityManager LocalityManager calls back to NodeApplication to retrieve configuration LocalityManager invokes installed configuration plugiins Once all configuration plugiins have completed, the LocalityManager calls back to the NodeApplication to signal completion of configuration.

Tutorial on DnC Douglas C. Schmidt 93 Deployment & Configuration Process – Step 3 NodeApplication Manager Container «instantiates» Home «instantiates» NodeApplication «instantiates» Canonical steps in the application deployment & configuration process (performed by CCM Deployment & Configuration engine based on a deployment plan): 1.NodeApplicationManager creates the NodeApplication environment which manages installation of LocalityManagers. 2.Spawn Locality Manager processes to host component/home instances. 3.Create container, home, and component instances 4.Establish connections between components Component «instantiates» LocalityManager «spawns»

Tutorial on DnC Douglas C. Schmidt 94 Deploying Instances All instance types are installed using specific installation handlers Instances are deployed in the following order: –Containers –Homes –Homed Components –Unhomed Components

Tutorial on DnC Douglas C. Schmidt 95 Deployment & Configuration Process – Step 5 NodeApplication Manager Container «instantiates» Home «instantiates» NodeApplication «instantiates» Canonical steps in the application deployment & configuration process (performed by CCM Deployment & Configuration engine based on a deployment plan): 1.NodeApplicationManager creates the NodeApplication environment which manages installation of LocalityManager instances. 2.Spawn LocalityManager processes to host contianer/component/home instances. 3.Create container, home, and component instances 4.Establish connections between components Component «instantiates» LocalityManager «spawns»

Tutorial on DnC Douglas C. Schmidt 96 Establishing Connections DomainApplicationManager startLaunch () NodeApplicationManager startLaunch () NodeApplication startLaunch() finishLaunch () DomainApplication finishLaunch () After component instances are installed, the NodeApplication gathers connection references and passes them back to the DomainApplication. The DomainApplication stores these references, finishes intialization, and startLaunch is completed. The Executor may then invoke finishLaunch, which distributes object references to the NodeApplications, which uses them in conjuction with connection operations on components to accomplish connections. LocalityManager finishLaunch ()

Tutorial on DnC Douglas C. Schmidt 97 Planning Revisited Planning requires “intelligence” Large search space for valid deployments Considering all possibilities not practical; heuristics necessary May implement “metric” to compare deployments Prefer one component per node? As many components per node as possible? Wide range of implementation options Completely manual? Fully automatic? Planner is a separate piece, “outside” of the specification Only described as a “non-normative” actor Uses well-defined interfaces, “Deployment Plan” metadata

Tutorial on DnC Douglas C. Schmidt 98 Dynamic Planning Rationale Common D&C criticism: “Deployment Plan is too static” –Based on a snapshot of available resources –“Not well adapted to dynamic domain, when resource allocation changes, requiring to plan again from scratch” However, Deployment Plan is a necessity –Its information must be fully known at some point Future Idea: –Build more dynamic “planning” infrastructure on top of D&C’s building blocks – by extension, not replacement e.g., “proto-plan” considering homogeneous nodes as equivalence classes (deferring concrete assignments) Refinement into Deployment Plan as late as possible

Tutorial on DnC Douglas C. Schmidt 99 Deployment Plan Rationale Common D&C criticism: “Who needs a Deployment Plan anyway?” –Why not have a combined Planner/Executor that immediately deploys components on nodes as soon as decisions are made? Wouldn’t that be more efficient & avoid “concurrent planning” issues? Race conditions between Planners & Executors are unavoidable, unless there is domain-wide locking or transactioning –e.g., the above would require backtracking upon conflict In D&C, planning decision making is an entirely local process –Interacting with nodes incurs large latency –Not interacting with nodes is better tradeoff Also, Deployment Plan is an important inter-vendor boundary!

Tutorial on DnC Douglas C. Schmidt 100 Summary of Deployment & Configuration Spec Powerful concepts for the deployment of component-based applications –D&C spec enhances the original CCM Packaging & Deployment spec to support: Hierarchical assemblies, allowing better component reuse Resource management Automated distribution & deployment Well-defined inter-vendor boundaries –Planner & Repository, Target, Execution, & Node Managers can be replaced separately Designed for distributed real-time & embedded systems –But also useful for general-purpose distributed component systems