2. Master Configuration
Once completed the Initial requirements, the configuration of the master server will be explained in this section.
Step 4. Stop services in the master server
- Go to path C:\Program Files (x86)\edinn\edinnM2\Server and execute, with administrator permissions, the program edinnM2_Console.exe.
- In the Activity tab press “Stop service” in each of the services, going from bottom to top (starting with the Supervisor).
Step 5. Supervisor Configuration
Open the Supervisor tab. By default, recovery is inactive. Configure the following parameters:
Where:
- Host name: is the remote host name. You can find it in the properties window of the slave server computer.
- Host IP: find it by writting the command "ipconfig" in cmd.exe in the slave computer.
Write here the information from the slave server:
- Switch on the Activate checkbox: to enable the rest of the fields.
- Host name: is the name of the slave server in the network, the one you are trying to connect to.
- Host IP: is the IP of the slave server in the network.
- Port: write '10000'.
Step 6. Apply Recovery
- Select the Master role.
- Press the "Apply" button of the Recovery section.
Step 7. Failure Reporting Configuration
To enable server to inform by e-mail about the failures and other issues, you must enable Notifications in the Notifications tab and fill in the fields as you can see in the image bellow.
Remember to click on [Apply] button to save changes.
NOTE: for more information of the Notifications configuration, please see: Notification.
Step 8. Lock access to database
Run SQLyog as administrator and execute the following query: "FLUSH TABLES WITH READ LOCK;"
Step 9. Backup the database
Perform a database backup of the Server who is going to act as a Master:
- Open MySQL Administrator as administrator.
- Enter the backup tab, click on “New Project”, choose a Project Name and select the 2 databases from which you are going to perform the backup: the edinnm2 and the edinnm2_CompanyId database. Then click the > icon and Save Project.
- Click "Execute Backup now" and wait for the backup to terminate. Copy the generated backup file and paste it in the Server who is going to act as a Slave. Remember to not start the edinn services on the master server until indicated later.