Slides used for Apache Stratos (incubating) Fourth Hangout. Hangout video can be found at http://youtu.be/VtF9DVGKbTQ
Website: http://stratos.incubator.apache.org
Mailing List:
Subscribe: dev-subscribe@stratos.incubator.apache.org
Post (after subscription): dev@stratos.incubator.apache.org
Social Media:
Google+: https://plus.google.com/103515557134069849802
Twitter: https://twitter.com/ApacheStratos
Facebook: https://www.facebook.com/apache.stratos
LinkedIn: http://www.linkedin.com/groups?home=&gid=5131436
How to Troubleshoot Apps for the Modern Connected Worker
ย
Apache Stratos (incubating) Hangout IV - Stratos Controller and CLI Internals
1. Apache Stratos
(Incubating)
Hangout IV
Stratos Controller and CLI Internals
13 August 2013
M. Isuru Tharanga Chrishantha Perera.
Committer & PPMC Member of Apache Stratos (Incubating),
Senior Software Engineer at WSO2, Inc.
2. Agenda
โ What is Stratos Controller?
โ How does Stratos Controller communicate
with Cloud Controller?
โ Auto-scaling policies configuration
โ How does the Artifact Distribution
Coordinator work?
โ How CLI works?
2
5. So, What is Stratos
Controller (SC)?
โ Basically, itโs Carbon + Set of Features
5
6. What is SC? (Cont.)
โ Mainly consists of User Interface
โ Tenant Management
โ Cartridge Subscription
โ Artifact Distribution Coordinator
โ Responsible for distribution of artifacts
โ Configuring Auto-Scaling Policies
โ Configuring policies.xml in
<SC_HOME>/repository/conf
6
8. SC Features
โ Register a Tenant.
โ View list of available Cartridges.
โ View list of subscribed Cartridges.
โ Subscribe to a Cartridge.
โ Unsubscribe from a Cartridge.
โ Connect to a data Cartridge while
subscribing to a Cartridge.
โ View subscribed Cartridge detailed
information.
8
18. How does Git Repo notify
the ADC?
โ Add a service hook to the Git Repository
โ For example: GitHub
18
19. Interactive CLI Tool
โ Used by tenants to manage subscriptions.
โ Same functions as the UI, except:
โ Tenant registering
โ Monitoring logs of Cartridge instances.
19
20. CLI Modes
โ Interactive mode
$export STRATOS_URL= https://demo.stratos.incubator.apache.org:9445
$./stratos.sh -u <username> -p <password>
stratos>
โ Single command line mode
โ User can execute commands in one line.
โ It will not show the stratos> prompt
โ The user can export the username and password to
the environment and execute commands.
$export STRATOS_USERNAME=<username>
$export STRATOS_PASSWORD=<password>
$ stratos.sh -u [username] -p [password] [action commands]
20
21. CLI Tool Technology
โ Supports following features via jline 2
โ Command history
โ Auto-completion of commands
โ Character masking (for passwords)
โ Apache Commons CLI
โ Connects to SC
โ Artifact Id: org.apache.stratos.cli
21