1 / 26

SmartFrog Overview

SmartFrog Overview. HP Labs Version: 0.6 (Draft) Localized for US English. What is SmartFrog?. SmartFrog: “Smart Framework for Object Groups” Describes services as collections of components Activates services by realizing service descriptions Framework elements: language engine

misu
Download Presentation

SmartFrog Overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SmartFrog Overview HP Labs Version: 0.6 (Draft) Localized for US English

  2. What is SmartFrog? SmartFrog: “Smart Framework for Object Groups” • Describes services as collections of components • Activates services by realizing service descriptions • Framework elements: • language • engine • components • A framework to build from, not a packaged solution • Mature; already embedded in products

  3. SmartFrog framework Language language transforms parser security model config. models live-ness process model templates Engine transport protocol component model discovery transactional lifecycle naming workflows scripting binding config servers deployment reliability services Components

  4. What problem does it solve? • How to configure & automatically activate complex, distributed apps • flexible • repeatable • sequencing, failure-recovery, evolution, adaptation, … • Ideal for the utility computing model • automatic app activation on utility resources • enables rapid resource repurposing for different apps

  5. How does SmartFrog address the problem?1. The common problems • No standard method to capture service config., multiple: • definitions of each value • mechanisms for access • notations (XML, ini files, SQL, ...) • No method of validation for the configuration as a whole • variable lifecycles • no up-front consideration of complete system startup/shutdown • lack of facility to compose systems from sub-systems • No separation of concerns • functionality and configuration mixed together • rigid location and binding integrated into code • Lack of auto-discovery, self-monitoring, and automation

  6. How does SmartFrog address the problem?2. Philosophy • Services are collections of components • software, data: disk files, hardware • Components collaborate to achieve some goal for which they must be appropriately organised: • required components must be defined • correctly initialised, with appropriate attributes • be able to locate each other as required • exchange information regarding their state

  7. How does SmartFrog address the problem?3. Approach • Language allows rich system descriptions • Engine automates application deployment, activation, management and shutdown • Component model allows the engine to be extended

  8. Examples • Network monitoring application • many monitoring components spread throughout the network • each component must be correctly configured • service as a whole must be correctly configured / customized • service components must come up in the correct sequence • Three-tier web application • database, application logic engine and web-server must each be installed, configured and started correctly • must be started on the correct host(s), in the correct sequence

  9. Language SmartFrog elements • which service components? • running where? • how is each component initialised? • how are components related? • how are the component lifecycles sequenced? • Language • templates / descriptions • Engine • interprets descriptions to activate running services • Components • make up the running service • deployed, configured & activated by the engine Engine activates running components managed, monitored through lifecycle

  10. Language properties • Attribute:value pairs in a structured containment hierarchy • Properties • declarative (a data description language, not a programming language) • instance-inheritance (prototype-based);allow templates to be progressively redefined • flexible linking between attributes and values • value resolution can be delayed to deployment time • composition: build larger descriptions out of smaller parts • Note: not XML-based, but can use XML as an input or output format if needed

  11. Language example webservice.sf wstemplate.sf webServerTemplate extends { sfProcessHost “localhost”; port 80; useDB; } #include “wstemplate.sf” #include “dbtemplate.sf” sfConfig extends { commonPort 8080; ws1 extends webServerTemplate { sfProcessHost “webserver1.hpl.hp.com”; port ATTRIB commonPort; } ws2 extends webServerTemplate { sfProcessHost “webserver2.hpl.hp.com”; port ATTRIB commonPort; useDB LAZY ATTRIB db; } db extends dbTemplate { userTable:rows 6; } } dbtemplate.sf dbTemplate extends { userTable extends { columns 4; rows 3; } dataTable extends { columns 2; rows 5; }

  12. Language: composing descriptions software component descriptions E.g. Apache Web-server resource descriptions composed: solution templates application patterns e.g. servers, storage networking e.g. 3-tier web service on Linux cluster front-end, Superdome back-end. e.g. reliability & recovery thresholding customer preferences ‘farm’ patterns parameterized fully-specified solution description e.g. SLAs e.g. n-tiers including firewall rules

  13. Engine • Fully distributed engine comprised of SmartFrog daemons that run on each node • deploy service descriptions on any node and the engine will create components in the right place • Daemons interpret SmartFrog descriptions • load components in the right sequence, in the right place, with correct configuration parameters • orchestrate the whole system by stepping components through their complete lifecycles • Provides liveness and component-tree navigation mechanisms • Many services can be deployed simultaneously using the same engine • Service un-deployment allows clean service removal

  14. Security • Engine provides secure deployment based on PKI • All nodes have certificates installed • All component code and descriptions must be signed • If node has valid certificate and code/descriptions are correctly signed, then deployment is allowed • Single-level security model (all deployed services operate within the same trust domain for a given certificate set)

  15. Component model • SmartFrog components all implement a simple lifecycle that allows the engine to control them • Allows systems of components to be started consistently import com.hp.SmartFrog.Prim.*; import java.rmi.*; public class MyPrim extends PrimImpl implements Prim, … { /* any component specific declarations */ public MyPrim() throws RemoteException {}  public void sfDeploy() throws Exception { super.sfDeploy(); /* any component specific initialization code */ } public void sfStart() throws Exception { super.sfStart(); /* any component specific start-up code */ } public void sfTerminateWith(TerminationRecored tr) { /* any component specific termination code */ super.sfTerminateWith(tr); } /* any component specific methods */ }

  16. Components • SmartFrog has an extensible component set • Some basic components form the core of the system, e.g.: • “Prim”: the primitive component – everything inherits from it • “Compound”: implements a “shared-fate” lifecycle for groups of components • Sequence: implements a sequential lifecycle for components • Other components provide system services: discovery mechanisms, reliability building blocks, host scripting, JMX support, … • Components are written as needed to support new services and wrap application components

  17. Encapsulating non-SmartFrog components • We don’t need to write our whole application/service in SmartFrog Java components -- it’s easy to encapsulate non-SmartFrog things, e.g. • Apache web-server: wrapper components to • install and configure software (and remove) • stop and start the service • We describe Apache and its required configuration in a SmartFrog description (using an Apache SF template) • When deployed, the SF Apache component can install, configure, start, stop and remove Apache • Apache can be used as a component of larger services

  18. Implementation details • Implemented completely in Java (using JDK1.4) • works across all standard Java platforms • Uses Java RMI as transport • Core system size • ~10K non-commented lines of Java • ~750 lines of description files • binaries: 800-1200 KBytes depending on services included

  19. Research questions • Rich research space spanning language, engine, and components • reliability (basic mechanisms, generic recovery patterns) • security • combining reliability and security • scalability • language specification • service debugging tools • standardized interfaces to resource management subsystems • standardized interfaces to node image deployment subsystems • generic system/service visualization tools

  20. Business opportunity • App developers • better enable apps for Grid and utility computer models • optimize application for specific hardware configurations • improve development (rapid deployment) • Solution providers • improve app configuration, deployment, and management • more secure and reliable solutions • quicker time to deployment and adaptation • Happier users • more stable systems • customization to specific needs • more control over solutions

  21. Framework status • Developing an open source (LGPL-licensed) release of the core framework (availability calendar ‘03) • Earlier preview / alpha releases planned • Deployed within HP/Agilent products • Experience with: • Apache • BEA Weblogic • Maya CGI rendering engine • Oracle

  22. Some related work • Grid standards for Grid/utility computing • Imaging / provisioning systems: Altiris, Rembo, Novadigm (+ many others) • MS Dynamic Systems Initiative, MS Provisioning System • Adaptive systems: ThinkDynamics, Corosoft • IBM eLiza, autonomic computing • Proprietary (product-specific) solutions in place today for installation / configuration / activation

  23. Standardization goals • Improve Grid applications • specification, deployment, configuration & life-cycle mgmt • Standardize SF language, app templates, and SF engine • Create multiple reference implementations of • engine • app templates (Application Server, JBOSS, WebLogic) • Define SF integration with Grid • Form a GGF WG

  24. SmartFrog benefits • Increased operational reliability • Improved quality • Assured correctness and consistency • Increased security • Reduced cost • Improved customer experience

  25. Summary • SmartFrog framework (language, templates, engine) supports: • specification, deployment, configuration, and life-cycle mgmt • Well suited for a utility computing model • Addresses needs of complex distributed applications • Business benefits for application developers, ISPs, & users • We are seeking partners & lighthouse users • jointly standardize key elements • develop with reference implementations • create templates for specific applications • establish a wide technical community

  26. HP logo

More Related