Beruflich Dokumente
Kultur Dokumente
Copyright 2010 Sage Technologies Limited, publisher of this work. All rights reserved. No part of this documentation may be copied, photocopied, reproduced, translated, microfilmed, or otherwise duplicated on any medium without prior written consent of Sage Technologies Limited. Use of the software programs described herein and this documentation is subject to the End User Licence Agreement enclosed in the software package, or accepted during system sign-up. Sage, and the Sage logo are registered trademarks or trademarks of The Sage Group PLC. All other marks are trademarks or registered trademarks of their respective owners.
Executive Summary
ThisdocumentdetailsthetasksnecessarytodeploySageCRMVersion7ontoAmazonEC2Cloud.
1
Sage CRM Version 7 Amazon EC2 Cloud Deployment
2
Sage CRM Version 7 Amazon EC2 Cloud Deployment
1. AmazonMachineImage(AMI)
TheAMIisthemasterimagetemplatethatyoulaunchinstancesof.TheAMIisanalogoustoaVMWaresnapshot. ThereareafewtypesofAMIs: AmazonProvidedAMIAmazonprovidesasetofpubliclyavailableLinuxandWindowsbaseimagesthat youcanuseasastartingpoint. OtherPublicAMIsVariouscompaniesandindividualshavemadetheirAMIspubliclyavailable. UserCreatedAMIOnceyouvebuiltandcustomizedyourSageCRMsystem,youcancreateyourown bundleofthemachine.YourbundlecanbeusedtoregisteranewAMI.ThisisanewAMIthatyoucanuse asanewmasterimage.ThisAMIwillbeprivatetoyouunlessyouchoosetoshareitwithanotheruser.This couldbeagoodwaytopackageverticalSageCRMcustomisations. SharedAMIUserscaneasilysharetheirAMIswithotherusers.Forexample,SageTechnologiesismaking aSageCRMAMIavailabletoselectedpartners. 3
Sage CRM Version 7 Amazon EC2 Cloud Deployment
WerecommendthataPartneruseaSageCRMsharedAMItobeginwith.ThepartnercanuseanAmazonprovided AMIiftheywanttocreatetheirownverticalcustomisationwhentheyhavereachedagoodlevelofunderstanding andexperiencewiththeAmazonCloud. CreatingYourOwnAMI(Bundle) YoucaneasilycreateyourownAMI(bundle)fromanexistingimagethatyouhavecustomized.Bundlesaresimilarto VMwaresnapshots.Bundlingisaprocessusedtocreateanewimagefromarunningonesoyoudontneedtodoany furtherinstallationconfigurationeachtimeyouneedtouseaserver.ThenewAMIcanbesharedwithotherusers. AMIBundlesarestoredinAmazonsSimpleStorageServices(S3)environment.AdditionalS3storagecostsapplyto holdthenewAMI.SeemoredetailsbelowontheS3environment. Itishighlyrecommendedthatyoucreateanewbundleatvariousstagesofdevelopmentsoyoualwayshaveapoint intimeyoucanrevertbacktowithouthavingtostartcompletelyover. Forcompletedetailsoncreatingandmanagingbundles/AMIs,visit: http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/bundlinganamiwindows.html
2. Instances
AfteranAMIislaunched,theresultingrunningsystemiscalledaninstance.TheInstanceistheactualrunningvirtual machine. InstanceTypes(HardwareConfigurations) StandardInstances Instancesofthisfamilyarewellsuitedformostapplications. m1.smallSmallInstance(Default)1.7GBofmemory,1EC2ComputeUnit(1virtualcorewith1EC2 ComputeUnit),160GBofinstancestorage,32bitplatform m1.largeLargeInstance7.5GBofmemory,4EC2ComputeUnits(2virtualcoreswith2EC2 ComputeUnitseach),850GBofinstancestorage,64bitplatform m1.xlargeExtraLargeInstance15GBofmemory,8EC2ComputeUnits(4virtualcoreswith2EC2 ComputeUnitseach),1690GBofinstancestorage,64bitplatform
HighCPUInstances InstancesofthisfamilyhaveproportionallymoreCPUresourcesthanmemory(RAM)andarewellsuitedfor computeintensiveapplications. c1.mediumHighCPUMediumInstance1.7GBofmemory,5EC2ComputeUnits(2virtualcores with2.5EC2ComputeUnitseach),350GBofinstancestorage,32bitplatform c1.xlargeHighCPUExtraLargeInstance7GBofmemory,20EC2ComputeUnits(8virtualcores with2.5EC2ComputeUnitseach),1690GBofinstancestorage,64bitplatform EC2ComputeUnit(ECU)OneEC2ComputeUnit(ECU)providestheequivalentCPUcapacityofa1.01.2 GHz2007Opteronor2007Xeonprocessor. Moreoninstancetypescanbefoundhere:http://aws.amazon.com/ec2/instancetypes/
4
Sage CRM Version 7 Amazon EC2 Cloud Deployment
EC2 Security
AmazonEC2enablesthefirewalltobeextensivelyconfiguredbymeansofSecurityGroups.TheEC2firewallallows youtoassignyourinstancestouserdefinedgroupsanddefinefirewallrulesforthesegroups.Asinstancesareadded orremoved,theappropriaterulesareenforced.Similarly,ifyouchangearuleforagroup,thechangesare automaticallyappliedtoallmembersofthegroup.Figure3showsatypicaldefaultfirewallsetup. Figure3:DefaultFirewallconfiguration Asecuritygroupisanamedcollectionofaccessrules.Theseaccessrulesspecifywhichincomingnetworktraffic shouldbedeliveredtoyourinstance.Allotheringresstrafficwillbediscarded.Youcanmodifyrulesforagroupat anytime.Thenewrulesareautomaticallyenforcedforallcurrentlyrunninginstancesandinstanceslaunchedinthe future. When you launch an AMI instance, you can assign it to as many groups as you like. If no groups are specified, the instanceisassignedtothedefaultgroup.Bydefault,thisgroupallowsallnetworktrafficfromothermembersofthis groupanddiscardstrafficfromotherIPaddressesandgroups.Ifthisdoesnotmeetyourneeds,youcanmodifythe rulesettingsofthedefaultgroup. ConfiguringFirewallSettings Forcompletedetailsonsettingupfirewallsecuritygroupsandaccessrules,visit: http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/usingnetworksecurity.html 5
Sage CRM Version 7 Amazon EC2 Cloud Deployment
EC2 Scalability
ElasticIPAddress WheneveranAMIinstanceisrestarted,anewDHCPIPAddressandassociatedDNSmappingareassignedtothe instance.ThismeansthatallSageCRMuserswouldhavetobecontactedwithanewURLtologintoeverytimethe serverisrestarted.Figure4showsatypicaldynamicIP/DNSmapping:
6
Sage CRM Version 7 Amazon EC2 Cloud Deployment
8
Sage CRM Version 7 Amazon EC2 Cloud Deployment
9
Sage CRM Version 7 Amazon EC2 Cloud Deployment
Figure8:ElasticFox
10
Sage CRM Version 7 Amazon EC2 Cloud Deployment
AnotherpopularpluginforFirefoxistheS3FoxtooltomanagethebackingS3storage.Figure9showsaviewofS3 Fox.
Figure9:S3Fox. Amazon S3 is storage for the Internet. The S3 environment is where bundles (AMIs) are stored. Additional S3 storage costs apply to hold the new AMI. S3 can also be used to store installation files and other files for your instances. 11
Sage CRM Version 7 Amazon EC2 Cloud Deployment
Beforeyoustart
CustomersandBusinessPartnersareresponsibleformanagingtheirownEC2cloudinstancesviatheAmazon WebServices(AWS)ManagementConsole.Thisincludescustomeraccountactivity,security,accountcharges andallaccountconfiguration.ItwillnotbepossibletobillyourcustomersdirectlyfromAmazonEC2. Sage Technologies and Sage OpCos have no involvement in the relationship between the Business Partner andtheAmazonEC2cloud. IfBusinessPartnersneedtosignupforanEC2account.Thisisdescribedinbriefbelow.Moreinformation canbefoundathttp://aws.amazon.com/ec2/ Sage CRM issues in the cloud should be logged in the usual way, escalating up to the Sage OpCo support channelasanOnPremisecase.TheEnvironmentOSonthecaseshouldbesettoAmazonEC2instance. The following video introduces the Amazon Web Services Management Console: http://media.amazonwebservices.com/console/AwsConsole.html, and is worth watching before you get started.
12
Sage CRM Version 7 Amazon EC2 Cloud Deployment
1. SignUptoAmazonEC2foranaccount YouwillneedaspecificuserlogontoAmazonEC2.StartbyregisteringwithAWS:
13
Sage CRM Version 7 Amazon EC2 Cloud Deployment
14
Sage CRM Version 7 Amazon EC2 Cloud Deployment
15
Sage CRM Version 7 Amazon EC2 Cloud Deployment
4. StarttheAMIInstance SelecttheAMIcheckboxandclicktheLaunchbuttoninthetoolbar.Acceptthedefaultsettings(Smallinstance,etc):
16
Sage CRM Version 7 Amazon EC2 Cloud Deployment
17
Sage CRM Version 7 Amazon EC2 Cloud Deployment
Youwillneedtoenteryourprivatekeyintothecheckboxtodecryptthepassword:
Note:IfyougetanIEprompttostoprunningthescriptduringdecryption,selectNo.
18
Sage CRM Version 7 Amazon EC2 Cloud Deployment
Makesureyoucopythepasswordsomewheresafeasyouwillnotbeabletogetitagainonceyouconfigurethe instance.
19
Sage CRM Version 7 Amazon EC2 Cloud Deployment
Nowremotelogintotheserver:
20
Sage CRM Version 7 Amazon EC2 Cloud Deployment
21
Sage CRM Version 7 Amazon EC2 Cloud Deployment
22
Sage CRM Version 7 Amazon EC2 Cloud Deployment
NowsetServerauthenticationtoSQLServerandWindowsAuthenticationmode:
23
Sage CRM Version 7 Amazon EC2 Cloud Deployment
Nowchangethesauserpasswordandenableforlogin:
RestartSQLServerandtestthatyoucanloginassawiththenewpasswordyoujustset.
24
Sage CRM Version 7 Amazon EC2 Cloud Deployment
BydefaultIISwillhaveASPprohibited.EnableASPinIISManager:
25
Sage CRM Version 7 Amazon EC2 Cloud Deployment
8. InstallSageCRMontheAMIInstance NowwecaninstallSageCRM.
26
Sage CRM Version 7 Amazon EC2 Cloud Deployment
27
Sage CRM Version 7 Amazon EC2 Cloud Deployment
Theinstallshouldnowcompleteasnormal:
28
Sage CRM Version 7 Amazon EC2 Cloud Deployment
9.
Checktheinstallworks
FromtheAWSconsole,copythePublicDNSandmakeupaSageCRMURLasfollows: http://ec21847390172.compute1.amazonaws.com/CRM/eware.dll/UK
29
Sage CRM Version 7 Amazon EC2 Cloud Deployment
Checkthatthisinstallworksfromabrowser:
30
Sage CRM Version 7 Amazon EC2 Cloud Deployment
31
Sage CRM Version 7 Amazon EC2 Cloud Deployment
32
Sage CRM Version 7 Amazon EC2 Cloud Deployment
33
Sage CRM Version 7 Amazon EC2 Cloud Deployment
ThenrefreshthebrowsershowingSageCRMearlier:
34
Sage CRM Version 7 Amazon EC2 Cloud Deployment
ChangetheURLtothenewPublicDNSname:
35
Sage CRM Version 7 Amazon EC2 Cloud Deployment
CheckthatyouhaveSQLServersetupcorrectlybycheckingthatyoucanloginasoneofthepersonasandcanusethe applicationincludingtheInteractiveDashboard(asSQLServeronthisinstancewillhavechangedmachinename):
36
Sage CRM Version 7 Amazon EC2 Cloud Deployment
37
Sage CRM Version 7 Amazon EC2 Cloud Deployment
NowchangetheURLintheSageCRMlogintothisstaticIP:
Logonasapersonaandcheckthatyoucanaccesstheapplicationasbefore.
38
Sage CRM Version 7 Amazon EC2 Cloud Deployment
Restarttheinstanceasbefore.WhentheinstancehasstartedupyoumustreassociatetheElasticIPwiththe instanceagaintoreestablishtheIPmappingtothenewinstancePublicIP/DNS: 39
Sage CRM Version 7 Amazon EC2 Cloud Deployment
CheckthatthesameURLwiththeelasticIPsuccessfullyworksirrespectiveofthenewinstancePublicDNS. 11. ConfigureyourDNSorTinyURL Finally, you canmapthe Elastic IP either toyour DNS ifyou want to hide theAmazon Cloudbehind your company websiteorsimplymakeitintoaTinyURL.
40
Sage CRM Version 7 Amazon EC2 Cloud Deployment
IMP-CLO-ENG-700-2.0