Skip to content

Commit e17a0c2

Browse files
committed
[GSoC]: Proposal from Dharmesh Kakadia
1 parent 302741d commit e17a0c2

3 files changed

Lines changed: 150 additions & 0 deletions

File tree

‎docs/en-US/CloudStack_GSoC_Guide.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
</bookinfo>
4949
<xi:include href="gsoc-tuna.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
5050
<xi:include href="gsoc-imduffy15.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
51+
<xi:include href="gsoc-dharmesh.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
5152

5253
</book>
5354

‎docs/en-US/gsoc-dharmesh.xml‎

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
<?xml version='1.0' encoding='utf-8' ?>
2+
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
3+
<!ENTITY % BOOK_ENTITIES SYSTEM "CloudStack_GSoC_Guide.ent">
4+
%BOOK_ENTITIES;
5+
]>
6+
7+
<!-- Licensed to the Apache Software Foundation (ASF) under one
8+
or more contributor license agreements. See the NOTICE file
9+
distributed with this work for additional information
10+
regarding copyright ownership. The ASF licenses this file
11+
to you under the Apache License, Version 2.0 (the
12+
"License"); you may not use this file except in compliance
13+
with the License. You may obtain a copy of the License at
14+
15+
http://www.apache.org/licenses/LICENSE-2.0
16+
17+
Unless required by applicable law or agreed to in writing,
18+
software distributed under the License is distributed on an
19+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
KIND, either express or implied. See the License for the
21+
specific language governing permissions and limitations
22+
under the License.
23+
-->
24+
25+
<chapter id="gsoc-dharmesh">
26+
<title>Dharmesh's 2013 GSoC Proposal</title>
27+
<para>This chapter describes Dharmrsh's 2013 Google Summer of Code project within the &PRODUCT; ASF project. It is a copy paste of the submitted proposal.</para>
28+
<section id="abstract-dharmesh">
29+
<title>Abstract</title>
30+
<para>
31+
The project aims to bring <ulink url="http://aws.amazon.com/cloudformation/"><citetitle>cloudformation</citetitle></ulink> like service to cloudstack. One of the prime use-case is cluster computing frameworks on cloudstack. A cloudformation service will give users and administrators of cloudstack ability to manage and control a set of resources easily. The cloudformation will allow booting and configuring a set of VMs and form a cluster. Simple example would be LAMP stack. More complex clusters such as mesos or hadoop cluster requires a little more advanced configuration. There is already some work done by Chiradeep Vittal at this front [5]. In this project, I will implement server side cloudformation service for cloudstack and demonstrate how to run mesos cluster using it.
32+
</para>
33+
</section>
34+
35+
<section id="mesos">
36+
<title>Mesos</title>
37+
<para>
38+
<ulink url="http://incubator.apache.org/mesos/"><citetitle>Mesos</citetitle></ulink> is a resource management platform for clusters. It aims to increase resource utilization of clusters by sharing cluster resources among multiple processing frameworks(like MapReduce, MPI, Graph Processing) or multiple instances of same framework. It provides efficient resource isolation through use of containers. Uses zookeeper for state maintenance and fault tolerance.
39+
</para>
40+
</section>
41+
42+
<section id="mesos-use">
43+
<title>What can run on mesos ?</title>
44+
45+
<para><emphasis role="bold">Spark:</emphasis> A cluster computing framework based on the Resilient Distributed Datasets (RDDs) abstraction. RDD is more generalized than MapReduce and can support iterative and interactive computation while retaining fault tolerance, scalability, data locality etc.</para>
46+
47+
<para><emphasis role="bold">Hadoop:</emphasis>: Hadoop is fault tolerant and scalable distributed computing framework based on MapReduce abstraction.</para>
48+
49+
<para><emphasis role="bold">Begel:</emphasis>: A graph processing framework based on pregel.</para>
50+
51+
<para>and other frameworks like MPI, Hypertable.</para>
52+
</section>
53+
54+
<section id="mesos-deploy">
55+
<title>How to deploy mesos ?</title>
56+
57+
<para>Mesos provides cluster installation <ulink url="https://github.com/apache/mesos/blob/trunk/docs/Deploy-Scripts.textile"><citetitle>scripts</citetitle></ulink> for cluster deployment. There are also scripts available to deploy a cluster on <ulink url="https://github.com/apache/mesos/blob/trunk/docs/EC2-Scripts.textile"><citetitle>Amazon EC2</citetitle></ulink>. It would be interesting to see if this scripts can be leveraged in anyway.</para>
58+
</section>
59+
60+
<section id="deliverables-dharmesh">
61+
<title>Deliverables</title>
62+
<orderedlist>
63+
<listitem>
64+
<para>Deploy CloudStack and understand instance configuration/contextualization</para>
65+
</listitem>
66+
<listitem>
67+
<para>Test and deploy Mesos on a set of CloudStack based VM, manually. Design/propose an automation framework</para>
68+
</listitem>
69+
<listitem>
70+
<para>Test stackmate and engage chiradeep (report bugs, make suggestion, make pull request)</para>
71+
</listitem>
72+
<listitem>
73+
<para>Create cloudformation template to provision a Mesos Cluster</para>
74+
</listitem>
75+
<listitem>
76+
<para>Compare with Apache Whirr or other cluster provisioning tools for server side implementation of cloudformation service.</para>
77+
</listitem>
78+
</orderedlist>
79+
</section>
80+
81+
<section id="arch-and-tools">
82+
<title>Architecture and Tools</title>
83+
84+
<para>The high level architecture is as follows:</para>
85+
86+
<para>
87+
<mediaobject>
88+
<imageobject>
89+
<imagedata fileref="images/mesos-integration-arch.jpg"/>
90+
</imageobject>
91+
</mediaobject>
92+
</para>
93+
94+
95+
<para>It includes following components:</para>
96+
97+
<orderedlist>
98+
<listitem>
99+
<para>CloudFormation Query API server:</para>
100+
<para>This acts as a point of contact to and exposes CloudFormation functionality as Query API. This can be accessed directly or through existing tools from Amazon AWS for their cloudformation service. It will be easy to start as a module which resides outside cloudstack at first and I plan to use dropwizard [3] to start with. Later may be the API server can be merged with cloudstack core. I plan to use mysql for storing details of clusters.</para>
101+
</listitem>
102+
103+
<listitem>
104+
<para>Provisioning:</para>
105+
106+
<para>Provisioning module is responsible for handling the booting process of the VMs through cloudstack. This uses the cloudstack APIs for launching VMs. I plan to use preconfigured templates/images with required dependencies installed, which will make cluster creation process much faster even for large clusters. Error handling is very important part of this module. For example, what you do if few VMs fail to boot in cluster ?</para>
107+
</listitem>
108+
109+
<listitem>
110+
<para>Configuration:</para>
111+
112+
<para>This module deals with configuring the VMs to form a cluster. This can be done via manual scripts/code or via configuration management tools like chef/ironfan/knife. Potentially workflow automation tools like rundeck [4] also can be used. Also Apache whirr and Provisionr are options. I plan to explore this tools and select suitable ones.</para>
113+
</listitem>
114+
115+
</orderedlist>
116+
</section>
117+
118+
<section id="api">
119+
<title>API</title>
120+
121+
<para>Query <ulink url="http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_Operations.html"><citetitle>API</citetitle></ulink> will be based on Amazon AWS cloudformation service. This will allow leveraging existing <ulink url="http://aws.amazon.com/developertools/AWS-CloudFormation"><citetitle>tools</citetitle></ulink> for AWS.</para>
122+
</section>
123+
124+
<section id="timeline">
125+
<title>Timeline</title>
126+
<para>1-1.5 week : project design. Architecture, tools selection, API design</para>
127+
<para>1-1.5 week : getting familiar with cloudstack and stackmate codebase and architecture details</para>
128+
<para>1-1.5 week : getting familiar with mesos internals</para>
129+
<para>1-1.5 week : setting up the dev environment and create mesos templates</para>
130+
<para>2-3 week : build provisioning and configuration module</para>
131+
<para>Midterm evaluation: provisioning module, configuration module</para>
132+
<para>2-3 week : develope cloudformation server side implementation</para>
133+
<para>2-3 week : test and integrate</para>
134+
</section>
135+
136+
<section id="future-work">
137+
<title>Future Work</title>
138+
<orderedlist>
139+
<listitem>
140+
<para><emphasis role="bold">Auto Scaling:</emphasis></para>
141+
<para>Automatically adding or removing VMs from mesos cluster based on various conditions like utilization going above/below a static threshold. There can be more sophisticated strategies based on prediction or fine grained metric collection with tight integration with mesos framework.</para>
142+
</listitem>
143+
<listitem>
144+
<para><emphasis role="bold">Cluster Simulator:</emphasis></para>
145+
<para>Integrating with existing simulator to simulate mesos clusters. This can be useful in various scenarios, for example while developing a new scheduling algorithm, testing autoscaling etc.</para>
146+
</listitem>
147+
</orderedlist>
148+
</section>
149+
</chapter>

‎docs/en-US/images/mesos-integration-arch.jpg‎

Loading

0 commit comments

Comments
 (0)