In this article we will describe how to create a couple of EC2 instances and how to deploy ClusterControl on EC2.
We will use MySQL Cluster here, but the same steps are applicable to Galera and MySQL Replication.
We assume you already have an EC2 account.
We will not cover how you add extra disk capacity in this tutorial.
It looks like a lot but takes approximately 20 minutes to get a running Cluster.
Creating the Instances
After having logged in on the EC2 Console ( https://console.aws.amazon.com/ec2 ) the first screen you will see is the following.
Press Launch Instance and the following screen shows up:
We will be using "Launch Classic Wizard",so make sure it is selected.
Here you can also select an AMI to use. We strongly recommend that you chose a 64-bit AMI, for this exercise we use the Basic 64-bit Amazon Linux AMI (it is a Redhat inspired image, and uses RPMs to install software). If you prefer to use an Ubuntu AMI, you can press "Community AMIs" , and in the search box you can enter the AMI id ami-8eb584fa and then you will be presented with this AMI: 881935613136/ylastic-base-ubuntu-10.10-maverick-amd64-20110704-1604. Select that one if you want to use Ubuntu, you can also use various RighScale images as well. Just make sure that the "Root Device" says "EBS".
Finally, press "Continue"
In the next screen we chose the number of instances. We will create five m1.large instances (m1.micro does not work with MySQL Cluster), we specify also that we want the servers in the same availability group (here you have some more advanced options, perhaps have 50% of the nodes in availability zone A and the other 50% in availability zone B. For now we don't consider using more than one availability zone):
- 1 instance for ClusterControl
- 2 instances for Data Nodes
- 2 instances for SQL Nodes
Press "Continue".
Press "Continue".
Next we get to a screen where some other fine adjustments can be made. We will skip this part too.
Press "Continue".
Now we have to create a keypair. Here we have written 'severalnines', but you can give it basically any name you want. The keypair is used to login to the EC2 instances we are about to launch.
Press the "Create & Download your Key Pair" and save the keypair. We will soon copy the keypair, so remember where you put it!
Then press "Continue".
On the next screen we define the firewall, select the default security group (you can add more security rules later).
Press "Continue".
Finally, we are ready to launch the instances.
Press "Launch".
You will be presented with a new screen and just press Continue. You will now return to the EC2 Dashboard, and then press "Running Instances" (upper right). You will see the follow screen:
Select the instance on the top. In the lower frame (you will see Private IP Address):
The top instance we will use for ClusterControl. Click through the instances one at a time and record the PRIVATE IP addresses. Here is an example how we will layout MySQL Cluster nodes on the instances (the ip addresses will most likely be different in your setup):
10.202.58.20 - ClusterControl Server (also note the public DNS for this one, e.g, ec2-107-22-127-220.compute-1.amazonaws.com).
10.32.11.164 - Management Node 1
10.202.163.0 - Management Node 2
10.80.237.132 - Data Node 1
10.10.223.14 - Data Node2
10.32.11.164 - SQL Node 1
10.202.163.0 - SQL Node 2
Please note that the SQL Node (mysql server) is colocated with one management server, and that is perfectly fine.
At this stage we can go and select a Configurator: http://www.severalnines.com/resources/configurator
We will use the Cluster Configurator to setup a MySQL Cluster.
Preparations
Before we actually start using the Configurator we need to upload the keypair to the EC2 ClusterControl server.
Locate the severalnines.pem file you created and downloaded.
Put it in a good place e.g, in your home catalog for convenience, and do:
chmod 400 severalnines.pem
If using the Amazon AMI:
johan@goldfish:~$ scp -i severalnines.pem severalnines.pem ec2-user@ec2-72-44-55-2.compute-1.amazonaws.com:
The authenticity of host 'ec2-72-44-55-2.compute-1.amazonaws.com (72.44.55.2)' can't be established.
RSA key fingerprint is e0:cf:55:c4:d9:94:dc:80:c1:9b:f6:fe:5d:ea:3e:1d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ec2-72-44-55-2.compute-1.amazonaws.com,72.44.55.2' (RSA) to the list of known hosts.
severalnines.pem 100% 1696 1.7KB/s 00:00
Ubuntu AMI:
johan@goldfish:~$ scp -i severalnines.pem severalnines.pem ubuntu@ec2-72-44-55-2.compute-1.amazonaws.com:
The output should be the same as above.
If you can't connect with either ubuntu or ec2-user, then try root. Some AMIs uses this.
The user you can log in with to the instance is called the OS User. The OS User will be needed in the Configurator.
At this stage you have copied the keypair (the .pem file) to the home catalog on the ClusterControl Server. That is great, because now we can use this to ssh without password from the ClusterControl instance/server and all the other instances
Remember this:
If using Amazon AMI:
EC2 Keypair location /home/ec2-user/severalnines.pem
If using Ubuntu AMI:
EC2 Keypair location /home/ubuntu/severalnines.pem
Cluster Configurator
In the Cluster Configurator you will have to set (this is the same options you have to enter for any Configurator you use):
- Cloud Provider - select Amazon EC2
- OS : If you use
Amazon AMI select RHEL6
An Ubuntu AMI, then select Ubuntu - If prompted for Use RPM, select Yes (default) -- applies only to RHEL5/RHEL6.
- OS User:
Amazon AMI: enter ec2-user , without single quotes
Ubuntu: enter ubuntu - If you want to change passwords for the mysql database and the cmon (clustercontrol) user, then you should do it now. Please don't use strange characters like " or \ or $ (behavior is unknown/untested)
- System Memory (Data nodes): m1.large
On the next screen "Map nodes to hostnames, setting directories, and specifying EC2 keypair" you will need to add the ip addresses you recorded a couple of steps back.
Leave data directories and WWWROOT to the suggested values.
For the Keypair enter either:
/home/ec2-user/severalnines.pem
or (if using Ubuntu)
/home/ubuntu/severalnines.pem
When you have entered the IP addresses, press "Next".
You have now reached the screen "Configuration Files".
Enter your email address. Tick the box if you want to have emails from us on updates etc (sent about once per month).
Press "Generate Deployment Scripts".
You will get to a new page and the deployment package will be emailed to you.
Deploying
Copy the deployment package to the ClusterControl Server:
johan@goldfish:~$ scp -i severalnines.pem mysqlcluster-71-rpm.tar.gz ec2-user@ec2-72-44-55-2.compute-1.amazonaws.com:
# or
johan@goldfish:~$ scp -i severalnines.pem mysqlcluster-71.tar.gz ubuntu@ec2-72-44-55-2.compute-1.amazonaws.com:
Log in to the Cluster Control server:
johan@goldfish:~$ ssh -i severalnines.pem ec2-user@ec2-72-44-55-2.compute-1.amazonaws.com
# or
johan@goldfish:~$ ssh -i severalnines.pem ubuntu@ec2-72-44-55-2.compute-1.amazonaws.com
chmod 400 severalnines.pem
tar xfvz mysqlcluster-71-rpm.tar.gz
cd mysqlcluster-71-rpm/cluster/scripts/install
./deploy.sh
# answer yes on the questions and off you go!
Comments
56 comments
Thanks for sharing valuable information.
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> Digital Marketing training Course in Chennai</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> digital marketing training institute in Chennai</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> digital marketing training in Chennai</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> digital marketing course in Chennai</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> digital marketing course training in omr</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> digital marketing certification in omr</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> digital marketing course training in velachery</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> digital marketing training center in Chennai</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> digital marketing courses with placement in Chennai</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> digital marketing certification in Chennai</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> digital marketing institute in Chennai</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> digital marketing certification course in Chennai</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> digital marketing course training in Chennai</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> Digital Marketing course in Chennai with placement</a>
<a href="https://www.credosystemz.com/courses/digital-marketing-training/"/> digital marketing courses in Chennai</a>
Digital Classroom or Smart Classroom is a text independent e-learning material for learners, teachers and administrators who are in the field of administration. In this way, optimal delivery of learning experience can be ensured by the instructor
This Blog is really informative!! keep update more about this
jual boiler vertikal
jual burner riello R40
jual control burner simens
jual control burner honeywell
jual hot water boiler
jual pompa ksb lengkap
jual thermal oil murah
making steam boilers
thermal oil heater 400.000 kcal
Distributor boiler
This worked fantastically guys! Thanks for making this tool - I was able to get a MySQL Cluster up and running on Amazon EC2 by following these instructions exactly. It was indeed about 20 minutes, much much less than it would have taken me to set it up manually.
I appreciate you for this blog. More informative, thanks for sharing with us.
<a href="https://www.fitaacademy.in/salesforce-training-chennai/">Salesforce Training in Chennai</a>
<a href="https://www.fita.in/salesforce-training-in-bangalore/">salesforce training in bangalore</a>
<a href="https://www.fita.in/salesforce-training-in-bangalore/">Salesforce Course in Bangalore</a>
<a href="https://www.fita.in/salesforce-training-in-bangalore/">best salesforce training in bangalore</a>
<a href="https://www.fita.in/salesforce-training-in-bangalore">salesforce institute in bangalore</a>
<a href="https://www.fita.in/salesforce-training-in-bangalore/">salesforce developer training in bangalore</a>
<a href="https://www.fita.in/python-training-in-coimbatore/">Python Training in Coimbatore</a>
<a href="https://www.fita.in/angularjs-training-in-bangalore/">Angularjs Training in Bangalore</a>
<a href="https://www.fita.in/salesforce-training-in-bangalore">ssalesforce training in marathahalli</a>
<a href="https://www.fita.in/salesforce-training-in-bangalore/">salesforce institutes in marathahalli</a>
Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
https://www.besanttechnologies.com/training-courses/cloud-computing-training/amazon-web-services-training-institute-in-chennai
Thanks for sharing this information, If you have any query regarding
Kailash Mansarovar Yatra registration please contact us.
It looks like a lot but takes approximately 20 minutes to get a running Cluster.
jual thermal oil heater
Jual thermal oil pengering kayu
jual boiler oil 2 jt kcal
jual burner amp aspalt
jasa cleaning thermal oil
jasa service boiler murah
jual boiler 1 ton
Thanks for sharing the information with us. Keep on updating us regularly.
Possum Removal Melbourne | Termite Control Melbourne
This content is very much informative and very useful.keep posting.
Film Institutes in Chennai.
For further details call us @ 9884412301 | 9600112302
Checkout: https://www.credosystemz.com/uipath-training-in-chennai/
Hi Very Nice Blog I Have Read Your Post It Is Very Informative And Useful Thanks For Posting And Sharing With Us.
Thanks for your efforts in sharing this post with us. This was really awesome. kindly keep continuing the great work.
Spoken English Classes in Chennai | IELTS Coaching in Chennai | English Speaking Classes in Mumbai | IELTS Classes in Mumbai
Read your blog, Excellent informative post on
Installing on Amazon EC2
If you are looking for AWS job with unexpected Pay, then visit below link
AWS Training in Chennai | AWS Online Training
machine learning training in noida
sap sd training in noida
data analytics training in noida
data science training in noida
hadoop training in noida
openstack training in noida
devops training in noida
Good Post! it was so good to read and useful to improve my knowledge as an updated one, keep blogging. After seeing your article I want to say that also a well-written article with some very good information which is very useful for the readers....thanks for sharing it and do share more posts like this.
Python Online Training
Over the years we have employed our skilled professionals to the service of thousands of customers around the world with high-class, magnificent and responsive services to help them enjoy a pleasant user experience as far as gadget performance is concerned. Due its relentless excellence in providing a superlative range of holistic services, we have achieved a cult status in our target market.
New Extender Setup
www.mywifiext.net ex6100
mywifiext.net ex2700
Good job and thanks for sharing such a good blog You’re doing a great job. Keep it up !!
Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
https://www.besanttechnologies.com/training-courses/cloud-computing-training/amazon-web-services-training-institute-in-chennai?utm_source=backlinks&utm_medium=cmt&utm_campaign=coursepage&utm_term=aws&utm_content=gowsi
Atharv skin and dental health hygiene are among the best dental clinic in Bangalore with experienced specialists, we also offers cosmetic dental treatments at Bangalore. Book Today.
Best dentist in Kundalahalli near me
Amazon Web Services (AWS) is the most popular and most widely used Infrastructure as a Service (IaaS) cloud in the world. AWS has four core feature buckets—Compute, Storage & Content Delivery, Databases, and Networking. At a high level, you can control all of these with extensive administrative controls accessible via a secure Web client.For more information visit
https://www.acte.in/amazon-web-services-training-in-chennai
A good blog always comes-up with new and exciting information and while reading. I have felt that this blog really has all those quality that qualify a blog to be a one. If you are looking for Dental Clinic Bundoora Please Visit us: Dentist Bundoora
List of High DA Social Bookmarking Submission Sites to submit your websites and create quality backlinks to improve your website ranking in search engine.
thanks for a detailed article on how to install EC2 clearly .
Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
hadoop admin online training
Really an informative blog...Thanks for sharing an informative article with us
distributor Burner Incinerator
Jual burner incinerator
distributor-burner-weishaupt
Jual Burner weishaupt
jual boiler pengering kayu
jual tangki solar custme
jual tangki mixer aspal amp
jual chimney boiler
jual burner riello G20
distributor sprepart boiler
jual pipa boiler bersertifikat
jual pompa KSB terbaik murah
jual burner riello dua fuel
Jual buner Riello gas LPG
agen pompa KSB jakarta
jual boiler kettel uap
jual thermal oil di jakarta
fabrikasi mesin boiler sawit
jual pompa KSB jerman
jual steam boiler mini
Please sign in to leave a comment.