stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Imesh Gunaratne <im...@apache.org>
Subject [Discuss] [Cartridge Agent] Standalone Cartridge Agent
Date Fri, 20 Dec 2013 10:39:01 GMT
Hi All,

I have now re-factored Stratos Cartridge Agent and made it a single
product.
This replaces the previous cartridge agent modules: event-publisher,
event-subscriber & health-publisher.

*Work Flow:*

1. Configure Cartridge Agent, provide mb-ip, mb-port, cep-ip, cep-port,
payload-file-path.
2. Start Cartridge Agent.
3. Publish instance started event.
4. Wait for application ports to be active.
5. If no artifact repository given send instance activated event.
6. If artifact repository given, wait for artifact update event sent by
Stratos Manager.
7. Once artifact update event is received, checkout artifacts.
8. Once artifacts are checked out send instance activated event.
9. If another artifact update event is received, checkout artifacts.

*A Sample Cartridge Agent Log in Load Balancer Cartridge:*

[2013-12-20 10:20:53,729]  INFO - [CartridgeAgentConfiguration] Cartridge
agent configuration initialized
[2013-12-20 10:20:53,830]  INFO - [CartridgeAgent] Cartridge agent started
[2013-12-20 10:21:01,911]  INFO - [CartridgeAgentEventPublisher] Publishing
instance started event
[2013-12-20 10:21:02,869]  INFO - [CartridgeAgentEventPublisher] Instance
started event published
[2013-12-20 10:21:02,876]  INFO - [CartridgeAgentUtils] Waiting for ports
to be active
[2013-12-20 10:21:02,911]  INFO - [CartridgeAgentUtils] Port 8280 is active
[2013-12-20 10:21:02,913]  INFO - [CartridgeAgentUtils] Port 8243 is active
[2013-12-20 10:21:07,914]  INFO - [CartridgeAgent] No artifact repository
found
[2013-12-20 10:21:07,914]  INFO - [CartridgeAgentEventPublisher] Publishing
instance activated event
[2013-12-20 10:21:08,058]  INFO - [CartridgeAgentEventPublisher] Instance
activated event published
[2013-12-20 10:21:08,060]  INFO - [CartridgeAgentEventPublisher] Starting
health statistics notifier
[2013-12-20 10:21:08,476]  INFO - [CartridgeAgentEventPublisher] Health
statistics notifier started
[2013-12-20 10:21:23,501]  INFO - [CartridgeAgentUtils] Port 8280 is active
[2013-12-20 10:21:23,503]  INFO - [CartridgeAgentUtils] Port 8243 is active
[2013-12-20 10:21:23,525]  INFO - [HealthStatisticsNotifier] Publishing
memory consumption: 28.571429
[2013-12-20 10:21:23,609]  INFO - [HealthStatisticsNotifier] Publishing
load average: 5.680000


Thanks
Imesh

Mime
View raw message