Skip to content

Latest commit

 

History

History
94 lines (70 loc) · 4.02 KB

3-adv.md

File metadata and controls

94 lines (70 loc) · 4.02 KB

Advanced CloudStack Development

CloudStack Bootstrapping

Building blocks: spring, managed-context, api, component-api

Manager, ManagerBase Adapter, AdapterBase ComponentLifecycle, ComponentLifecycleBase, ComponentContext

Deployment descriptor: WEB-INF/web.xml

The web.xml has:

  • Servlets (CloudStartupServlet, ApiServlet, ConsoleProxyServlet)
  • Configuration (classpath:log4j-cloud.xml)
  • Listeners (CloudStackContextLoaderListener)
  • Mappings or filters (what url for what servlet)
  • Error pages
  • Security constraints

The CloudStartupServlet's init() runs ComponentContext.initComponentsLifeCycle() that kickstart the management server module/component loading, registration, configuration and start.

(Related: see how usage server starts in UsageServer.java)

The framework/spring/module implements a spring based module framework that discovers and constructs the hierarchy of CloudStack module based on the module.properties file (defined in most CloudStack maven projects). It is initialized via the CloudStackContextLoaderListener.

https://cwiki.apache.org/confluence/display/CLOUDSTACK/Putting+CloudStack+together

Jobs Framework

AsyncJobManager

RPC Framework

Cluster and Agent framework CloudStack clustering, agent LB etc. Agent/Cluster manager

SystemVMs

SystemVM Template and systemvm.iso

Packer, build etc. (note: systemvm.iso has been deprecated with 4.17 onwards) https://cwiki.apache.org/confluence/display/CLOUDSTACK/SystemVm.iso

CPVM and SSVM

Virtual Routers

How it builds, programs etc. VR python codebase

Self Study

Misc links: