Cloud Computing Open source cloud infrastructures Keke Chen.

Download Cloud Computing Open source cloud infrastructures Keke Chen.

Post on 19-Jan-2016

215 views

Category:

Documents

3 download

TRANSCRIPT

<ul><li><p>Cloud Computing</p><p>Open source cloud infrastructures</p><p>Keke Chen</p></li><li><p>OutlineProject 3EucalyptusOpenStack</p></li><li><p>Project 3: using AWSTasks (work from nimbus17 or your own PC)Create AWS account and setup the environmentTry basic EC2 commandsStart a hadoop cluster on EC2, using the hadoopEC2 tool Read the code of hadoopEC2 to understand how to interact with EC2 in shell scripts</p></li><li><p>Starting hadoop cluster on EC2Readhttp://wiki.apache.org/hadoop/AmazonEC2SetupCheck src/contrib/ec2/bin/hadoop-ec2-env.sh You dont need to change anything thereYou should setup your own environment variables in .profile, .login, or .bashrcAWS_ACCOUNT_ID, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY</p></li><li><p>Starting hadoop on EC2copy $HADOOP_HOME/src/contrib/ec2 to your own directory% bin/hadoop-ec2 launch-cluster your-cluster-name #ofslaves% bin/hadoop-ec2 login your-cluster-nameTest your cluster/usr/local/hadoop-*Hadoop fsck /Diagnose problems (understand the hadoop setup)http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/</p></li><li><p>Read the source of the EC2 toolCheck the script hadoop-ec2 and learn how to automatically launch instances Pass initialization scripts to instancesChange Hadoop configurationAnswer some questions </p></li><li><p>Make your own AMIinstall a recent Hadoop version e.g., 1.0.x in the AMIHadoopEC2 provides some scripts but they need to be revised to work with the current setting</p></li><li><p>Experiment with HDFS and S3Hadoop can use either HDFS or S3 as the storage for MapReduce.You need to learn the performance difference for these two optionsHow to configure Hadoop to use S3 https://wiki.apache.org/hadoop/AmazonS3 Conduct a simple experiment to compare the performance of different storage</p></li><li><p>Most popular open-source AWS equivalenceEucalyptus Started by UCSB researchers, now a companyOpenStackStarted by NASA, now an open source platform</p></li><li><p>EucalyptusCompatible to AWS APIs (EC2, S3, mainly)Thus, Boto library can be used, tooA good example for understanding how AWS works</p></li><li><p>Paper The Eucalyptus Open-source Cloud-computing SystemHow VM instances are managedHow to provide virtual network (like elastic IP)How to provide data storage (like S3)A very brief description, but we can get something</p></li><li><p>System DesignData centerCLC: cloud controller Walrus: storage controller similar to S3CC: cluster controllerNC: node controller</p></li><li><p>Components: Node ControllerMake queries to discover physical resources# of coresSize of memoryAvailable disk spaceState of VM instancesPropagate the information to Cluster ControllerDescribeResourceDescribeInstancesRun/terminate instancesCLCCC NC hypervisor (Xen)</p></li><li><p>Node controllerStart an instanceCopy instance image from walrus or local cacheCreate endpoint in the virtual network overlayInstruct hypervisor to boot the instance </p><p>Stop an instanceInstruct hypervisor to terminate the VMTear down the virtual network endpointClean up the files associated with the instance</p></li><li><p>Cluster ControllerGather/report information of NCs Through the interface provided by NCsReport the summary to CLCSchedule incoming instance run requests to specific NCsControl the virtual network overlay</p></li><li><p>Virtual network overlayVM instance interconnectivity (between different nodes/networks)Not very well mentioned in Xen Connectivity, isolation and performanceAt least one of a set of VMs be exposed externallyMap the public IP to that instanceRestricted communicationVMs in the same set can talk to each otherVMs from different sets should be isolated</p></li><li><p>Virtual network overlayEach VM has a private IP; one VM in the set also has a public IPVLAN tag defines the subnet to isolate sets of VMsCluster Controller serves as the router between VM subnets- CC uses Linux iptable control traffics- Use iptable Network Address Translation (NAT) to define the map from Public IP to private IP</p></li><li><p>Storage Controller (Walrus)Provide SOAP/REST interfacesCompatible with S3 you can use S3 toolsUse Walrus to stream data in/out of the cloudStore VM images (same as AMI)Root file system, kernel image, ramdisk imageNo locking for object writesConflict writes late write overwrites the earlier </p></li><li><p>Provides the same tool Amazon usesGenerate AMIMaintains a cache of imagesAuthentication is applied when NC accesses images</p></li><li><p>Cloud ControllerA collection of web servicesResource services Data servicesInterface services</p></li><li><p>Cloud Controller: resource servicesReceive user requestsInteract with CCs to allocate/deallocateSystem Resource State (SRS) is maintained by querying CCsCCs will collect information from NCsFollows a transactional operationReservation, VM creation commitOr errors rollback Realizing SLAs </p></li><li><p>Cloud Controller: data servicesHandles the creation, modification, interrogation, and storage of stateful system and user dataThere is a system databaseUsers can query the servicesDiscover resource info (images, clusters)Manipulate abstract parameters(keypairs, security groups, network definitions)Recall some of AWS interfaces</p></li><li><p>Cloud Controller: interface servicesUser-visible interfacesProgrammatic interfaces (SOAP/REST)Web interfaceHandling authenticationProvide system management tools </p></li><li><p>OpenStack</p></li><li><p>OpenStackOriginated at NASA, with RackspaceDriven by an open community processMultiple hypervisors: Xen, KVM, ESXi, Hyper-VFirst release: Oct 2010</p></li><li><p>Components Nova Compute (equivalent to EC2)Swift object storage (S3)Image service (AMI)Networking (virtual network)Block storage (Elastic block storage)Identity Dashboard (AWS web console)</p><p>-- mostly implemented with python </p></li><li><p>Fastest Growing Global Open Source CommunityCOMPANIES TOTAL CONTRIBUTORSAVERAGE MONTHLY CONTRIBUTORSCODE CONTRIBUTIONS1,03623870,137231 10,149INDIVIDUAL MEMBERSCOUNTRIES 121As of July 2013</p></li><li><p>Global CommunityCountries with members</p></li><li><p>Developer GrowthContributors per month (ohloh)</p></li><li><p>1 Million+ Lines of CodeLines of code (ohloh)</p></li><li><p>Ecosystem GrowthParticipating Companies</p><p>********************More than 10k members! You should join!</p><p>Of the total contributors, 800-900 are still active, which shows that people stick around.</p><p>Even had downloads from Antarctica!</p><p>***Were also deleting hundreds of thousands of lines as well</p><p>Eg last 12 months:</p><p>Added 2,936,791 linesRemoved 1,594,506*</p><p>*</p></li></ul>

Recommended

View more >