Buy Percona ServicesBuy Now!

Running PMM Server Using AWS Marketplace

You can run an instance of PMM Server hosted at AWS Marketplace. This method replaces the outdated method where you would have to accessing an AMI (Amazon Machine Image) by using its ID, different for each region.


The home page of PMM in AWS Marketplace. Click the Continue button to start setting up your instance. You can also preselect your region on this screen.

Assuming that you have an AWS (Amazon Web Services) account, locate Percona Monitoring and Management Server in AWS Marketplace.

In the Pricing Information section, select your region and choose an instance type in the table that shows the pricing for the software and infrastructure hosted in the region you have selected. Note that the recommended EC2 instance type is preselected for you.


As soon as you select your region, you can choose the EC2 instance in it and see its price. PMM comes for no cost, you may only need to pay for the infrastructure provided by Amazon.

Click the Continue to Subscribe button to start setting up your instance. There are two options available to you. The 1-Click Launch option is a quick way to make your instance ready. For more control, use the Manual Launch option.


Percona Monitoring and Management is now available from AWS Marketplace

In this chapter

Setting Up a PMM Instance Using the 1-Click Launch Option

With the 1-Click Launch tab selected, make sure that all sections match your preferences. In this demonstration, we use the US East (N. Virginia) region and the VPC (virtual private cloud) named vpc-484bb12f. To reduce cost, you need to choose the region closest to your location.


The exact name of VPC may be different from the example discussed here.

On the 1-Click Launch tab, select your region in the Region section. By default, the region is the same as the one you chose in the Pricing Information section.

Setting up a VPC and an EC2 Instance Type

Depending on your choice of a VPC, some configurations of CPU and RAM may be disabled in the EC2 Instance Type section.

In this demonstration, we select the vpc-aba20dce in the VPC Settings section. Then, we choose m4.large as the EC2 instance type.


Select VPC in the VPC Settings section and then choose an EC2 instance type that suits your planned configuration.

Instead of a VPC (virtual private cloud) you may choose the EC2 Classic (no VPC) option and use a public cloud.

Selecting a subnet, you effectively choose an availability zone in the selected region. We recommend that you choose the availability zone where your RDS is located.

Note that the cost estimation is automatically updated based on your choice.

Limiting Access to the instance: security group and a key pair

In the Security Group section, which acts like a firewall, you may use the preselected option Create new based on seller settings to create a security group with recommended settings. In the Key Pair select an already set up EC2 key pair to limit access to your instance.


Select an already existing key pair (use the EC2 console to create one if necessary)


It is important that the security group allow communication via the following ports: 22, 80, and 443. PMM should also be able to access port 3306 on the RDS that uses the instance.


Select a security group which manages firewall settings.

Applying settings

Scroll up to the top of the page to view your settings. Then, click the Launch with 1 click button to continue and adjust your settings in the EC2 console.


Your instance settings are summarized in a special area. Click the Launch with 1 click button to continue.


The Launch with 1 click button may alternatively be titled as Accept Software Terms & Launch with 1-Click.

Adjusting instance settings in the EC2 Console

Your clicking the Launch with 1 click button, deploys your instance. To continue setting up your instance, run the EC2 console. It is available as a link at the top of the page that opens after you click the Launch with 1 click button.

Your instance appears in the EC2 console in a table that lists all instances available to you. When a new instance is only created, it has no name. Make sure that you give it a name to distinguish from other instances managed via the EC2 console.


The newly created instance selected.

Running the instance

After you add your new instance it will take some time to initialize it. When the AWS console reports that the instance is now in a running state, you many continue with configuration of PMM Server.


When started the next time after rebooting, your instance may acquire another IP address. You may choose to set up an elastic IP to avoid this problem.

See also

Amazon Documentation: Elastic IP Addresses

With your instance selected, open its IP address in a web browser. The IP address appears in the IPv4 Public IP column or as value of the Public IP field at the top of the Properties panel.


The public IP address of the instance

To run the instance, copy and paste its public IP address to the location bar of your browser. In the Percona Monitoring and Management welcome page that opens, enter the instance ID.


Entering the instance ID when installing PMM Server

You can copy the instance ID from the Properties panel of your instance, select the Description tab back in the EC2 console. Click the Copy button next to the Instance ID field. This button appears as soon as you hover the cursor of your mouse over the ID.


Hover the cursor over the instance ID for the Copy button to appear.

Paste the instance in the Instance ID field of the Percona Monitoring and Management welcome page and click Submit.

Click Submit and enter your user name and password in the dialog window that pops up. The PMM Server is now ready and the home page opens.


Create credentials for your instance.

Click Submit and enter your user name and password in the dialog window that pops up. The PMM Server is now ready and the home page opens.


PMM Server home page

You are creating a username and password that will be used for two purposes:

  1. authentication as a user to PMM - this will be the credentials you need in order to log in to PMM.

  2. authentication between PMM Server and PMM Clients - you will re-use these credentials when configuring pmm-client for the first time on a server, for example:

    Run this command as root or by using the sudo command

    $ pmm-admin config --username= --password= --server=


Accessing the instance by using an SSH client.

For instructions about how to access your instances by using an SSH client, see Connecting to Your Linux Instance Using SSH

Make sure to replace the user name ec2-user used in this document with admin.

See also

How to verify that the PMM Server is running properly?
Verifying PMM Server
How to connect a PMM Client to the PMM Server?
Connecting PMM Clients to the PMM Server

Resizing the EBS Volume

Your instance comes with a predefined size which can become a limitation. To make more disk space available to your instance, you need to increase the size of the EBS volume as needed and then reconfigure your instance to use the new size.

The procedure of resizing EBS volumes is described in the Amazon documentation: Modifying the Size, IOPS, or Type of an EBS Volume on Linux.

As soon as the EBS volume is updated, connect to your instance and update it to use the new size:

Run the following commands as root or by using the sudo command

  1. Detect the type of your filesystem: mount | grep '/srv'

  2. In case of XFS reboot instance or run the following commands:

    $ pvresize /dev/xvdb
    $ lvextend -l '100%VG' /dev/DataVG/ThinPool
    $ lvextend -l '80%VG' /dev/DataVG/DataLV
    $ xfs_growfs -d /srv
  3. In case of btrfs, run the following command:

    $ btrfs filesystem resize max /srv

More information in AWS documentation

Elastic IP Addresses
Amazon EC2 Security Groups for Linux Instances
Connecting to Your Linux Instance Using SSH (use admin as the user name)

Running PMM Server Using Amazon Machine Images

Percona provides public Amazon Machine Images (AMI) with PMM Server in all regions where Amazon Web Services (AWS) is available. You can launch an instance using the web console for the corresponding image:

Region String AMI ID
Asia Pacific (Tokyo) ap-northeast-1 ami-0a83f03af403bab50
Asia Pacific (Seoul) ap-northeast-2 ami-035b00cc303628749
Asia Pacific (Mumbai) ap-south-1 ami-0526b4888a6eaf292
Asia Pacific (Singapore) ap-southeast-1 ami-06eb5245e95978eeb
Asia Pacific (Sydney) ap-southeast-2 ami-095a6e197a9e5ff61
Canada (Central) ca-central-1 ami-0e7b3299503423a7d
EU (Frankfurt) eu-central-1 ami-0e4e7908e9304d377
EU (Ireland) eu-west-1 ami-06c38252b36351884
EU (London) eu-west-2 ami-099e46427b4fec067
EU (Paris) eu-west-3 ami-05df06f90786b069d
South America (São Paulo) sa-east-1 ami-042003019d8a49351
US East (N. Virginia) us-east-1 ami-08f8831645d9ee639
US East (Ohio) us-east-2 ami-023c8278e069bf988
US West (N. California) us-west-1 ami-07db71ee07e4c8542
US West (Oregon) us-west-2 ami-00a43b21b282fb676

Running from Command Line

  1. Launch the PMM Server instance using the run-instances command for the corresponding region and image. For example:

    aws ec2 run-instances \
       --image-id ami-30ad0f4d \
       --security-group-ids sg-3b6e5e46 \
       --instance-type t2.micro \
       --subnet-id subnet-4765a930 \
       --region us-east-1 \
       --key-name SSH-KEYNAME


    Providing the public SSH key is optional. Specify it if you want SSH access to PMM Server.

  2. Set a name for the instance using the create-tags command. For example:

    aws ec2 create-tags  \
       --resources i-XXXX-INSTANCE-ID-XXXX \
       --region us-east-1 \
       --tags Key=Name,Value=OWNER_NAME-pmm
  3. Get the IP address for accessing PMM Server from console output using the get-console-output command. For example:

    aws ec2 get-console-output \
       --instance-id i-XXXX-INSTANCE-ID-XXXX \
       --region us-east-1 \
       --output text \
       | grep cloud-init
Visit Percona Store

General Inquiries

For general inquiries about our open source software and database management tools, please send us your question and someone will contact you.