1. Home
  2. How to Setup an additional m-Power Production Environment

How to Setup an additional m-Power Production Environment

Contents

Overview

m-Power by default ships with a development and production environment. Often times on the helpdesk, I encounter inquires by administrators who are looking to create a third m-Power environment for one a few reasons:

  • A QA/Testing environment – They would like to create an intermediary stage for testing applications, between their development and production environments. Prior to promoting applications to production, they will be promoted to this QA instance first. Once vetted in the QA instance, then the applications will be promoted to the live production environment.
  • A use as a standalone environment for automating scheduled tasks from m-Power – For m-Power customers that have a lot of scheduled task activity, creating a dedicated environment for these tasks to execute within will help ensure stability The process outlined below allows you to create a third instance of m-Power (i.e. a second ‘Production’).

This post will assume you have development and production installed on the same PC server, however the instructions can be apply regardless of where you install this third m-Power environment.

Steps

  1. On the m-Power server in C:\Program Files\mrc (or whatever directory where m-Power is installed) , copy the existing production folder and rename the new copied directory. For customers creating a QA environment, I recommend naming the directory ‘QA’. For customers creating a scheduled task environment, I recommend naming the directory ‘scheduled’. In this example, I will call the third environment ‘production2’.
  2. Go to …\production2\m-power\tomcat\conf and open server.xml. Rename line 22 so that server shutdown port server port=XXXX is different than what is currently listed. For instance, if it currently reads 8006, change it to 8007 (if available).
  3. Rename line 67 so that the connector port=XXXX value is different than what is currently listed. For instance, if it currently reads 80, change to 8012 (if available).
  4. Update the /mrcjava context docBase (at the end of the server.xml file) to reference the new location of your production folder. For instance C:/Program Files/mrc/production2/m-power/mrcjava
  5. Save the server.xml file after completing steps 2-4.
  6. Edit the messaging.properties file in /production2/m-power/mrcjava/job_streams and update the port number listed in the mpower_server property to reference the new connector port used in Step 3.
  7. Edit the mrc-runtime.properties in …/production2/m-power/mrcjava/WEB-INF/classes and update the port number on the mpower_server and mrc_data_store_ip lines.
  8. Be sure to install the service for the second instance of Tomcat.

Updated on September 12, 2023

Was this article helpful?