Summary: | Below are the instructions on how you can configure Point of Sales for Stand Alone Mode (Fail Safe) and/or Replication between branches.
Important Notes:
- All Branch and Head Office servers must have time synchronised
- All Standalone servers must have time synchronised
- The system uses UTC time for replication so the time zone does not matter, however the local time must be correct. Synchronise with Internet Time.
- If you decide to setup REPLICATION between servers, the server specifications and interconnection bandwidth must be correctly chosen in order for data to flow smoothly. Line stability is also an important factor.
- When setting up STAND ALONE mode, the stations should connect to the Branch server under normal operation. The stations will switch to Fail Save mode automatically if there is a problem with the main server
- An administrator should check replication logs to resolve any conflicts
It is important to note the steps required when setting up replication:
New Setup before Transaction Processing Starts:
Follow steps 1 to 6 below:
- Install the LinkSOFT Application
- Using DB Update utility, setup new database for Servers and Stations
- Configure Head Office with Parent Links (To Stand Alone stations and Branch Servers)
- Configure Stand-Alone stations with for Stand-Alone mode
- Configure Branch Servers with child links to Parent Server.
- You are now ready to start processing
Fail Safe Configuration for Point of Sale:
- Configure Stand Alone Primary and Secondary Server Details
- Set he Default Locations on Stand Alone Configuration
- Enable Connection Switching for Fail-over
DO not create CHILD Links for Stand Alone stations
After transaction processing starts:
Follow these steps to:
Add a Stand-Alone station to a Parent (Branch or Head Office server)
- Configure the Parent server (Branch server or Head Office server) with the parent link. This is required so that the parent server can queue any transactions between backup and restore.
- Backup the parent database
- Restore the parent database on the Stand Alone station.
- Setup Stand-Alone Link as explained in STEP 2 below
- You are ready to Start processing on this station
Add a Branch server
- Configure the Parent server (Head Office server) with the parent link. This is required so that the parent server can queue any transactions between backup and restore.
- Backup the parent database
- Restore the parent database on the Branch Server and remove the parent link created in 1. above
- Setup Child Link as explained in STEP 2 below
- You are ready to Start processing on this station
In this example we use the network diagram shown in Figure 1:
There are two stations in Suva Office and two stations in Sydney Office.
Each station will be configured to run on Stand Alone (Fail-safe) mode. Suva and Sydney servers will be configured to replicate data.
Sydney Server SQL Database needs to be accessible from Suva server. Therefore you need a Static IP address. Suva Server does not need a Static IP address.
This will achieve two results:
- The Stations will be able to run on Stand Alone mode in an event of network failure. Stand Alone means that all processing will be performed locally until the servers are available.
- Sydney and Suva servers will be configured to replicate data.
Figure 1: Network diagram showing two branches (Suva and Sydney) and 2 stations per branch
Definitions:
Stand-Alone Mode
This mode is usually used for Point of Sales Stations (SYDNEY-ST1, SYDNEY-ST2, SUVA-ST1 and SUVA-ST2). In the event of a network failure, the station will switch to local database and all transactions will be saved on the local station. When the network recovers, the Stand Alone station will automatically detect its sever (SYDNEY-AU, SUVA-FJ) and connect to the server. Data will be transferred to the server automatically.
Child Server Link
This is when a branch server needs to connect and replicate to head office server.
Note: Stand Alone stations do not need CHILD Links.
In the above network diagram, the following are child server links:
SUVA-FJ server links to SYDNEY-AU server using the child-server-link.
Parent Server Link
This is when a server connects to Stations or to a branch Servers
In the above network diagram, the following are parent server links:
SUVA-FJ server connects to SUVA-ST1 Station using the parent-server-link
SUVA-FJ server connects to SUVA-ST2 Station using the parent-server-link
SYDNEY-AU server connects to SUVA-FJ Server using the parent-server-link
SYDNEY-AU server connects to SYDNEY-ST1 Station using the parent-server-link
SYDNEY-AU server connects to SYDNEY-ST2 Station using the parent-server-link
Important Notes:
- It is important that you use the Unique name for Station. (SUVA-ST1, SUVA-ST2, SYDNEY-ST1, SUDNEY-ST2, SUVA-FJ, SYDNEY-AU)
- Transaction ID needs to be unique in Stand-Alone Mode and between branches. Please make sure that you use a unique two digit identifier for each database server. Examples are: A0, A1, A2... B0, B1, B2 ... Z0, Z1, Z2...
Below is a summary of steps on how to configure the systems to achieve the following:
- The Stations will be able to run in an event of network failure. All processing will be performed locally until the servers are available.
- Sydney and Suva servers will replicate data
Step 1:
Install LinkSOFT on all stations and servers (SUVA-ST1, SUVA-ST2, SUVA-FJ, SYDNEY-ST1, SYDNEY-ST2, SYDNEY-AU)
Instructions on how to install link software is available at this link.
Step 2:
Log on to each Station that requires Stand-Alone setup and configure Stand-Alone mode. This should be done on all Point of Sale Stations. Do not setup branch servers or head office servers in Stand-Alone mode.
In this example you would perform the following:
Configure SUVA-ST1.
2.1 Log on to Link Tools connecting to SUVA-ST1 (Figure 2.1 below)
Figure 2.1 - Link Tools login for Replication Setup
2.2 Select Replication Setup and enter details as shown in figure 2.2 below. This figure shows settings for SUVA-ST1 StandAlone setup:
Figure 2.2 - Replication Setup options
The numbers in figure 2.2 above explain the following:
- After you login to Link Tools, Select Replication -> Replication Setup from the Menu. Then select the Setup Failsafe button on the replication screen.
- Connection type - Refer to connection type definition above
- Current Server details
- Unique Child Server Name: This is a unique name to identify this station. It is important that this name is unique across the entire network
- Linked Server Name: This is the name of the server you are setting up replication to. The name provided here should be accessible from the current station.
- Linked Server Username and Password: User credentials for creating the linked server.
- Linked Server Database name: Database name to connect to on the Linked Server. Default is LINKSOFT
- Local Database Number Mask: A 2 digit character that uniquely identifies transactions created by this station. Must be unique across the network.
Figure 2.3 below shows the Stand Alone setup for Suva Station 2.
Figure 2.3 Stand Alone setup for Suva Station 2.
Figure 2.4 below shows the Stand Alone setup for SYDNEY Station 1.
Figure 2.4 Stand Alone setup for SYDNEY Station 1.
Figure 2.5 below shows the Stand Alone setup for SYDNEY Station 2.
Figure 2.5 Stand Alone setup for Sydney Station 2
|