Setting up a Highly-Available Spok Mobile 5.2 Environment
Both the Care Connect Server and the Spok Mobile Server support active-passive, fault-tolerant load balancer configurations on both the web server application tier and the database storage tier. When setting up a highly-available Care Connect configuration, perform the steps below to make the web routing and database connection fail over to a secondary server. Note that in all configurations, the Spok Mobile and Care Connect servers all point to the same database instance.
The following diagram shows a fully-secure and redundant Care Connect 1.9 deployment running in an active-passive configuration.
Opening Ports
All the ports needed for a fault-tolerant Care Connect environment are opened during pre-implementation, along with any other ports that must be opened. Some of the ports listed below are optional, depending on what components are enabled. For more details, see Care Connect Port Requirements.
- 443 - HTTPS
- 2001 - Spok Mobile Server Connection to Spok Mobile Hosted
- 8081 - Spok Mobile Adapter
- 8091 - Spok Mobile Services (Secure)
- 8883 - Spok Notification Framework customers only
- 20000 - Spok Mobile Contact Center Gateway Port
- 20001 - Spok Mobile Secondary Contact Center Gateway
Ensure that Proxy Servers are Available
If a customer wants a highly-available configuration, the customer will need to supply properly-configured proxy servers/load balancers. Spok recommends one proxy server/load balancer for the Platform servers, and one proxy server/load balancer for the Spok Mobile servers. High availability in the web tier supports Spok's service. When the primary server goes down, the load balancer performs a retry against the secondary server with little to no interruption in service.
F5 Load Balancer Recommendations for Spok Mobile
Configure a Shared Location for Assets
The Spok Mobile server uses the asset directory to store any media images or documents that are sent as attachments in Spok Mobile messages. Customers are responsible for retention policies for their own asset directory. Spok recommends storing the asset directory on the Private LAN for security purposes.
The configuration shown below is required for both fault-tolerant and non-fault tolerant environments. For more information, see CCS Installer 2.0 Prerequisites.
Implement the Servers
The servers must be installed and configured to point to the proxy server or load balancer server.
Implement the Care Connect Servers
For complete installation and configuration instructions, see Implementing the Care Connect 1.9 Server.
Implement the Care Connect Platform on the Primary Care Connect Server
The primary Care Connect platform server acts as a master server in a load-balanced, fault-tolerant environment. It is the "brain" of the Care Connect Suite, and talks to all of the other components. The platform server hosts all of the configurations and communication end points. To implement the Care Connect Platform on the primary Care Connect Server, do the following:
- In the CCS Installer's Custom Setup dialog, select Platform, DPE, and Web for installation.
- Use the customer's primary database for the database connection.
- Set Configuration Manager to point to the hostname/IP address of the customer's Platform proxy server/load balancer.
- Upload the license file. For more information, see Importing a License File.
- Update the
SpokServiceAppPool
application pool, and set the Identity to the CareConnect user. For more information, see Updating the Application Pool Identity. - Connect to
http://localhost/Web
- On the System Settings Administration screen, do the following:
- Under IIS Configuration, set the Server Name field to the hostname/IP address of the customer's Platform proxy server/load balancer.
- Update the required SMTP Settings.
- Set the Asset Directory Location to the shared location created on the customer's fileshare.
- Save the configuration.
Implement the Care Connect Platform on the Secondary Platform Server
The secondary platform server acts as a failover server in a load-balanced, fault-tolerant environment. If the primary platform server goes down or becomes unresponsive, this server takes over all communications.
- In the CCS Installer's Custom Setup dialog, select Platform, DPE, and Web for installation.
- Set the Database Deploy field for each of these features to Will not be installed.
- Set ConfigManager to point to the hostname/IP address of the customer's Platform proxy server/load balancer.
- Update the SpokServiceAppPool application pool, and set the Identity to the CareConnect user. For more information, see Updating the Application Pool Identity.
- Connect to
http://localhost/Web
. - On the System Settings Administration screen, validate the information configured on the Main Platform Server.
- Save the configuration.
Implement Spok Mobile on the Spok Mobile Servers
For complete installation and configuration instructions, see Implementing the Spok Mobile 4.6 Server.
Implement Spok Mobile on the Primary Spok Mobile Server
The primary Spok Mobile server acts as a master server in a load-balanced, fault-tolerant environment. It is the central point for inbound communications.
- In the CCS Installer's Custom Setup dialog, select Mobile for installation.
- Use the customer's primary database for the database connection
- Set ConfigManager to point to the hostname/IP address of the customer's Spok Mobile proxy server/load balancer.
- Update the Amcom Mobile Connect Services application pool, and set the Identity to the CareConnect user. For more information, see Updating the Application Pool Identity).
- Connect to
http://localhost/Amc/Admin
- On the Spok Mobile Configuration Settings screen, do the following:
- Set the Mobile Server Name to the hostname/IP address of Proxy 2
- Add a third MXPP gateway,
20003
. - Enable the Adapter.
- Update the Gateway Port to
20003
.
- Update the Gateway Port to
- Click Apply and Save.
Implement Spok Mobile on the Secondary Spok Mobile Server
The secondary Spok Mobile server acts as a failover server in a load-balanced, fault-tolerant environment. If the primary Spok Mobile server goes down or becomes unresponsive, this server takes over all communications.
- In the CCS Installer's Custom Setup dialog, select Mobile for installation.
- Set Database Deploy for this feature to Will not be installed.
- Set ConfigManager to point to the hostname/IP address of the customer's Spok Mobile proxy server/load balancer.
- Update the Amcom Mobile Connect Services application pool, and set the Identity to the CareConnect user. For more information, see Updating the Application Pool Identity.
- Connect to
http://localhost/Amc/Admin
. - On the Spok Mobile Configuration Settings screen, validate the information configured on the Main Platform server.
- Click Apply and Save.
Setting up Mirroring
This section only applies to environments using SQL mirroring. If your environment does not use mirroring, skip this section.
Setting up mirroring on the database helps enable fault tolerance at the database transactional layer. It ensures that all information is properly recorded in the database for audit, compliance, and application stability.
Spok supports the following mirroring options:
- Oracle Fast Start Failover
- SQL Server Mirroring
- SQL Server Clustering
As part of the configuration of these servers, set up mirroring. For more information, see Configuring SQL Server Redundant Mirroring Sessions.
Spok Notification Framework Customers - RabbitMQ Configuration
For high-availability customer sites which use the Spok Notification Framework, you must configure RabbitMQ. For more information, see Setting up RabbitMQ for an HA Spok Mobile Implementation.
Configure Integrations
For information about configuring integrations with other Spok products, see Configuring Spok Product Integrations.