Sizing, availability and recovery¶
This page covers how big to make the RSA Operations Portal, what high availability it supports, how to recover it after losing a server or cluster, and how to go back to the previous release. Backups themselves are in the Operator Guide.
Sizing¶
Unbenchmarked starting points
ENS has not load-tested the Portal or the Connector. The figures below are the shipped defaults and the reasoning behind them, not measured capacities. Start with them, watch the metrics named here, and adjust.
What drives the size¶
| Driver | Why it matters | Settings and limits |
|---|---|---|
| Calls to Authentication Manager | Almost every page an operator or user opens calls AM through the Connector. Their latency is usually AM's, not the Portal's | ens_rsa_am_call_seconds; connector.read-timeout-millis (120 s) |
| Concurrent operators and self-service users | Each request holds a Portal thread and, while it waits for AM, a Connector thread | Connector Tomcat maxThreads 150 on 8443 (fixed in its server.xml) |
| The nightly jobs | Between 00:30 and 00:35 the jobs search AM for expiring and unused tokens and send email: the busiest minutes for AM and the SMTP relay | cron.<job>.cron, cron.timezone |
| Sent asynchronously on a pool of 50 to 500 threads | The relay's own limits | |
| Database growth | Small tables, except AuditEvent, which grows with every sign-in and change until ENS_AUDIT_RETENTION_DAYS removes old events |
ENS_AUDIT_RETENTION_DAYS |
| AM searches | Free-text user searches return at most 25 results per identity source | search.useridonly |
| Failed anonymous steps | Each answers no sooner than the uniform response time (1 s), and holds its request thread that long. Each limited attempt also reads and writes a row in the rate-limit tables | rsa.rate-limit.uniform-response-time, rsa.rate-limit.* |
Starting figures¶
| Component | Helm chart default | Release package | Notes |
|---|---|---|---|
| Portal | request 250m CPU, 768Mi; limit 1536Mi |
No limit set | The chart's javaOpts sets -XX:MaxRAMPercentage=75, so the heap follows the limit |
| Connector | request 100m CPU, 512Mi; limit 1Gi |
No limit set | The same heap rule |
| Embedded MySQL (evaluation only) | request 100m, 512Mi; limit 1Gi; 8Gi volume |
The MySQL container, no limit | In production, size your MySQL server for the audit table's growth |
| License volume | 100Mi |
Docker volume | Read only on the first start after upgrading from release 1.5 or earlier |
| Backup PVC | 10Gi (backup.persistence.size) |
util/backupdb.sh writes to the host |
Dumps compress well; keep keepDays of them |
How to adjust:
- Heap. Watch
jvm_memory_used_bytes{area="heap"}for the Portal and the Connector. If either nears its maximum, or a container is killed for running out of memory, raise its memory limit. - AM latency. If
ens_rsa_am_call_secondsgrows with the number of users, AM (or the network to it) is the limit, not the Portal. A read-only replica can serve searches:ims.httpinvoker.client.provider.readonly.url(Helm:authManager.readOnlyHost). - Audit table. Set
ENS_AUDIT_RETENTION_DAYSto your retention policy once a SIEM keeps the events, and watch the database's size.
High availability¶
The Portal keeps what it shares between requests in the database, so more than one Portal replica can run against one MySQL database, and a restart or rolling update signs nobody out. For the suite-wide picture, see Sizing, availability and recovery.
Shared through the database:
| What | Where |
|---|---|
| Sessions | SPRING_SESSION* (Spring Session JDBC). ENS_SESSION_STORE=memory keeps them in each Portal's memory |
| Rate limits and backoff | RateLimitWindow, RateLimitBackoff |
| Scheduled jobs, including data retention and audit pruning | Each run takes a lock row (CronLock) first, so a job runs on one replica at a time. The help-desk request expiry and the purges of expired rows are safe to run on every replica |
| License, installation id, license history | ens_license_* |
| SAML requests in progress | SsoSamlRequest; OpenID Connect sign-ins in progress are in the session |
| SAML logout requests in progress (next release) | SsoSamlLogoutRequest (Flyway V9), so the asserting party's LogoutResponse may reach any replica |
Two things stay on one machine:
- Emergency access codes are shown only by the replica that made them; they are never written
anywhere. With several Portal replicas the chart gives the Portal Service ClientIP session
affinity; give the ingress or load balancer cookie affinity too (ingress-nginx:
nginx.ingress.kubernetes.io/affinity: cookie), or the code may have to be made again. - The Connector runs as one replica. A SecurID sign-in that asks for a new PIN or the next
tokencode keeps its Authentication Manager login in the Connector's memory between the steps.
The chart refuses
connector.replicaCountabove 1, rolls the Connector with the new pod ready before the old one stops, and gives its Service ClientIP session affinity, so the steps of a sign-in stay on one Connector pod. A Connector restart interrupts only sign-ins that are between steps; the user starts again.
Helm. replicaCount (default 1) can be more than 1 once the license volume is no longer
mounted (persistence.license.enabled=false, after the first start of this release has copied it
into the database) or is ReadWriteMany; the chart refuses otherwise. The strategy is
RollingUpdate (maxUnavailable: 0, maxSurge: 1), or Recreate while a ReadWriteOnce license
volume is mounted. With more than one replica the chart renders a PodDisruptionBudget
(podDisruptionBudget.minAvailable, 1). Helm keeps the license PVC
(helm.sh/resource-policy: keep) until you delete it.
Release package. The Compose installation runs one Portal and one Connector. Its upgrades keep everyone signed in.
What else you can do:
- Automatic restart. Docker restarts the containers (
restart: unless-stopped); Kubernetes restarts a pod whose liveness probe fails and reschedules it if its node fails. - The database. Run MySQL with your own high-availability setup (Helm: an external server). The embedded MySQL has none.
- Authentication Manager. Point the read-only URL at a replica for searches. Writes and sign-ins
go to the primary (
ims.httpinvoker.client.provider.url).
Disaster recovery¶
What to keep, and where¶
| Item | Holds | Back it up with |
|---|---|---|
The database RSAAPP |
Trusted Agents, sites, shipments, appointments, enrollments, exemptions, notifications, the audit trail and its chain head, sessions, and the license and this installation's id | util/backupdb.sh, the chart's backup CronJob, or your MySQL backups (Operator Guide) |
The license volume (rsa-operations-portal_ens-license, or the license PVC) |
The license state of release 1.5 or earlier, copied into the database on the first start after upgrading, and not read after that | Keep it until that start is done. Keep the .lic file you received as well |
| Settings | .env, connector.env, mysql.env (release package); your values file and the Secrets it names (Helm) |
Your configuration management. They hold secrets |
| AM trust and Connector certificates | default_build/ssl/ (trust.jks, connector-ca.crt), default_build/connector-tls/, portal-tls/ (the Portal's client certificate and key), connector-tls-ca/ |
A copy with the settings. If lost, util/connector-tls.sh makes new ones; trust.jks must be rebuilt from AM's root certificate |
| Branding | default_build/properties, static, email-templates (release package); the branding.* ConfigMaps (Helm) |
A copy |
| The release | The package you installed, or the image digests and chart version | Keep the download, or mirror the images |
| Users, tokens, PINs, administrative roles | RSA Authentication Manager | AM's own backup and replication. The Portal holds none of it |
Your recovery point is your backup interval: changes made after the last database backup are lost. Audit events already forwarded to Splunk or syslog are still there.
Recovering on a new server (release package)¶
- Install the same release as the one that was running: unpack it and run
./install.sh /opt/rsa-operations-portal. It stops after creating the settings files. - Restore
.env,connector.env,mysql.env,default_build/,portal-tls/andconnector-tls-ca/from your copies, replacing whatinstall.shcreated. - The license and this installation's id are in the database, which the next step restores
before the Portal's first start. If no database backup survives, the installation gets a new
id (set
ENS_LICENSE_ALLOW_NEW_INSTALLATION_ID=trueonce if the Portal refuses to make one):- an unbound license works again once you upload the
.licfile on the license screen; - a bound license is refused by the new installation id. Note the new id on the license screen and ask ENS Solutions to re-bind or re-issue the license.
- an unbound license works again once you upload the
- Start MySQL alone (
docker compose up -d mysql), wait until it is healthy, and load the backup:gunzip -c RSAAPP-<time>.sql.gz | docker exec -i mysql sh -c 'MYSQL_PWD="$MYSQL_ROOT_PASSWORD" exec mysql -uroot RSAAPP'. - Start everything: run
./install.shagain in the install folder (it checks the settings, lets the Portal read.envand its client key through group 0 withutil/file-owners.sh, and waits for the Portal). Withdocker compose up -dinstead, run./util/file-owners.shfirst. - Check: readiness is
UP; the Connector reportsUP; the license screen shows the expected state and installation id; Audit Log → Verify integrity reports the chain intact; sign in as a PMO user and as a Trusted Agent.
With Helm: install the same chart version into the new cluster with your values and Secrets and
replicaCount: 0, restore the database into your MySQL server (it holds the license and the
installation id), then set replicaCount back to what you ran.
The audit trail after a restore¶
The audit trail and its chain head are restored together from the same dump, so the chain is intact, but it ends at the backup. Events recorded afterwards continue from the restored sequence number, reusing numbers your SIEM may already have from the lost period:
- de-duplicate on
id, never onseq; - a SIEM that pulls with the pull API remembers the last
seqit read: reset its cursor to the restored trail's newest sequence number, or it skips new events until the numbers pass its old cursor; - Splunk HEC and syslog outputs resume from the cursors saved in the database
(
AuditOutputState) and resend what followed them, which Splunk can de-duplicate onid.
Rolling back an upgrade¶
Not tested by ENS
The outlines below follow from how the releases are built, but ENS has not run them as a procedure. Practise a rollback on a test installation before you rely on it.
A rollback always needs the database backup taken before the upgrade: upgrade.sh writes it to
backups/RSAAPP-before-<version>-<time>.sql.gz in the install folder; with Helm, take it
yourself. The new release migrates the schema on its first start (Flyway), and an older release
is not built to run on a newer schema.
From MySQL 8.4 back to a release with MySQL 8.0. MySQL upgrades its data files in place, and 8.0 can't start on data 8.4 has upgraded. Going back means a new, empty MySQL 8.0 data volume and the pre-upgrade dump:
docker compose downin the install folder. Do not use-v: that would delete the license volume too.- Keep a copy of the current database first (
util/backupdb.sh), in case you need to go forward again. - Remove only the database volume:
docker volume rm rsa-operations-portal_mysql_data. - Put the previous release's files back in the install folder (its
docker-compose.yml, its images loaded withdocker load -i images/...), keeping your settings files. - Start MySQL alone. It creates an empty database and the application user from
mysql.env. Load the pre-upgrade dump into it, then start the Portal and the Connector.
Settings. Releases before HTTPS to the Connector expect http://connector:8080 and the AM
passwords as -D options. upgrade.sh kept the originals as .env.before-split.* and
connector.env.before-secrets.* where it changed them; a rollback across that change needs the
matching settings for the older Connector. Releases before portal-tls/ do not mount it: going
back to one, point CONNECTOR_TLS_CLIENTCERTIFICATE and CONNECTOR_TLS_CLIENTKEY in .env at
files under default_build/ssl (/ssl/...), or turn mutual TLS off on both sides
(CONNECTOR_TLS_CLIENT_AUTH in connector.env too). An older release ignores
rsa.helpdesk.code-key.
Helm. helm rollback <release> <revision> restores the previous manifests and values, but not
the database: restore the pre-upgrade backup into your MySQL server first, with the Portal scaled to
0. The license PVC is kept either way.