You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by wa...@gmx.com on 2012/08/13 13:45:13 UTC
Mechanics of the Management Server -> Agent interface
Hello,
I wonder how Cloudstack messages the agent from the management server. What I am particular interested in is, where and how the JSON object are created and how they look like. (The first step would be in which package/file is the JSON file created? Couln't find yet)
What I am also interested in is how the management server chooses the host. As I assume from the log files it sends keep-alives to the management server?
It would be really great if you could give me a hand with these questions
Best regards
Watnuss
Re: Mechanics of the Management Server -> Agent interface
Posted by prasanna <sr...@gmail.com>.
On 13 August 2012 19:50, Mice Xia <mi...@tcloudcomputing.com> wrote:
> Watnuss,
>
> You can refer to class Request.java (and related) from package com.cloud.agent.transport, project core. It uses a library 'Gson' to convert commands into Json.
>
> About how management server chooses host, simply speaking, each command is sent to the host which should do the job, e.g. for KVM, a StartCommand for a specified VM is sent to the host that VM runs on.
>
> Regards
> Mice
>
> -----Original Message-----
> From: watnuss@gmx.com [mailto:watnuss@gmx.com]
> Sent: Monday, August 13, 2012 7:45 PM
> To: cloudstack-dev@incubator.apache.org
> Subject: Mechanics of the Management Server -> Agent interface
>
> Hello,
>
> I wonder how Cloudstack messages the agent from the management server. What I am particular interested in is, where and how the JSON object are created and how they look like. (The first step would be in which package/file is the JSON file created? Couln't find yet)
> What I am also interested in is how the management server chooses the host. As I assume from the log files it sends keep-alives to the management server?
>
> It would be really great if you could give me a hand with these questions
> Best regards
>
> Watnuss
Alex wrote down some notes on the architecture and the request
dispatch mechanism that I've put on the wiki here:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Alex%27s+Architecture+Notes
--
Prasanna.,
RE: Mechanics of the Management Server -> Agent interface
Posted by Mice Xia <mi...@tcloudcomputing.com>.
Watnuss,
You can refer to class Request.java (and related) from package com.cloud.agent.transport, project core. It uses a library 'Gson' to convert commands into Json.
About how management server chooses host, simply speaking, each command is sent to the host which should do the job, e.g. for KVM, a StartCommand for a specified VM is sent to the host that VM runs on.
Regards
Mice
-----Original Message-----
From: watnuss@gmx.com [mailto:watnuss@gmx.com]
Sent: Monday, August 13, 2012 7:45 PM
To: cloudstack-dev@incubator.apache.org
Subject: Mechanics of the Management Server -> Agent interface
Hello,
I wonder how Cloudstack messages the agent from the management server. What I am particular interested in is, where and how the JSON object are created and how they look like. (The first step would be in which package/file is the JSON file created? Couln't find yet)
What I am also interested in is how the management server chooses the host. As I assume from the log files it sends keep-alives to the management server?
It would be really great if you could give me a hand with these questions
Best regards
Watnuss