Top Banner
Postgres Plus Cloud Server Getting Started Guide September 29, 2011
46

Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Sep 21, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server

Getting Started Guide

September 29, 2011

Page 2: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Guide, Version 1.0

by EnterpriseDB Corporation

Copyright © 2011 EnterpriseDB Corporation. All rights reserved.

EnterpriseDB Corporation, 34 Crosby Drive Suite 100, Bedford, MA 01730, USA

T +1 781 357 3390 F +1 978 589 5701 E [email protected] www.enterprisedb.com

Page 3: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Table of Contents

1 Introduction ............................................................................................................. 4

1.1 Typographical Conventions Used in this Guide ................................................ 6

2 Postgres Plus Cloud Server - Overview .................................................................... 7

2.1 The Benefits of using Postgres Plus Cloud Server ............................................ 7

2.2 Architecture Overview ..................................................................................... 9

2.3 Cloud Server Hosting Options ........................................................................ 12

2.3.1 Public Cloud Environment ......................................................................... 12

2.3.2 Private Cloud Environment ........................................................................ 14

2.3.3 Traditional Hardware Installation ............................................................... 15

3 Connecting to Cloud Server in a Public Cloud ....................................................... 16

3.1 Registering a New User on a Public or Private Cloud ..................................... 17

4 Using The Cloud Server Console ........................................................................... 21

4.1 The Dashboard Tab ........................................................................................ 21

4.2 The Servers Tab ............................................................................................. 22

4.3 The Parameters Tab ....................................................................................... 26

4.4 The Backups Tab ........................................................................................... 27

4.5 The User Tab ................................................................................................. 28

5 Creating a Server Instance ..................................................................................... 29

6 Connecting an Application..................................................................................... 33

7 Creating a Replica ................................................................................................. 35

8 Managing Backups and Recovery .......................................................................... 37

9 Customizing Database Parameters ......................................................................... 40

10 Monitoring and Events........................................................................................... 42

10.1 The Monitoring Panel .................................................................................... 42

10.2 The Events Panel ........................................................................................... 43

11 Manual/Automatic Scaling .................................................................................... 44

11.1 Adjusting the Automatic Scaling Thresholds .................................................. 44

11.2 Manually Scaling Up - Adding Memory and Server Instances to a Cloud ....... 45

Page 4: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide

1 Introduction

Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Advanced Server databases in single instances, high-availability clusters, or application

development sandboxes across public and private clouds or traditional data center

hardware deployments. Cloud Server allows service providers and organizations to offer

elastic and highly scalable database-as-a-service (DaaS) environments while freeing

DBAs and application developers from the rigors of setting up and administering modern

and robust database environments.

Cloud Server automatically configures Postgres database clusters with:

Scheduled backups

Streaming replication

High-availability

Fail-over/fail-back

Load balancing

In addition, Cloud Server provides automatic scaling of CPU resources, storage

resources, and cluster replicas when a database cluster reaches user-defined thresholds,

providing around-the-clock responsiveness to unpredictable load demands on your

database infrastructure.

This document will demonstrate how to use the Cloud Server interface successfully in

your cloud-based database management activities:

Postgres Plus Cloud Server Overview - Chapter 2 provides introductory

information about cloud server functionality, hosting options and architecture.

Connecting to a Public Cloud - Chapter 3 walks you through the process of

registering a new user, and connecting to Cloud Server.

Using the Cloud Server Console - Chapter 4 introduces you to the cloud server

user interface, and provides an overview of the functionality offered by the user

interface controls.

Creating a Server Instance - Chapter 5 demonstrates how to create a server

instance.

Connecting an Application - Chapter 6 describes how to locate connection

information for your server nodes.

Creating a Replica - Chapter 7 walks you through the process of scaling up your

database cluster by adding replica nodes.

Page 5: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide

Managing Backups and Recovery - Chapter 8 describes how to take a backup of

the server, and how to use a backup to recover a server cluster or create a

developer sandbox from production data.

Customizing Database Parameters - Chapter 9 demonstrates how to use the

Parameters Tab to create custom parameter groups.

Monitoring and Events - Chapter 10 explains the system information shared on

the Monitoring panel and the activity displayed on the Events panel.

Manual/Automatic Scaling - Chapter 11 discusses how to manually add storage

space to an existing cluster, and how to configure Cloud Server to monitor system

parameters and automatically add memory or storage when system resources run

low.

This document provides an introduction to Postgres Plus Cloud Server and is written to

acquaint you with the process of configuring and using the product's core features; it is

not a comprehensive guide to using Postgres Plus database products. Depending on your

operating environment (public cloud, private cloud, or traditional hardware deployment),

there may be minor differences in Cloud Server features and functions.

This document uses Postgres to mean either the PostgreSQL or Postgres Plus Advanced

Server database. For more information about using Postgres Plus products, please visit

the EnterpriseDB website at:

http://www.enterprisedb.com/documentation

Page 6: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide

1.1 Typographical Conventions Used in this Guide

Certain typographical conventions are used in this manual to clarify the meaning and

usage of various commands, statements, programs, examples, etc. This section provides a

summary of these conventions.

In the following descriptions a term refers to any word or group of words that are

language keywords, user-supplied values, literals, etc. A term’s exact meaning depends

upon the context in which it is used.

Italic font introduces a new term, typically, in the sentence that defines it for the

first time.

Fixed-width (mono-spaced) font is used for terms that must be given

literally such as SQL commands, specific table and column names used in the

examples, programming language keywords, etc. For example, SELECT * FROM emp;

Italic fixed-width font is used for terms for which the user must

substitute values in actual usage. For example, DELETE FROM table_name;

A vertical pipe | denotes a choice between the terms on either side of the pipe. A

vertical pipe is used to separate two or more alternative terms within square

brackets (optional choices) or braces (one mandatory choice).

Square brackets [ ] denote that one or none of the enclosed term(s) may be

substituted. For example, [ a | b ], means choose one of “a” or “b” or neither

of the two.

Braces {} denote that exactly one of the enclosed alternatives must be specified.

For example, { a | b }, means exactly one of “a” or “b” must be specified.

Ellipses ... denote that the proceeding term may be repeated. For example, [ a |

b ] ... means that you may have the sequence, “b a a b a”.

Page 7: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 7

2 Postgres Plus Cloud Server - Overview

Postgres Plus Cloud Server simplifies the process of provisioning robust Postgres

deployments, while taking advantage of the benefits of cloud computing. When used

with Postgres Plus Advanced Server, Cloud Server provides an Oracle-compatible DaaS,

offering dramatic cost savings and competitive advantages.

2.1 The Benefits of using Postgres Plus Cloud Server

Postgres Plus Cloud Server provides the following functionality in public clouds, private

clouds and for in-house data center installations:

PostgreSQL database. Cloud Server provides enterprise-class database features

and performance based on a mature and proven platform.

Transparent/elastic scalability. Cloud Server allows you to add storage

capacity, increase compute power, and scale out to support more users online

without interrupting business operations.

Automatic Load Balancing. Cloud Server implements automatic load

balancing, increasing overall performance by distributing read performance across

multiple nodes.

Automatic Failover. Cloud Server supports high-availability replica servers, in

the event of primary database failure to ensure continued operations.

Failback. Cloud Server allows you to easily revert to the original primary server

when in comes becomes available.

Web-based interface. Cloud Server implements point-and-click cluster

management from start to finish using your favorite web browsers.

Online backup and point-in-time recovery. Cloud Server provides full

protection of data in the cloud, and protects against data mishaps.

Database Cloning. Cloud Server allows you to quickly and easily create

developer 'sandboxes' based on real production data.

Supports public cloud, private cloud, and in-house data center installations. Cloud Server allows you select the environment that is most cost effective and

convenient for your organization.

Page 8: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 8

Cost-effective Oracle Compatibility. Using an Oracle-compatible PostgreSQL

database is a cost-effective way to move Oracle applications to a public or private

cloud server.

Page 9: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 9

2.2 Architecture Overview

Postgres Plus Cloud Server's management console is designed to help you easily create

and manage high-availability database server clusters from a web browser.

Traditionally, the expression cluster refers to a single instance of Postgres managing multiple databases; a Cloud Server database server cluster is a collection of high-availability Postgres server instances that

reside in a cloud or on a traditional network.

When you create a new cluster (a group of replicated database servers), Postgres Plus

Cloud Server initializes one or more cloud server instances (virtual machines) according

to your specifications. Cloud Server uses Postgres streaming replication to synchronize

replicas in the cluster, and pgPool-II to implement load balancing among all active

instances.

The primary server node contains a host operating system (CentOS 6) with a running

instance of Postgres, along with a load balancer. When load balancing is utilized, the

server automatically routes any database modifications to the primary node; any

modifications to the primary node are subsequently propagated to each replica using

Postgres streaming replication.

Figure 2.1 - Cloud Server performs automatic load balancing.

Page 10: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 10

Cloud Server installs Postgres on each replica node in a read-only role that automatically

duplicates all data found on the master instance and all changes made to that data.

Replicas provide balanced user support as needed - if any instance in the cluster goes

offline, the server load is automatically re-balanced among the remaining servers (see

Figure 2.1).

Figure 2.2 - Cloud Server provides automatic failover and load balancing.

In the event of a failure of the primary node, a secondary node can seamlessly assume the

role of primary node without a loss of processing capabilities. While the secondary node

is standing by, it is a read-only resource, allowing the secondary server's CPU to be

utilized for load balancing of client queries without a risk of compromising data integrity

(see Figure 2.2).

Postgres Plus Cloud Server automatically archives data at regular intervals; you can

specify a convenient backup window and how many backups to retain when creating a

database cluster. Cloud Server also offers backup on demand - simply click the Backup

icon to save a point-in-time copy of the instance. Automatic backups are retained

according to your specifications; on-demand backups are retained until you delete them.

Page 11: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 11

Each backup is a complete copy of the database cluster. You can use a backup to restore

a database cluster, or clone an existing cluster by restoring a backup into a new cluster.

Postgres Plus Cloud Server makes it easy to scale a database cluster. To increase the

capacity, performance or reliability of a cluster, you can add replica servers or increase

the amount of storage available to each node on a cluster (or both). You can also change

the characteristics of the virtual hardware by creating a new cluster (with a different

server class) and restoring a point-in-time backup into that cluster.

Page 12: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 12

2.3 Cloud Server Hosting Options

You can use Postgres Plus Cloud Server on an Amazon EC2 public cloud, a Eucalyptus

private cloud or traditional hardware installation. Please Note: the Cloud Server Private

Beta release is available in a public cloud only.

2.3.1 Public Cloud Environment

A public cloud (shown in Figure 2.3) is a collection of virtual machines hosted by a paid

provider such as Amazon. The virtual machine runs a separate copy of an operating

system and an installation of Postgres.

Figure 2.3 - Using Cloud Server in a Public Cloud.

Page 13: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 13

You can choose different combinations of CPU speed, RAM, and disk space to suit your

needs when requisitioning a cloud server; Postgres Plus Cloud Server makes it easy to

scale up to more capable cloud servers or scale down as your requirements change.

You can use the pg_dump utility to migrate an existing Postgres database (schema, data,

and associated database objects) into a public cloud. The pg_dump utility creates a

complete backup of your data in the form of a single file that contains the commands

needed to create and populate your existing database. After creating the archive with the

pg_dump utility, use EDB-PSQL to replay the SQL commands found in the archive,

directing the output into the primary cloud server. For detailed information about using

the pg_dump utility, see the PostgreSQL documentation at:

http://www.enterprisedb.com/docs/en/9.0/pg/app-pgdump.html

Page 14: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 14

2.3.2 Private Cloud Environment

A private cloud is similar in architecture to a public cloud, but a private cloud is hosted

on hardware that your organization owns and manages (instead of hardware supplied by a

public cloud provider).

Figure 2.4 - Using Cloud Server in a Private Cloud.

A private cloud is a collection of virtual machines (see Figure 2.4); like a public cloud,

you can adjust the resources assigned to each cloud server and add new virtual machines

(and resources) as required. The underlying private cloud implementation for Postgres

Plus Cloud Server is handled by Eucalyptus.

Page 15: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 15

2.3.3 Traditional Hardware Installation

With a network of one or more physical and virtual servers, you can take advantage of

the easy deployment, setup, replication, backup and fail-over features offered by private

and public clouds without virtualization (see Figure 2.5).

Figure 2.5 - Deploying Cloud Server on Traditional Hardware.

Page 16: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 16

3 Connecting to Cloud Server in a Public Cloud

When deployed in a public cloud, configuration and setup of the Postgres Plus Cloud

Server is very simple. The first time that you use the Cloud Server, you must:

1. Open a web browser and navigate to the URL provided by EnterpriseDB. The

URL will take the form:

http://ec2_public_dns_address:8080/PCSConsole

Where ec2_public_dns_address is the public address of the Cloud Server.

The Cloud Server management console currently supports the following

browsers:

Chrome

Firefox

Internet Explorer

Opera

Safari

2. Register the cloud server user.

3. Login to the cloud server management console.

4. Create a Postgres Plus server cluster.

After creating a server cluster, you can connect to that cluster with a PostgreSQL client

application such as EDB-PSQL or Postgres Enterprise Manager. For more information

about connecting to the server, see Chapter 6, Connecting an Application.

Page 17: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 17

3.1 Registering a New User on a Public or Private Cloud

Navigate to the address provided by EnterpriseDB, to access the Cloud Server

Login/Register dialog shown in Figure 3.1.

Figure 3.1 - The Cloud Server Login dialog.

The first time you connect with the Cloud Server, you must Register user information

and specify a password; with subsequent visits, you can use the information specified

during the initial registration process to simply Login.

To register a new user, navigate to the web address of your cloud server, and click the

Register button. The New User Registration dialog opens (shown in Figure 3.2).

Page 18: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 18

Figure 3.2 - The New User Registration dialog.

Enter user information in the User Details box located on the Step 1 tab:

Enter the user's first and last names in the Firstname and Lastname fields.

Enter a password for the user, and confirm the password in the Password and

Verify Password fields.

Provide an email address for the user in the Email field; please note that the

email address is used as a Login identity for the user.

Use the drop-down listbox in the Cloud Provider field to select the host on

which the cloud will reside.

When you've completed Step 1, click Next to access the Step 2 tab.

If you are using Cloud Server hosted on an Amazon EC2 cloud, the Step 2 dialog opens

as shown in Figure 3.3.

Page 19: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 19

Figure 3.3 - Registering a user on an Amazon EC2 cloud.

Use the Step 2 dialog to provide connection information for your Amazon EC2 cloud.

Enter your Access Key Id in the Access Key Id field.

Enter your Secret Key in the Secret Key field.

Click the Step 1 tab or the Previous button to review or edit the information on the

prior tab. When you've completed the fields on the New User Registration dialog,

click Finish.

After registering your user identity and connection information, you are ready to use the

Login/Register dialog (shown in Figure 3.4) to connect to the cloud server.

Figure 3.4 - The Login/Register dialog.

Page 20: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 20

Enter the registered email address in the Username field, and the associated password in

the Password field, and click Login to connect to the Cloud Server management

console (shown in Figure 3.5).

Figure 3.5 - The Dashboard tab of the Cloud Server management console.

Page 21: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 21

4 Using The Cloud Server Console

To access the Cloud Server management console, simply open a web browser, and

navigate to the address provided by EnterpriseDB. Provide Login information, and the

management console opens to the Dashboard tab.

4.1 The Dashboard Tab

The Dashboard tab (see Figure 4.1) provides an overview of the service status,

resources, useful information links and a quick start Launch DB Instance button.

Figure 4.1 - The Dashboard tab.

Use the Launch DB Instance button located in the Getting Started panel to create a

new instance of a Postgres Plus server.

The Resources panel contains an overview of the activity shown on the other tabs of

the Cloud Server management console; click a link to navigate to the listed resource. For

example, click the Events link to navigate to the Servers tab to review the event logs.

Page 22: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 22

The Service Status panel contains a status report from the cloud provider (ie.

Amazon EC2) that will alert you to any regional outages or ongoing maintenance.

Navigate through the links displayed in the Related Links panel to view helpful

information about using the Cloud Server

4.2 The Servers Tab

Use the Servers tab (shown in Figure 4.2) to create, monitor and manage active

Postgres servers that reside in the cloud.

Figure 4.2 - The Servers tab.

Status indicators on the Servers tab provide quick visual feedback about the status of

active servers that reside in the cloud:

A green checkmark indicates that an object is healthy.

A yellow alert symbol calls attention to an object that requires processing.

A red error symbol signifies that an object is not available.

A busy-indicator signals that the cluster creation has not completed.

Page 23: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 23

Columns in the top panel of the Servers tab contain information about the currently

active server clusters that reside within the cloud. Click on a column name to sort the

contents of the column; click a second time to reverse the sort-order.

Use the icons along the left side of the Servers tab to create new server instances or

manage existing server instances:

Use the Add Server icon to create a new instance of a Postgres server in the

cloud.

Use the Scale Up icon to access the Scale Up dialog to create a replica of the

current server instance or add additional memory to the current server.

Cloud Server's Scale Down functionality is not yet implemented.

Use the Backup icon to take a backup of the entire cluster (a single backup of

the cluster data, and a backup of the cluster configuration).

Use the Recover icon to open a dialog that allows you to restore a backup,

reverting the cloud to its condition at the time that the backup was taken. When you

restore from the backup, Cloud Server re-creates the original configuration and fills

the cluster with the data you had stored in the database.

When you restore from a backup, the server configuration will match the original

configuration, but the server addresses will change.

You can also use the Recover feature to create new developer sandbox environments

based on backups of production data.

Use the Delete Server icon to delete the currently selected cluster. A popup

dialog will ask you to confirm your decision to terminate a cluster; once terminated, a

cluster may only be restored from a backup.

When you terminate an active server, backups are not deleted. Backups (including

user data) are retained until they are intentionally selected and deleted.

Please note: any custom module added to the cloud server instance that does not

reside in the PGDATA directory is not backed up, and will be lost when the server is

terminated.

Page 24: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 24

You can also access server management options by right clicking on a server name, and

selecting an option from the context menu (shown in Figure 4.3).

Figure 4.3 - Right click on a server name to access management options.

The lower panel of the Servers tab displays information about the selected server and

the session usage. Three navigation bars control the display:

Select the Details bar to view information about the state of the selected

cluster.

Select the Monitoring bar to view usage statistics.

Select the Events bar to review event logs for the Cloud Server.

Page 25: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 25

The Details panel

Click the Details navigation bar to open the Details panel (shown in Figure 4.4).

Figure 4.4 - The Details panel on the Servers tab.

The left pane of the Details panel displays information about the currently highlighted

cluster, and provides controls that allow you to specify auto-scaling thresholds for storage

and CPU resources.

The right pane of the Details panel contains a status overview and connection

information for the selected cluster. If you have created replicas, the secondary server

nodes are listed below the primary node in the tree control; expand the tree control to

view the status of the replication nodes.

Page 26: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 26

4.3 The Parameters Tab

Use the Parameters tab (shown in Figure 4.5) to define and manage parameter groups.

Figure 4.5 - The Parameters tab.

A parameter group is a named set of parameters that you can use when creating clusters;

when applied, a parameter group will override the default parameters specified in the

postgresql.conf file.

Page 27: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 27

4.4 The Backups Tab

Use the Backups tab (shown in Figure 4.6) to manage cluster backups; the tab displays a

list of the current backups.

Figure 4.6 - The Backups tab of the Cloud Server console.

A backup captures and stores the status and condition of a cluster at a specific point-in-

time. Use the icons on the left side of the Backups tab to restore or delete backups.

Highlight a backup in the list, and click the Recover Backup icon to open a

dialog that allows you to restore a cluster from the selected backup. Specify a

name for the cluster, and click the Recover button to continue. A popup

confirms that the cluster is being restored; close the popup and navigate to the

Servers tab to monitor the restoration process.

Highlight a backup in the list and click the Delete Backup icon to delete

the selected backup. A popup will ask you to confirm that you wish to delete the

backup before the backup is actually deleted.

Page 28: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 28

4.5 The User Tab

Select the User tab to view information about the current user (as shown in Figure 4.7).

Figure 4.7 - The User tab of the Cloud Server console.

Click the Change Password button to open a dialog that allows you to change the user

password for the current user.

Page 29: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 29

5 Creating a Server Instance

Before you can connect to Postgres from a client application, you must create a server

cluster. Use the Launch DB Instance button (located in the upper left panel of the

Dashboard Tab) or click the Add Server button on the Servers tab to open the

Create a New Server Cluster dialog, shown in Figure 5.1.

Figure 5.1 - Specify information about the new cluster on the Step 1 tab.

Use fields on the Create a New Server Cluster dialog to specify information about

the new cluster:

Use the drop-down listbox in the Number of nodes field to specify the number

of server nodes that you wish to create. The name specified in the Cluster

Name field will apply to the primary node; each additional node will act as a

replication server for the primary node.

Use the drop-down listbox in the Server Class field to select the size of the

host server instance on which the cluster will reside.

Use the Storage GB field to specify the initial size of the data space (in

Gigabytes).

Page 30: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 30

Specify a name for the primary node of the new server cluster in the Cluster

Name field.

Enter the name of the cluster owner in the Master User field.

Enter the password associated with the name in the Master Password field.

Specify the name of the default database for the server node in the Db Name field.

Click the Next button to continue to the Step 2 tab (shown in Figure 5.2).

Figure 5.2 - Specify backup information on the Step 2 tab.

Use the fields on the Step 2 tab to specify additional database information:

Use the # of Backups to retain field to specify the number of server

backups stored. When the specified number of server backups is reached, Cloud

Server will delete the oldest backup to make room for a new backup.

Use the Backup Window field to specify a time that it is convenient to backup the

server (you may wish to schedule backups to occur when the CPU load is the

lightest).

Page 31: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 31

Use the Previous button or select a specific tab to return to a completed tab to review or

update information; when you have completed the Create a New Server dialog, click

Launch to create the database cluster.

Figure 5.3 - A popup confirms that the new cluster is being created.

A popup dialog confirms that the PostgreSQL server is creating a new cluster (see Figure

5.3); click the X in the upper-right corner of the popup to close the popup.

Navigate to the Servers tab of the Cloud Server console to monitor the creation of the

server instance.

By default, a database cluster assumes the default parameters distributed with either

PostgreSQL or Postgres Plus Advanced Server. You can use Cloud Server to create one

or more parameter groups that contain customized parameter configurations that, when

applied to a cluster will override the default parameters specified in the

postgresql.conf file.

Selecting a Server Class for your Public Cloud

When creating a new cluster, you must specify a server class. The server class

determines the size and type of the instance on which the cluster will be stored and used.

Cloud Server's flexibility and scalability allow you to save money by adjusting the server

class as your resource demands change; you can add or change system resources as you

need them.

Page 32: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 32

You can start with a t1.micro instance to reduce development costs, and easily

upgrade to a more capable instance as your performance requirements dictate.

If you find that your application is CPU bound, you may want to upgrade to a

high-CPU instance such as an m1.large instance or a m1.xlarge instance.

High-memory instances such as m2.xlarge, m2.2xlarge and m2.4xlarge are

well suited for databases accessed by high throughput applications that require a

high I/O rate.

A c1.xlarge instance offers more CPU performance, and is well suited for

applications that require a high CPU rate.

Page 33: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 33

6 Connecting an Application

Connecting to a Postgres instance that resides in the cloud is no different than connecting

to an instance that resides on traditional hardware. When you initially connect to the

Postgres database, you must authenticate yourself with the server, using the role defined

when the server cluster was created.

Use the authentication information (Master User and Master Password) provided on

the Create a New Server Cluster dialog to establish the initial connection as the

database superuser, using a client application (such as EDB-PSQL or Postgres Enterprise

Manager). Please note that connecting with this identity grants you superuser privileges

on the server; you should not share this connection information with un-trusted users.

After connecting as the database superuser, you should create lesser-privileged user roles

with which non-administrative users (and end-user applications) will connect. All client

applications should connect using the address and port information provided on the

Details panel (shown in Figure 6.1) of the Servers tab.

Figure 6.1 - The Details panel on the Servers tab.

If you have defined a replicated server, client applications should connect to the primary

server. Replica server nodes are listed below the primary node in the tree view.

The DNSNAME column displays the address of the node; a connecting client should

use this address when connecting to a specific server.

The LBPORT column displays the port number to which a client application

should connect to utilize load balancing.

Page 34: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 34

Since only the primary node of a replicated server operates in read/write mode, all

write queries will be directed to the primary node, while any read-only queries

may be directed to a secondary node.

The DBPORT column displays the port number on which the Postgres instance

listens. In most circumstances, a client application should connect to the LBPORT

instead of the DBPORT to take advantage of load balancing.

Page 35: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 35

7 Creating a Replica

Adding additional replicas to your database cluster increases the CPU power available to

connecting client applications by increasing the number of client connections that can be

serviced. Each additional replica automatically assumes a share of the read-only

workload from incoming queries.

To add a replica to a cluster, open the Servers tab, and highlight the server that you

wish to scale up. Click the Scale Up icon on the Servers tab to open the Scale Up

dialog (shown in Figure 7.1).

Figure 7.1 - The Scale Up dialog.

Use the drop-down listboxes on the Step 1 tab to specify:

The number of replication servers that will be added to monitor the selected

server.

The amount of memory (in Gigabytes) that will be added to the selected server.

When you've completed the dialog, click Next to continue to the Step 2 tab (shown in

Figure 7.2).

Page 36: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 36

Figure 7.2 - The Scale Up dialog.

Use the Scale Up button on the Step 2 tab to confirm that you wish to add the

specified number of replication servers, or the specified amount of memory to the cloud.

Click the Previous button to return to the Step 1 tab to adjust the specified amounts,

or click the X in the upper corner of the dialog to exit without saving modifications to the

server.

Page 37: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 37

8 Managing Backups and Recovery

When you take a backup, Cloud Server makes a copy of the contents of the PostgreSQL

PGDATA directory. The PGDATA directory contains the data and the meta-data required to

construct an exact copy of the Postgres data cluster (the data and the database objects that

reside within that Postgres instance). You can use the backup to restore a server, or to

create a developer sandbox that contains a copy of system data.

To capture a backup of a cluster, navigate to the Server tab, highlight a server

name in the server list, and click the Backup icon. Cloud Server asks you to confirm that

you wish to backup the selected server (see Figure 8.1).

Figure 8.2 - The Backups tab of the Cloud Server console.

Click the Backup button to instruct Cloud Server to capture a backup of the selected

server. While Cloud Server performs a backup, the PENDING column of the Servers

tab will display the message, Backup in progress.

Navigate to the Backups tab (shown in Figure 8.2) to review a list of stored cluster

backups.

Page 38: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 38

Figure 8.2 - The Backups tab of the Cloud Server console.

A backup captures and stores the status and condition of a cluster at a specific point-in-

time.

The ID column contains a unique backup identifier.

The CAPACITY column contains the storage capacity of the cluster.

The CLUSTER column identifies the name of the cluster preserved in the backup.

The STARTED column displays the date and time that the backup was initiated.

Use the icons on the left side of the Backups tab to restore or delete the selected backup.

Highlight a backup in the list, and click the Recover Backup icon to open a

dialog that allows you to restore a cluster from the selected backup. Specify a

name for the cluster, and click the Recover button to continue. A popup

confirms that the cluster is being restored; close the popup and navigate to the

Servers tab to monitor the restoration process.

Please Note: when you restore a backup, the server configuration will match the

original configuration, but the server addresses will change.

Page 39: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 39

Highlight a backup in the list and click the Delete Backup icon to delete

the selected backup. A popup will ask you to confirm that you wish to delete the

specified backup before it is actually deleted.

Page 40: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 40

9 Customizing Database Parameters

Use the Parameters tab (shown in Figure 9.1) to define and manage parameter groups.

Figure 9.1 - The Parameters tab.

A parameter group is a named set of parameters that you can use when creating clusters;

when applied, a parameter group will override the default parameters specified in the

postgresql.conf file.

Adding or Deleting a Parameter Group

Click the Add Parameter Group button to access the dialog shown in Figure 9.2 and

create a new parameter group.

Figure 9.2 - The Add Parameter Group dialog.

When the Add Parameter Group dialog opens, enter the name of the parameter group,

and click OK. A popup will confirm that the parameter group has been successfully

created.

To delete a parameter group, select the name of the parameter group from the drop-down

listbox in the upper left corner of the tab, and click the Delete Parameter Group

Page 41: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 41

button. When the Delete Selected ParamGroup popup (shown in Figure 9.3) opens,

click OK to confirm that you wish to delete the parameter group.

Figure 9.3 - The Delete Selected ParamGroup popup.

Editing the Parameters within a Parameter Group

To define parameters within the group, select the parameter group name from the drop-

down listbox in the upper left hand corner of the tab, and click the Add button.

Figure 9.4 - Defining a parameter value.

When the dialog shown in Figure 9.4 opens, enter a parameter name in the ID field, and a

value for the parameter in the Parameter Value field, and click OK. A popup signals

that the parameter has been successfully defined.

To delete a parameter, highlight the parameter in the parameter list, and click the Delete

button; when the popup asks you to confirm that you wish to delete the parameter, click

the OK button.

When you've finished making changes to the selected parameter group, click the Save

button to make the changes persistent.

Page 42: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 42

10 Monitoring and Events

The panels located at the bottom of the Servers tab provide easy access to useful

statistical usage and server activity information. The information displayed on the

Monitoring panel is specific to the highlighted server, while the server activity

displayed on the Events panel displays information about all activity on the nodes

within the cloud.

Click the panel name on the navigation bar to access either the Monitoring panel or the

Events panel.

10.1 The Monitoring Panel

The Monitoring panel displays graphs that allow you to review statistical usage

information about the amount of storage and the CPU load for the selected cluster (see

Figure 10.1).

Figure 10.1 - The Monitoring panel displays usage information.

The Data Space chart displays the amount of allocated data space used by the selected

cluster. The red line denotes the threshold specified by the auto-scaling slider on the

Details panel (the threshold at which the instance will be scaled-up). The blue line

indicates the amount of the data space that is currently in use.

The CPU Load chart displays the processing load placed on the CPU through use of the

selected cluster. The red line denotes the threshold specified for the CPU Load by the

auto-scaling slider on the Details panel. The blue line charts the historical CPU usage

for the instance.

Page 43: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 43

10.2 The Events Panel

The Events panel (shown in Figure 10.2) displays an event log that contains a history of

the connected user's activity in the Cloud Server.

Figure 10.2 - The Events panel displays cloud server activity.

Click a column heading to sort the logged activity by the selected column; click again to

reverse the sort order.

Page 44: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 44

11 Manual/Automatic Scaling

When auto-scaling in enabled, Cloud Server monitors the server resources in use, and

automatically adds additional resources when usage exceeds a specified percent (by

default, 90%). Controls on the Details panel of the Servers tab makes it easy to

adjust the threshold at which Cloud Server automatically scales up resources.

Adding additional replicas to your database cluster increases the CPU power available to

connecting client applications; each additional replica automatically assumes a share of

the read-only workload from incoming queries. Cloud Server's Scale Up dialog makes

it simple to create additional replicas to a server if you find that server resources are

strained. The Scale Up dialog also allows you to increase the amount of storage

available to a cluster with three simple clicks.

11.1 Adjusting the Automatic Scaling Thresholds

Use the Auto-Scaling controls on the Details panel to adjust the threshold at which

Cloud Server automatically scales up server resources. To access the Details panel,

navigate to the Servers tab, and highlight the name of a listed server. Click the

Details navigation bar on the Servers tab to open the Details panel (shown in

Figure 11.1).

Figure 11.1 - The Details panel on the Servers tab.

Auto-scaling is not enabled by default; to enable auto-scaling, check the Auto-Scaling

checkbox. When auto-scaling is enabled, Cloud Server will automatically increase your

data space by 50% when the disk usage exceeds the value specified by the Data Space

Threshold slider.

Page 45: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 45

11.2 Manually Scaling Up - Adding Memory and Server Instances to a Cloud

The options on the Scale Up dialog allow you to manually scale up the number of

replica nodes or memory available to a cluster. To add a replica or memory to a cluster,

navigate to the Servers tab, and highlight the server that you wish to scale up. Click the

Scale Up icon on the left side of the Servers tab to open the Scale Up dialog (shown

in Figure 11.2).

Figure 11.2 - The Scale Up dialog.

Use the drop-down listboxes on the Step 1 tab to specify:

The number of replication servers that you wish to add to the selected server.

The amount of memory (in Gigabytes) that you wish to add to the selected server.

When you've completed the dialog, click Next to continue to the Step 2 tab (shown in

Figure 11.3).

Page 46: Postgres Plus Cloud Server Getting Started Guideget.enterprisedb.com/.../Postgres_Plus_Cloud_Server...Postgres Plus Cloud Server automatically provisions PostgreSQL or Postgres Plus

Postgres Plus Cloud Server Getting Started Guide 46

Figure 11.3 - The Scale Up dialog.

Use the Scale Up button on the Step 2 tab to confirm that you wish to add the

specified number of replication servers, or the specified amount of memory to the cloud.

Click the Previous button to return to the Step 1 tab to adjust the specified amounts,

or click the X in the upper corner of the dialog to exit without saving modifications to the

server.