340 likes | 515 Views
Unity Connection 7.0 Cluster/Redundancy TOI. EDCS – 623130 Ramesh Achuthan Radha Radhakrishnan. Agenda. Overview Deployment Cluster Behavior Troubleshooting Upgrading Future Enhancements. Overview – Active/Active. User Interfaces: Voice calls Web Admin/CPCA IMAP
E N D
Unity Connection 7.0 Cluster/Redundancy TOI • EDCS – 623130 • Ramesh Achuthan • Radha Radhakrishnan
Agenda • Overview • Deployment • Cluster Behavior • Troubleshooting • Upgrading • Future Enhancements
Overview – Active/Active • User Interfaces: • Voice calls • Web Admin/CPCA • IMAP • Load balancing & Failover: • Involve external entities • (DNS, CCM etc.) • PIMG for legacy integration • Roles: • Primary & secondary • SRM manages roles • Runs on top of • CCM Platform Cluster
Some Terminology • CCM Platform Cluster: Publisher and Subscriber • Pub is the first node – fixed at install. • Other nodes are Subs. • UC Roles: Primary and Secondary • The singleton processes run only in the primary server. • Notifier, MTA, SysAgent-tasks and more. • UnityMbxDb writes are done only through primary server. • Certain master files: encrypt key, certificates are managed in the primary. These are replicated to secondary. • In normal operation - primary will be the Pub in the cluster.
User access • TUI/VUI - will access servers transparently. • IMAP/CPCA clients - will access servers transparently. • Admin: • Transparent server access - administration at either server. • Voice ports etc. will need node selection. • Serviceability: • Trace/Alarm settings will be common for both servers. • Service start/stop information will need node selection. • All singleton processes run on the primary server. • Licensing: • Voice ports are server specific – need server specific license. • User licenses are not server specific – can be put in any server. • RTMT will have to access each server explicitly. • Log files will not be replicated.
Installing UC in Cluster • Install the first node – Answer yes to the question “Is it the first node in cluster?” • Administer the first node and get it running • Adding the Second node in the cluster: • Using the Admin GUI, add the secondary node under “System Settings Cluster”. • Install the second node – Answer no to the question “Is it the first node in the cluster?” • Provide the IP/Hostname of the first node. Once the second node comes up it will be in the cluster with the first one.
CCM setup - SCCP Dynamic load balancing and failover with Hunt-pilot, Hunt-list, & Line-Group (CCM 4 and above)
CCM setup - SIP Approaches: • With DNS-SRV • Route-Pattern Sip-Trunk DNS-SRV FQDN • With Route-List (Simpler) • Route-Pattern Route-List Route-Group Sip-Trunk • Uses distribution algorithm in Route-Group • With Sip Gateway DNS-SRV • Route-Pattern Sip-Trunk Sip-GW DNS-SRV FQDN
Other Integrations • PIMG • PIMG pings a primary UC and can redirect calls to secondary when primary fails. • Load balancing is done at PBX. • PIMG failures are handled at PBX.
IMAP & CPCA Clients • Load balancing and failover transparent to users. • DNS – name lookup • Add A-records in DNS • Users need to re-login after failover.
Cluster State displayed: • None – means only one node in the cluster • Normal – means there is more than one node – not failedover • Failedover – Publisher is not the primary at that time • Admin changes made to one server should be visible on the other in few seconds. • Messages left on one server should be available from the other server in few seconds. • TUI/VUI, CPCA, IMAP, & Admin shall not notice any login issues when one of the servers is down. • MWI and other notifications shall continue to work when one of the servers is down.
Manual failover Singletons will be started here.
Manual failback Singletons will be started here.
Manual Deactivate • Deactivating a server stops all critical services and base services in it. • The database replication will continue in the deactivated state. • Only secondary servers can be deactivated. • The Administration and the Serviceability GUI are available in the deactivated state. • This state is used for maintenance purposes, wherein all calls, and web user interactions are directed to the other server. • A deactivated server can be activated back to service (as shown).
Reasons for failover • Failover can be caused by 30 sec heartbeat failure. • Failover can be manually initiated also. • Conditions for auto-failover: • Critical process cannot be started or fails • SRM, ServM, DB, DbEventPublisher, CuCsMgr, CuMixer, Notifier etc. • Too many restarts in some interval • CuCsMgr - allow single restart, but maybe 3 deaths in 5 or 10 min exceeds threshold • Non-critical processes will not cause failover. ServM will restart them on same box
Failover • Upon Failover (when primary fails) - • Any existing calls or IP traffic to primary will likely be lost. • SRM in secondary will detect the failure and update status in DB. • SRM in secondary will instruct ServM to start singleton processes. • Switch/PIMG/DNS will determine failover condition and route incoming call traffic to secondary box. • If using DNS, CPCA/IMAP traffic will be sent to secondary
Two Generals’ Problem(split-brain) • Cause: • Unreliable communication link between primary and secondary • Byzantine failure of SRM • Secondary thinks primary is dead and assumes “acting-primary” role, while primary continues its operation • Issues • DB updates will continue in primary and secondary after failover. • Solution – Split Brain Resolution (SBR) (done automatically)
Troubleshooting – tip 1 • CLI: show cuc cluster status – shows the current status of the cluster. • Member ID 0 means publisher (i.e., first-node). • Exactly one server must be in the primary role. • If both servers are primary, then they are not talking to each other. Check if the server hostnames are correct and if they can communicate.
Tip 2 – Check certain required services • Check that these services are running on both servers: • Server Role Manager, • Conversation Manager and Mixer, • File Sync, • DB Event Publisher • Check that these services are running in the primary server: • Notifier and • Message Transfer Agent
Tip 3: Log files • Check Server Role Manager (SRM) logs for cluster issues. • /var/opt/cisco/connection/log/diag_CuSrm_*.uc • From RTMT select the component “Connection Server Role Manager” to download the SRM log. • Logs are not replicated, so it is required to check them on both servers.
Upgrading a cluster • Upgrade process is very similar to UC 2.x • First upgrade the first node (primary) – do not switchover. • Then upgrade the second node (secondary) – do not switchover • At a convenient time, switchover the first node. • Then switchover second node after the first node switchover is successful.
Site Redundancy – Active/Passive • Differences from A/A • Deployment model: • No load balancing
Multi-server Cluster (N >2) • Current approach implies a single primary to manage singletons and UnityMbxDb updates. • This means 1 primary + N secondary in a N + 1 scenario. • When failover happens, one of the N secondary servers assumes acting-primary role based on some pre-defined criteria.