Skip to main content

High availability options

Netwrix Privilege Secure for Access Management (Privilege Secure) supports deployments that keep working when a server or database fails. This page describes the options, what each one replicates, and how to back up and recover a deployment.

Choosing a deployment​

OptionDatabaseFailoverComplexity
Active-passivePostgreSQL only. Uses the database that the installer provides.ManualLowest. Two identical servers.
Active-activePostgreSQL or SQL ServerNo manual stepHigher. Needs an extra server for the database.
Cloud-native databaseA PostgreSQL or SQL Server database that you provide and manageYour responsibilityDepends on your database setup

Active-passive​

Two identical servers run all Privilege Secure components. The database replicates from the primary server to the secondary server. When the primary server becomes unavailable, you start the failover manually. The secondary database is read-only until the failover.

After you establish the pair, sign in to the primary server for normal use.

Active-active​

Several application servers share one database. Failover needs no manual step, and you can add application servers for redundancy and scalability. Setup is more complex than active-passive, and the database runs on its own server.

Cloud-native database​

In this option, the database is a PostgreSQL or SQL Server server that you provide and manage. Its high availability and scaling are your responsibility, and it suits an active-active deployment. See Database requirements for the supported database options.

Set up high availability​

The HA manager tool (NPS.HaMgr.exe) is in the Extras folder of the product download. You run it on both servers to configure PostgreSQL replication for an active-passive pair.

For the full setup and upgrade procedures, use these Knowledge Base articles:

The servers in a pair must reach each other on the console port, 6500 by default, and on the PostgreSQL port. See Ports.

The HA manager takes the PostgreSQL port from the database settings of the Privilege Secure configuration, which default to 5432. If none is set, it uses 5432. If your PostgreSQL instance listens on a different port, enter that port in the HA manager.

note

To upgrade a high availability pair, fail over and upgrade the secondary server, upgrade the primary server, and then re-establish replication. The Knowledge Base article gives the full order, including copying the configuration and encryption keys to the secondary. Follow it before you start. See also Upgrade Privilege Secure.

Back up and recover​

Plan backups around four items:

ItemIncluded in high availability replication
PostgreSQL databaseYes
RDP and SSH session recordingsNo. Recordings are stored on the proxy servers.
Configuration filesNo
Encryption keysNo

High availability replicates the database only. Back up recordings, configuration files, and encryption keys separately, and keep the encryption keys with your other secrets. Keep a copy of the keys that matches each database backup.

Fail over to the secondary server​

Failover is manual.

  1. On the secondary server, open the HA manager tool and click Failover. Confirm the prompt. The prompt names the server that becomes the primary.

    The HA manager starts PostgreSQL if it is stopped, promotes the replica to primary, and writes the local host and PostgreSQL port into the database settings file, appsettings.db.json, in the Database folder under C:\ProgramData\Stealthbits\PAM. It then restarts the SbPAMProxy service.

  2. If the Action Service runs on another server, point it at the new primary server. Run the following command on that server, and enter the password when prompted:

    ActionService.exe -register -u <domain>\<nps-admin> -url https://<new-primary-server>:6500

    See Additional services for the -register options.

  3. Confirm that you can sign in to the Privilege Secure Console on the new primary server.

These Knowledge Base articles cover recovery tasks. Review each one against your version before you follow it.

For how encryption keys protect stored secrets, and how to rotate them, see Encryption keys.

Register the secondary node after an upgrade​

After an upgrade, the primary Privilege Secure Console can show no nodes for the secondary server. To register the secondary server's services:

  1. Sign in to the Privilege Secure Console on the secondary server.
  2. Select System Settings > Services to open the page that holds the NPS Rest URL setting. See Set the NPS REST URL and register services.
  3. Enter the fully qualified domain name (FQDN) URL of the secondary server, for example https://<secondary-server-fqdn>:6500. Don't add a trailing slash.
  4. Click Register Services.

The secondary node then appears in the primary console.