Corporate Home Open Source Home
Syndicate content
Eucalyptus
6 replies [Last post]
drbazz
Offline
Joined: 07/14/2010

Hi,
I'd like to spend some time exploring the source code of eucalyptus, to make some tests and to contribute to the communuty , but I can't find doc pages or comments on the code. How do you suggest to start "learning" the eucalyptus code structure? Is there a Developer guide or a commented version of the code?

Thank you
Luca

sang-min
Offline
Joined: 07/19/2010
Hello, Eucalyptus' CLC uses

Hello,

Eucalyptus' CLC uses "mule" framework. Thus, one way to study the code is to find the mule XML files and see how messages flow between various Java classes. Please find the "eucalyptus-bootstrapt.xml". that's the dispatcher in the entry.

drbazz
Offline
Joined: 07/14/2010
sang-min thank you for your

sang-min thank you for your answer.

So the mule framework is used to handle communications between components, I'll try to be more familiar with it.
What I'd like to do is to try to add some features to the system (for example live migration of instances between nodes, or load balancing), I guess the code that I need to look is also the .c files in the node folder. How do you suggest to organize my work? I find difficult to understand how things works without documentation on the code.

Thank you Again
Luca

sang-min
Offline
Joined: 07/19/2010
CLC is written in Java with

CLC is written in Java with the mule framework. The CC (cluster directory) and NC(node) are written in C. They communicate through soap message (axis 2C). If you see source files in cluster/node, there are handers that respond to particular soap message calls (e.g., doRunInstance, doDescribeInstance). You might start modifying the existing handlers or define a new soap message/handler pairs. Hope this helps!

-SM

drbazz
Offline
Joined: 07/14/2010
Ok, just another couple of

Ok, just another couple of questions...
- Could you tell me which are the steps to create a new soap message/handler? I mean how many file do I have to add/modify? Of course my first soap will be some kind of "hello world" :)

- Once I have added my new soap how do I implement it? Is it necessary to recompile and reinstall all the sources?

- Where does eucalyptus matain all the informations about addresses, images, etc? I mean how do I have to ask the system how many addresses are available in a certain moment? and how to reserve one? I've found where it "phisically" allocates the address, but not where in reserves them "logically"

Thank you again for your support
Luca

senzaposta
Offline
Joined: 03/01/2010
I have the same problem. I've

I have the same problem.
I've read a lot of xml mule files and some source code and now I have an idea of the architecture of the project. But I don't understand how to modify the source code yet, if I want to write a new web service.
I've noticed that for the run-instances operation there is a flow created by Mule ESB. Every service has its Java component. But I don't understand which is the section of the source code that accepts requests from clients.
Can you help me?
I've spent a lot of months and I'm exhausted now. This is my final task for the degree and I'd like to finish it in these weeks.
Thank you.

imranmm7
Offline
Joined: 05/22/2011
I successfully deployed

I successfully deployed axis2C handlers..my question is...did anyone in this thread was successful to deploy mule interceptor??
I studies mule and it is quite easy to deploy an interceptor..but i just dont understand..where should i deploy and how should i deploy these interceptors in such a big project..like eucalyputs..