Posts

Showing posts with the label AWS

How to make Pgpool-II Leader Switchover Seamless on AWS - Updating Route Table

Image
In my previous post I wrote about  how to configure and manage virtual IP for Pgpool-II on AWS.  As I mentioned in my previous post, there are four methods to assign the virtual IP on AWS: Assigning Elastic IP Assigning secondary private IP Updating route table Updating Route53 record This post describes how to use "updating route table" method to configure and manage virtual IP on AWS. Architecture In this post, we create three Pgpool-II instances across multiple Availability Zones within one region. We assume that application is running in the same VPC. The figure below shows the application architecture, with the application instance in a public subnet and the Pgpool-II instances in private subnets.   Prerequisites Before you start, ensure that: You have created a PVC with one public subnet and three private subnets and each private subnet is in a different Availability Zone. You have created four EC2 instances. You have installed Pgpool-II in each Pgpool-II instan...

Configuring and Managing VIP for Pgpool-II on AWS

It is possible to install and configure Pgpool-II in EC2 instances. However, the common ways to assign VIP can't be used in the Cloud. We need to consider alternatives for assigning VIP in the Cloud. This post describes how to configure and manage VIP in AWS. There several ways to configure VIP in AWS: Assigning Elastic IP   Assigning secondary private IP Updating route table  Updating Route53 record   Multi-AZ Support Client Application Pgpool-II Instance Subnet Assigning Elastic IP ○ connect from the internet public Assigning secondary private IP × within VPC private Updating route table ○ within VPC private Updating Route53 record ○ within VPC other VPCs on-premise private   Assigning Elastic IP   Elastic IP is a public IPv4 address, which is reachable from the internet, and it can be associated with an EC2 instance.  The Elastic IP should be associated with leader ...