- Install On Prem MMS >
- Install the On Prem MMS Application >
- Install or Upgrade the On-Prem MMS Monitoring with
deb
Packages
Install or Upgrade the On-Prem MMS Monitoring with deb
Packages¶
On this page
Overview¶
On-Prem MongoDB Management Service is a service to monitor and back up a MongoDB infrastructure. This tutorial describes the basic process to install or upgrade the MMS Application Package.
At a high level, a basic installation will look like the following. The estimated setup time is less than an hour.
- Configure an MMS Application Server that meets the hardware requirements.
- Install a single MongoDB replica set to be used for the MMS Application database, as described in Preparing Backing MongoDB Instances. You cannot use a replica set that is being used to store other data.
- Install an SMTP email server as appropriate for your environment.
- Install the MMS Application Package.
- Configure the MMS server’s URL, email addresses, and Mongo URI connection strings. See Configuration for more information.
- Start up the MMS Application. See Start and Stop MMS Application for more information.
- Optionally install the MMS Backup Service.
Prerequisites¶
Deploy Servers¶
Prior to installation, you must set up servers for the entire On Prem MMS deployment, including the MMS Application, the optional Backup Daemon, and the backing replica sets. For deployment diagrams, see On Prem MMS Example Deployments.
Deploy servers that meet the hardware requirements described in On Prem MMS Hardware and Software Requirements. Servers for the Backup Daemon and the backing replica sets must also comply with the Production Notes in the MongoDB manual. Configure as many servers as needed for your deployment.
Warning
Failure to configure servers according to the MongoDB Production Notes can lead to production failure.
Deploy MongoDB¶
Install MongoDB on the servers that will store the MMS Application Database and MMS Backup Blockstore Database. The Backup Blockstore Database is required only if you run the Backup Daemon. The databases require dedicated MongoDB instances. Do not use MongoDB installations that store other data.
Install separate MongoDB instances for the two databases and install the instances as replica sets. Ensure that firewall rules on the servers allow access to the ports that the instances runs on.
For more information, see Preparing Backing MongoDB Instances.
Procedures¶
Install and Start the On Prem MMS Service¶
Download On Prem MMS Monitoring.¶
Download the latest On Prem Monitoring releases from the downloads page.
Install On Prem MMS Monitoring.¶
Install the .deb
package by issuing the following command, where
<version>
is the version of the .deb
package:
When installed, the base directory for the MMS software is
/opt/mongodb/mms/
. The .deb
package creates a new system user
mongodb-mms
under which the server will run.
Configure On Prem MMS Monitoring.¶
In the conf-mms.properties
file, ensure that the following required
settings are correct:
mms.centralUrl
mms.backupCentralUrl
mms.fromEmailAddr
mms.replyToEmailAddr
mms.adminFromEmailAddr
mms.adminEmailAddr
mms.bounceEmailAddr
mongo.mongoUri
mongo.replicaSet
Consider the following example configuration:
At this point, you can also configure authentication, email, and optional Kerberos integration, as described in the Configuration.
If you would like to run the MMS application in a highly available configuration, please consider Configure a Highly Available MMS Application Server.
Start On Prem MMS Monitoring.¶
To start MMS, issue the following command:
Optional: Install Backup Component¶
Stop any currently running instance.¶
If you are upgrading an existing installation, please stop the currently running instance:
Download the Backup Daemon Package software.¶
To download the Backup Daemon Package for use on Ubuntu, run the
following, replacing <version>
with the software version number:
The software is installed to /opt/mongodb/mms-backup-daemon
.
Configure the back-end software package.¶
Configure the Backup Daemon, by editing the
/opt/mongodb/mms-backup-daemon/conf/conf-daemon.properties
file. Specify the required configuration options, . See
Configuration for information about each value.
The following values of the following settings must correspond to the values set in the monitoring application:
Consider the following example configuration:
Additionally, ensure that the file system that holds the
rootDirectory
has sufficient space to accommodate the
current snapshots of all backed up instances.
Synchronize the gen.key file¶
Synchronize the /etc/mongodb-mms/gen.key
file from a MMS Application
Server. This is only required if the Backup Daemon Package was
installed on a different server then the MMS Application Package.
Start the back-end software package.¶
To start the Backup Daemon Package run:
If everything worked the following displays:
If you run into any problems, the log files are at /opt/mongodb/mms-backup-daemon/logs
.
Upgrade On-Prem MongoDB Management Service from 1.3 and Later¶
If you have an existing On Prem MMS deployment, use the following procedure to upgrade to the latest release. There are no supported downgrade paths for On Prem MMS.
Recommended. Take a full backup of the MMS database before beginning the upgrade procedure.¶
Shut down MMS.¶
For example:
If you are running MMS Backup, shutdown the MMS Backup Daemon.¶
The daemon may be installed on a different server. It is critical that this is also shut down. To shut down, issue a command similar to the following:
Save a copy of your previous configuration file.¶
For example:
Upgrade the package.¶
For example:
Edit the new configuration file.¶
Fill in the new configuration file at
/opt/mongodb/mms/conf/conf-mms.properties
using your old file as a
reference point.
Start MMS.¶
For example:
Update all Monitoring Agents and Backup Agents.¶
See Install Monitoring Agent for more information.
Update the Backup Daemon Package and any Backup Agent, as appropriate.¶
If you are running MMS Backup, update the Backup Daemon Package and any Backup Agent.
See Install Backup Agent for more information.
Upgrade On-Prem MongoDB Management Service from 1.2 and Earlier¶
Due to the company name change, the name of the MMS package changed between versions 1.2 and 1.3. Therefore, to upgrade the On-Prem MongoDB Management Service server from any version before 1.3, use the following procedure:
Recommended. Take a full backup of the MMS database before beginning the upgrade procedure.
Shut down MMS, using the following command:
Download the latest package from the downloads page and proceed with the instructions for a fresh install. Do not attempt to use your package manager to do an upgrade.
When complete, On-Prem MongoDB Management Service is installed in the
/opt/mongodb/mms
directory.Follow all procedures for a new install, including configuring the options in
/opt/mongodb/mms/conf/conf-mms.properties
. If you used encrypted authentication credentials you will need to regenerate these manually. Do not copy the credentials from your old properties file. Old credentials will not work.Start MMS using the new package name:
Update any Monitoring Agent. See Install Monitoring Agent for more information.
Additional Information¶
- See Configuration for documentation of all configuration options for the MMS application.
- For complete instructions on managing the MMS application process, see Start and Stop MMS Application.
- To configure the MMS application for high availability, see Configure a Highly Available MMS Application Server.