1 Copyright © 2011, Oracle And/Or Its Affiliates. All Rights Reserved. Oracle Solaris Cluster
Total Page:16
File Type:pdf, Size:1020Kb
1 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle Solaris Cluster Gia-Khanh Nguyen Oracle Solaris Cluster Engineering 2 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 3 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle Solaris Cluster 4 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Datacenter Evolution From Traditional Datacenters to Cloud Infrastructure Solaris Solaris Solaris Solaris Solaris Solaris Solaris DDditdSedicated Servers Virt uali zed S yst ems Missi on C riti cal Cl oud s SlSolar is 9 Solaris 10 SlSolari s 11 5 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. 21st Century Cloud Infrastructure Highly Available For All Mission Critical Applications Solaris 11 Solaris 10 Solaris Oracle Oracle Zone Zone Legacy Zone Solaris Enterprise Cluster Oracle Solaris Manager Ops Center Oracle VM SPARC x86 6 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle Solaris Cluster For Mission Critical Clouds Virtual Enterprise Cluster-level Ultimate Clusters High Availability Load Balancing Disaster Recovery • Built-in server, • Instant system • Optimized • Business continuity storage, network failure detection distribution of across unlim ite d virtualization distance • Orchestrated applications load Oracle Solaris Cluster • Multi-tenant policy-based, and priority • One-click, configuration from application- management for automated Web to database specific failover optimized switchover distribution • Secure, isolated • Pre-adapted • One-click, Oracle Solaris fencing and • Soft and hard automated Zone clusters quorum for data resource limits for takeover integrity flexible behavior • Physical and Best HA . • Application fault isolation in zone • Broadest data vitirtua lize d Best Integration. clusters management and environments networking support Oracle Solaris 11 • Failover Zones • Dedicated zone network and data resources 7 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle Solaris Cluster Functions • Monitors health of all cluster components: – Servers, storage, network – OS, virtual machines – Applications • To lera tes fail ures b y exp lo iting har dware redundancy and software algorithms • Recovers cluster infrastructure and applications in in the event of failures • Enables low-impact maintenance 8 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. High Availability Framework Membership • Establishes consistent Heartbeats inclusion of nodes in cluster • Monitors nodes over a • Coordinates reconfiguration private network • Triggers reconfiguration when a node leaves or joins the cluster Cluster Configuration Repository • PidlProvides loca l copy on eac hdh node • Enables automatic updates • Enables nodes to arbitrarily join or leave the cluster 9 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Preserving Data Integrity • Quorum – Prevents partitions (split brain, amnesia) in the cluster 1 1 – Protects against data corruption – Uses a majority voting scheme 1 – 2 node clusters require a quorum device (an external tie-breaker) • Disk Fencing – Used to pr eserv e data in tegri ty – Non cluster nodes are fenced off from updating any shared data 10 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Application Level Management Resource Group Manager • Rich and extensible framework for plugging applications into Oracle Solaris Cluster – Application is wrapped by an RGM resource, supplying methods for controlling the application: Start, Stop, Monitor, Validate (aka agent) – Closely related resources placed in Resource Groups (RG) • Support rich dependencies between Resources and RGs – Facilitates proper startup/shutdown sequencing – Dependencies can have various flavorflavorss such as strong/weak/restart – Works between RG and across different cluster nodes • Oracle Solaris Service Management Facility (SMF) support • Standard agents provided for popular applications and DB 11 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Simple example of an HA web server Apache web server on ZFS Install Apache and set up web pages and scripts # clrt register apache using ZFS file systems in a zpool “webpool” on # clrs create -g websrv-rg –t apache \ shared storage and using the webhost hostname -p Bin_dir=/webpool/install/apache/bin \ -p Resource_dependencies=websrv-hasp-rs \ # clrg create websrv-rg -p Port_list=80/tcp websrv-rs # cllhlrslh create -g websrv-rg \ -h webhost websrv-lh-rs Bring the resource group online # clrt register HAStoragePlus # clrg online websrv-rg # clrs create -t HAStoragePlus -g websrv-rg \ Switchover to the other node -p zpools=webpool websrv-hasp-rs # clrg switch –n 2 websrv-rg 12 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle VM for SPARC Cluster Models Virtualization App App • GtdiGuest domain as HA resource (black box) – Oracle Solaris Cluster Oracle Solaris Oracle Solaris Cluster Cluster running only in control domain Oracle Oracle Oracle Oracle Oracle Oracle Solaris Solaris Solaris Solaris Solaris Solaris • Domain as cluster node Control Domain Domain Domain Control Domain (control, I/O or guest domain) Domain Domain Oracle VM for SPARC Oracle VM for SPARC 13 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. High Availability Designed for Virtualization Oracle Solaris Zones HA Deployments Zone Clusters Ideal for multi-tiered workloads and multi-tenants App Zone App Cluster • Application protection: policy based App HR Cloud App management • Ease of use and security: delegated administration extended to virtual cluster Physical Cluster Zone App Cluster App Failover Zone Finance Cloud Ideal for packaged workloads • Zone level protection: resource ddidependencies managemen tttdt, restart and failover Oracle VM Failover for SPARC Zone • Ease of migration: Support for older Oracle Solaris environments in a zone 14 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Application-specific HA Efficient Availability . Multi-tier Savings . • Multi-tenant clusters • Combine application, web and database tiers • Application-specific failover for virtualized app lica ti on s • Continuous cloud services 15 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Example of Multi-tier consolidation PeopleSoft HCM in Zone Clusters with ZFS SA 7000 # clzc status === Zone Clusters === --- Zone Cluster Status --- Name Node Name Zone HostName Status Zone Status ---- --------- ------------- ------ ----------- appsrv-zc people01-s10 ipseapp1 Online Running people02-s10 ipseapp2 Online Running websrv-zc people01-s10 ipseweb1 Online Running people02-s10 ipseweb2 Online Running dbsrv-zc people01-s10 ipsedb1 Online Running people02-s10 ipsedb2 Online Running 16 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Example of Multi-tier consolidation PeopleSoft HCM in Zone Clusters with ZFS SA 7000 # hostname # clrg list weblh2-rs people01-s10 websrv-lb-rg web-PIA1-rs # clnode list weblh1-rg web-PIA3-rs people01-s10 weblh2-rg web-PIA2-rs people02-s10 websrv1-rg web-PIA6-rs # clrg lis t | wc -l web2bsrv2-rg web-PIA5-rs 0 scalmnt-rg web-PIA4-rs # zlogin websrv-zc # clrs list fs-psftweb-rs # hostname web-lb-rs # clrt list ipseweb1 web-lblh-rs SUNW.LogicalHostname:4 # clnode list weblh1-rs SUNW.SharedAddress:2 ipseweb1 web-admin-rs SUNW.wls:4 ipseweb2 adminlh-rs SUNW.ScalMountPoint:3 17 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Configurations addressing Disaster Recovery Multi-site stretched/campus cluster Multi-site, multiple clusters Distance dependent on network characteristics Unlimited Distance Separation 18 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Shared-storage Campus Cluster Quorum server Room 3 Single Cluster No dis tance lim it Room 1Public Network Room 2 Private IP Network Fiber Link FC/AL Switch FC/AL Switch 50 - 200km 19 Copyright © 2011, Oracle and/or its affiliates. All rights 19 reserved. Replication-based Campus Cluster Quorum server Room 3 Single Cluster No dis tance lim it Room 1Public Network Room 2 Private IP Network Array 1 Array 2 Array-based replication link 50 - 200km 20 Copyright © 2011, Oracle and/or its affiliates. All rights 20 reserved. Geographic Edition – enabled Clusters Public IP network Admin. Client Primary Site subnet 1 subnet 2 Backup Site Optional Heartbeat Network Optional Storage Network Unlimited Distance Separation 21 Copyright © 2011, Oracle and/or its affiliates. All rights 21 reserved. OSCGE Architectural model Layered Extension of Solaris Cluster Built on Solaris Cluster (SPARC, x64) Can be installed/removed with no application downtime MltlitiManages cluster applications and associtdiated rep litilication Builds on same hierarchical concepts with associated admin CLI Partnership of two clusters (phy sical or zone clusters ) Each cluster has one or more nodes Protection Group contains Resource Groups and Resources Resource Group contains application and storage resources Heartbeat