f112c62c39db0f7d5f1ca2d179676557.ppt
- Количество слайдов: 23
A Mobile Agent Approach to Process-based Dynamic Adaptation of Complex Software Systems Gail Kaiser Columbia University
Dynamic Adaptation Modifications in structure and behavior that can be made to individual components, as well as sets thereof, or to the overall target system configuration, such as adding, removing or substituting components, while the system is running and without bringing it down. l Goals: – Supporting run-time software composition, – Enforcing adherence to requirements, – Ensuring uptime and quality of service of missioncritical systems, – Recovering from and preventing faults, – Seamless system upgrading, etc. l
Our Approach Dispatch mobile agents to components to perform dynamic adaptation tasks l Coordinate concerted action of multiple agents on multiple components via decentralized workflow l Dynamic adaptation workflow process incorporates knowledge about the specifications and architecture of the target software system l Allows to address at runtime configuration management, deployment, validation and evolution concerns normally dealt with only at development time l
Prerequisite Infrastructure Superimpose a minimally intrusive monitoring metaarchitecture on top of the target system l Introduce an adaptation feedback and feedforward control loop onto the target system, detecting and responding to the occurrence of certain conditions at and among components and connectors l Contrasted to fine-grained internal diagnostics and remedies performed in isolation by a self-assured, faulttolerant component, aims to handle more global situations, perhaps involving heterogeneous components obtained from multiple sources (COTS, open source) l
Kinesthetics e. Xtreme (KX) Probes register and report low-level events indicating the behaviors/activities (or lack thereof) of the target system (via active interfaces, probelets, instrumented connectors, others) l Distributed asynchronous event bus receives probed events and propagates them (publish/subscribe) through packaging, filtering and notification facilities l Gauges describe/measure the progress of the target system, rendered as visual or textual portal panels or as data feeds into decision support l
Kinesthetics e. Xtreme (KX) l Decision agents (human or automated) respond to gauged conditions by determining appropriate target system adaptations l Workflow engine l Actuation facilities deliver and execute any adaptation procedures l Worklets (aka Gaugents)
Worklets Mobile software agents support micro-workflow l Contain one or more mobile code units – worklet junctions l Worklet transparently travels from host to host, dropping off and picking up junctions l Optional origin junction returns the worklet to originating host l
Worklet Virtual Machine (WVM) Generic worklet execution platform l Middleware interfaces to each host through hostspecific adaptor l Tradeoff between adaptor complexity and worklet specialization l – 1 st: JPython scripted worklets, heavyweight adaptor implemented std API – 2 nd: Java coded worklets, lightweight adaptor specialized to domain/application/etc.
Work[let] flow H O S T 1 A D A P T O R 1 WVM H O S T 2 A D A P T O R WVM
Workflakes: Managing Micro- and Macro-Workflow Worklets deliver junctions wrapped in worklet jackets - scripted triggers, pre-conditions and timing for activation and repetition, exit conditions, directives to supersede, suspend, and reactivate a junction upon delivery of another, etc. (micro-workflow) l Workflakes decentralized workflow engine emits and coordinates multiple (jacketed) worklets collectively realizing the dynamic adaptation process (macro-workflow) l
Separation of Concerns l Worklet junctions define and execute computations l Workflow modeling language defines and decentralized workflow engine enacts coordination – Specify (conditional) worklet trajectory – Generate worklet jackets – Select and instantiate worklet junctions from worklet factory
Process Repository Probe T A R G E T A D A P T O R Process Engine WVM Worklet Transport WVM Worklet. Factory Junctions Catalogue
Example Application: Adaptive Interactive Internet Team Video Multimedia-enhanced group distance learning and collaborative work l Dispersed teams of students l – Review recorded lecture videos together – Interactively carry out course assignments l Different teams members have different computing and networking capabilities – But need to view the semantically same thing at physically same time
AI 2 TV Approach l l l Semantics-based video segmentation, indexing and compression (Prof. Kender) Specialized mpeg encoder/decoder adapts to resource availability (Prof. Nieh) KX monitors multimedia synchronization and continually updates gauges Workflakes directs dynamic adaptation performed by worklets Workflow model also guides predictive video segment caching (prefetching) based on team agendas
Multiple Workflow Levels l Application-level – Coordination of group work (traditional) – Multimedia provision follows team agendas l Control-level – Process-aware components (via WVM adaptors) – Adapts behavior of the infrastructure (caching, streaming, resource management, etc. ) l Reflective – Dynamically adapt KX continual validation – “Smart Event” vocabulary, complex event patterns, event matching and processing
KX Controls Controls AI 2 TV Infrastructure Team 1 Team 2 Controls
Worklets 2. 0 l Java 1. 3 l Can push (payload) or pull (RMI or URL Class. Loader) mobile code l Download from http: //www. psl. cs. columbia. edu/software/downl oad/
Workflakes 0. 5? l Initial experiment with Little-JIL/Juliette (UMass) – Little-JIL workflow modeling notation l Hierarchical workflow breakdown with coordination relationships and qualifiers among tasks l Sub-hierarchies assigned to decentralized processors (Juliette agents) – Juliette decentralized workflow enactment l Mockup of Juliette Automated. Agent l Manages agenda and sends worklets to execute leaf tasks l Cougaar-based implementation (DARPA) under way – Logistics workflow (worklet dispatch treated as a logistics problem) – Adaptable to other workflow paradigms – “Shell” generic Cougaar task processor is filled on request with coordination and computational semantics by worklets – Ideal environment for integration with jacket micro-workflow
Survivor NG Ideas l Need widely distributed workflow repository – Both definition and in-process state l Cougaar-based implementation relies on a distributed blackboard/tuple space – Any task processor may be enabled to acquire any part of the overall process – Configurable Cougaar communities l Worklets add dynamism, re-configurability, mobility to Cougaar communities – To handle contingencies and overcome faults – Need to add explicit fault-tolerance and security policies to Workflakes enactment mechanisms
Next Steps l That’s what we’re here to discuss
f112c62c39db0f7d5f1ca2d179676557.ppt