Dec 6, 2010 PostgreSQL European Conference, 2010 - Stuttgart PostgreSQL Clustering with Red Hat Cluster Suite Devrim GÜNDÜZ PostgreSQL Contributor Twitter:

Slides:



Advertisements
Similar presentations
Overview of DVX 9000.
Advertisements

High Availability 24 hours a day, 7 days a week, 365 days a year… Vik Nagjee Product Manager, Core Technologies InterSystems Corporation.
© 2015 Dbvisit Software Limited | dbvisit.com An Introduction to Dbvisit Standby.
Cold Fusion High Availability “Taking It To The Next Level” Presenter: Jason Baker, Digital North Date:
1 Week #1 Objectives Review clients, servers, and Windows network models Differentiate among the editions of Server 2008 Discuss the new Windows Server.
1 © Copyright 2010 EMC Corporation. All rights reserved. EMC RecoverPoint/Cluster Enabler for Microsoft Failover Cluster.
Lesson 1: Configuring Network Load Balancing
1© Copyright 2011 EMC Corporation. All rights reserved. EMC RECOVERPOINT/ CLUSTER ENABLER FOR MICROSOFT FAILOVER CLUSTER.
11 SERVER CLUSTERING Chapter 6. Chapter 6: SERVER CLUSTERING2 OVERVIEW  List the types of server clusters.  Determine which type of cluster to use for.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 8: Network Load Balancing (NLB)
Microsoft Load Balancing and Clustering. Outline Introduction Load balancing Clustering.
Understanding and Managing WebSphere V5
Elad Hayun Agenda What's New in Hyper-V 2012 Storage Improvements Networking Improvements VM Mobility Improvements.
Windows Server MIS 424 Professor Sandvig. Overview Role of servers Performance Requirements Server Hardware Software Windows Server IIS.
OM. Brad Gall Senior Consultant
Bob Thome, Senior Director of Product Management, Oracle SIMPLIFYING YOUR HIGH AVAILABILITY DATABASE.
Module 13: Network Load Balancing Fundamentals. Server Availability and Scalability Overview Windows Network Load Balancing Configuring Windows Network.
Benjamin Lavalley, Sr. Product Marketing Manager Kaseya 2 Upgrade Review.
1 © 2006 SolidWorks Corp. Confidential. Clustering  SQL can be used in “Cluster Pack” –A pack is a group of servers that operate together and share partitioned.
Technology Overview. Agenda What’s New and Better in Windows Server 2003? Why Upgrade to Windows Server 2003 ?  From Windows NT 4.0  From Windows 2000.
Guide to Linux Installation and Administration, 2e 1 Chapter 9 Preparing for Emergencies.
© 2006 Cisco Systems, Inc. All rights reserved.1 Microsoft Network Load Balancing Support Vivek V
INSTALLING MICROSOFT EXCHANGE SERVER 2003 CLUSTERS AND FRONT-END AND BACK ‑ END SERVERS Chapter 4.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
Presentation To. Mission Think Dynamics is in the business of automating the management of data center resources thereby enabling senior IT executives.
Linux Panel Panel Moderator: Sandra Vucinic. Panel Members Michael Brown - Glen Raven, Inc. Mark Farnham - Rightsizing, Inc. Rich Niemiec – TUSC Sandra.
Module 10: Maintaining High-Availability. Overview Introduction to Availability Increasing Availability Using Failover Clustering Standby Servers and.
Mark E. Fuller Senior Principal Instructor Oracle University Oracle Corporation.
SONIC-3: Creating Large Scale Installations & Deployments Andrew S. Neumann Principal Engineer Progress Sonic.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 12: Planning and Implementing Server Availability and Scalability.
(WINDOWS PLATFORM - ITI310 – S15)
High Availability in DB2 Nishant Sinha
Intro to Datazen.
Ashish Prabhu Douglas Utzig High Availability Systems Group Server Technologies Oracle Corporation.
CNAF Database Service Barbara Martelli CNAF-INFN Elisabetta Vilucchi CNAF-INFN Simone Dalla Fina INFN-Padua.
LHC Logging Cluster Nilo Segura IT/DB. Agenda ● Hardware Components ● Software Components ● Transparent Application Failover ● Service definition.
VCS Building Blocks. Topic 1: Cluster Terminology After completing this topic, you will be able to define clustering terminology.
How to setup DSS V6 iSCSI Failover with XenServer using Multipath Software Version: DSS ver up55 Presentation updated: February 2011.
Deploying Highly Available SQL Server in Windows Azure A Presentation and Demonstration by Microsoft Cluster MVP David Bermingham.
Red Hat Enterprise Linux Presenter name Title, Red Hat Date.
vSphere 6 Foundations Exam Training
 systemD  FirewallD  Network manager (NMCLI)  Target CLI (iscsi targets)  GRUB 2 (Booting process)  Network teamnig & bridging.
OSIsoft High Availability PI Replication Colin Breck, PI Server Team Dave Oda, PI SDK Team.
INTRODUCTION TO WEB HOSTING
Network customization
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 12: Planning and Implementing Server Availability and Scalability.
Bentley Systems, Incorporated
HP Operations Orchestration
(ITI310) SESSIONS 8: Network Load Balancing (NLB)
Failover and High Availability
InGenius Connector Enterprise Microsoft Dynamics CRM
High Availability 24 hours a day, 7 days a week, 365 days a year…
High Availability Linux (HA Linux)
Securing the Network Perimeter with ISA 2004
Network Load Balancing
Introduction to Networks
Introduction to Networks
Deploy OpenStack with Ubuntu Autopilot
Introduction of Week 3 Assignment Discussion
DHCP, DNS, Client Connection, Assignment 1 1.3
Oracle Architecture Overview
What’s new in SQL Server 2016 Availability Groups
HC Hyper-V Module GUI Portal VPS Templates Web Console
Tivoli Common Reporting v1.2 Overview
SpiraTest/Plan/Team Deployment Considerations
SYED SAJID WASIM SQL SERVER ALWAYS ON Step by Step.
Scalable Database Services for Physics: Oracle 10g RAC on Linux
Cost Effective Network Storage Solutions
Network customization
Presentation transcript:

Dec 6, 2010 PostgreSQL European Conference, Stuttgart PostgreSQL Clustering with Red Hat Cluster Suite Devrim GÜNDÜZ PostgreSQL Contributor Red Hat Certified Engineer Community: Personal:

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Before we start... Thanks to who involved in this conference.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart...who is this guy? I have been contributing to PostgreSQL over the last 8 years. I'm not a hacker, I work on RPMs and website. I rarely break RPMs, but break website more often. Working as a PostgreSQL DBA right now at markafoni. Live in Istanbul. Have a son.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Agenda Goals Why Red Hat Cluster Suite (RHCS)? Before initializing setup... Choosing right hardware (including network) Setting up RHCS Setting up PostgreSQL Failover, switchover... Postgres-XC Questions?

Dec 6, 2010 PostgreSQL European Conference, Stuttgart

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Agenda Goals Why Red Hat Cluster Suite (RHCS)? Before initializing setup... Choosing right hardware (including network) Setting up RHCS Setting up PostgreSQL Failover, switchover... Postgres-XC Questions?

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Goals Active/passive clustering Having a redundant system Data redundancy Network redundancy Server and power redundancy Maximum uptime Service failover (=PostgreSQL) Data integrity

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Agenda Goals Why Red Hat Cluster Suite (RHCS)? Before initializing setup... Choosing right hardware (including network) Setting up RHCS Setting up PostgreSQL Failover... Postgres-XC Questions?

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Why Red Hat Cluster Suite (RHCS)? Open Source Clustering Solution Developed by Red Hat, with the community Available through (Red Hat Network) RHN, but also available via the CentOS repositories (unsupported by Red Hat, or supported by 3 rd party support companies)

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Why RHCS? RHEL 5 Advanced Platform provides RHCS+GFS. It is the only open source clustering solution that has decent support. Use at least RHEL 5.4. All versions prior to that are broken in various ways. Minimizes downtime

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Why RHCS? Support wide range of hardware Application/Service Failover - Create n- node server clusters for failover of key applications and services Load Balancing - Load balance incoming IP network requests across a farm of servers TGIOS! (Thanks God It is Open Source)

Dec 6, 2010 PostgreSQL European Conference, Stuttgart RHCS Overview Supports up to 16 nodes (RHCS 5). The upper limit is 8 for RHEL 3 and 4. All PostgreSQL nodes can access to the same storage, but they don't use it at the same time. Automatic failover (Development site)

Dec 6, 2010 PostgreSQL European Conference, Stuttgart What else? RHCS avoids cancer. It helps peace in the world. RHCS cannot be used as a replica. If you want to hear about replicas, this is not the right talk. RHCS does not run on Windows. It does not do “multimaster” clustering. Postgres-XC? We will talk about it later.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Agenda Goals Why Red Hat Cluster Suite (RHCS)? Before initializing setup... Choosing right hardware (including network) Setting up RHCS Setting up PostgreSQL Failover,... Postgres-XC Questions?

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Before initializing setup Make sure that you have at least a RHCE or similar around.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Agenda Goals Why Red Hat Cluster Suite (RHCS)? Before initializing setup... Choosing right hardware (including network) Setting up RHCS Setting up PostgreSQL Failover, switchover... Caveats Questions?

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Hardware and software requirements Minimum hardware: An hardware that Red Hat Enterprise Linux can run. Typical hardware : Depends on your needs. See related threads in pgsql-performance mailing list. SAN : Storage is the most important part – Use RAID arrays.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Hardware and software requirements RHCS is built on GFS. GFS is built on LVM. PostgreSQL :-) Each node needs to have 1GB ram (not for PostgreSQL, it is for RHCS) Decent fibre channel switch to storage, decent ethernet switches for internal and external communications.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Choosing the right hardware: Network Multicast traffic must be supported / enabled in network switches. Testing: ping -t 1 -c Cluster services may not work if they don't respond to ICMP echo requests.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Choosing the right hardware: Fencing Fencing: Disconnection of a node from the cluster's shared storage (RHCS docs) It cuts off I/O from share storage to ensure data integrity. System must have a supported fencing device..

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Choosing the right hardware: Fencing Power fencing : Uses a power controller to power off an inoperable node. Fibre Channel switch fencing : Disables the Fibre Channel port that connects storage to an inoperable node. GNBD fencing :Disables an inoperable node's access to a GNBD server. Other fencing :Several other fencing methods that disable I/O or power of an inoperable node, including IBM Bladecenters, PAP, DRAC/MC, HP ILO, IPMI, IBM RSA II, and others.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Design and howtos We need two servers that has been setup identically. Only OS and PostgreSQL will run Same PostgreSQL versions. Using GFS, all data will be mounted from the storage. GFS is not a requirement, but we would better be safe. When node1 goes down, node2 will act as “active” server by announcing specified cluster ip. When node1 comes back, the process is reverted.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Hardware and software requirements Check this list before you purchase the hardware. HP Blade Servers have been proved to be working well with RHCS. Recommended. Make sure that you have updated firmware.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Active/Passive Cluster Overview

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Sharding, multiple nodes

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Agenda Goals Why Red Hat Cluster Suite (RHCS)? Before initializing setup... Choosing right hardware (including network) Setting up RHCS Setting up PostgreSQL Failover Postgres-XC Questions?

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Setting up RHCS Before we start: Do NOT edit contents of cluster.conf manually. If you choose to edit cluster.conf manually, make sure that xml version numbers are identical on each node. If you think that you will screw up things, ask someone else. Be patient. This is not a plug-and-play solution.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Services that needs to start on boot clvmd cman gfs rgmanager PostgreSQL chkconfig is your friend.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart RPM packages Cluster packages must be installed prior to setup. Perl-Crypt-SSLeay package is essential for fencing mechanism to function properly.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Setting up Cluster RHEL 5 provides system-config-cluster (scc), which is not supported in RHEL 6. Use only very recent versions of scc, otherwise you may screw up your cluster. scc helps you versioning your cluster configuration. Make sure that it is the same in all nodes. clusterssh will be your best friend during setup.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Features of Conga (copied from RHEL 6 docs) One Web interface for managing cluster and storage Automated Deployment of Cluster Data and Supporting Packages Easy Integration with Existing Clusters Integration of Cluster Status and Logs

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Conga (RHEL 6) 2 components: luci and ricci Luci: server side tool, communicates with ricci. Ricci: agent tool that runs on cluster members, and communicates with luci. TGIP (Thanks God It's Python!)

Dec 6, 2010 PostgreSQL European Conference, Stuttgart

Dec 6, 2010 PostgreSQL European Conference, Stuttgart

Dec 6, 2010 PostgreSQL European Conference, Stuttgart cluster.conf example Let me run an editor first :)

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Sample resource script #!/bin/sh start() { /etc/cluster/networkstart0 service postgresql-1 start } stop() { service postgresql-1 stop /etc/cluster/networkstop0 }...

Dec 6, 2010 PostgreSQL European Conference, Stuttgart networkstop0 #!/bin/bash cp /etc/cluster/ifcfg-bond0.561:0 \ /etc/sysconfig/network-scripts/ ifdown bond0.561:0 rm -f /etc/sysconfig/network- scripts/ifcfg-bond0.561:0 ifcfg-bond0* file is a regular ifcfg file, which includes cluster ips. Trick: ONBOOT=no

Dec 6, 2010 PostgreSQL European Conference, Stuttgart networkstart0 #!/bin/bash cp /etc/cluster/ifcfg-bond0.561:0 \ /etc/sysconfig/network-scripts/ ifup bond0.561:0 rm -f /etc/sysconfig/network- scripts/ifcfg-bond0.561:0

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Agenda Goals Why Red Hat Cluster Suite (RHCS)? Before initializing setup... Choosing right hardware (including network) Setting up RHCS Setting up PostgreSQL Failover, switchover... Postgres-XC Caveats Questions?

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Setting up PostgreSQL No specific tuning needed. However, if you are using more than one node, you will want to be careful while sharing hardware resources. You will want to use unix_socket_directory parameter, so that each instance will use the same TCP/IP port, so that you'll avoid using workarounds in your application side.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Agenda Goals Why Red Hat Cluster Suite (RHCS)? Before initializing setup... Choosing right hardware (including network) Setting up RHCS Setting up PostgreSQL Failover Postgres-XC Questions?

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Failover RHCS handles failover properly. It detects dead node, and moves service to the next machine, as configured in cluster.conf Once the dead machine is up, service is transferred back to it. ~30 seconds of downtime during this operation.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Agenda Goals Why Red Hat Cluster Suite (RHCS)? Before initializing setup... Choosing right hardware (including network) Setting up RHCS Setting up PostgreSQL Failover Postgres-XC Questions?

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Postgres-XC A new synchronous and transparent clustering solution for PostgreSQL, providing both read and write scalability Can be used with or without RHCS, and it will work more or less like Oracle RAC. Under heavy development They have a talk tomorrow.

Dec 6, 2010 PostgreSQL European Conference, Stuttgart Agenda Goals Why Red Hat Cluster Suite (RHCS)? Before initializing setup... Choosing right hardware (including network) Setting up RHCS Setting up PostgreSQL Failover Postgres-XC Questions?

Dec 6, 2010 PostgreSQL European Conference, Stuttgart PostgreSQL Clustering with Red Hat Cluster Suite Devrim GÜNDÜZ PostgreSQL Contributor Red Hat Certified Engineer Community: Personal: