KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: 3 things to remember when deploying multiple 4D Servers to a single Win box
PRODUCT: 4D | VERSION: 13.1 | PLATFORM: Mac & Win
Published On: September 28, 2012

3 things to keep in mind when deploying multiple 4D Servers on a single Windows machine:

  1. If running the database as a service: the service name uses the "structure name" so make sure this is unique. Otherwise the option to register the 'other' structures will be greyed out as a service for that 'structure name' already exists...


  2. The Client Cache folder: the folder uses the dbase name (or the structure name of DB if not stored in a .dbase folder) and the connection path (IP or name) of the server. So it is best to use unique .4dbase names so that the cache folder on the client is also unique and does not interfere with the cache folder of the other instances.


  3. Use unique ports: the various services running within 4D must have unique ports, here are the defa
    SQL: 19812
    App: 19813
    DB4D: App+1 (19814)


Here is a deployment example of 4 databases running on a single machine, lets assume the machine has an IP address of 10.64.0.12

Example DB 1:
Structure Path: C:\MyDatabases\Test.4dbase\Test.4DB
Structure Name: Test.4DB
Service Name: 4DS Test
Start Service Command: net start "4DS Test"
Stop Service Command: net stop "4DS Test"
Client Cache Folder: C:\Users\{userName}\AppData\Local\4D\Test_10_64_0_12
SQL: 19812
App: 19813
DB4D: App+1 (19814)


Example DB 2:
Structure Path: C:\MyDatabases\Test2.4dbase\Test2.4DC
Structure Name: Test2.4DC
Service Name: 4DS Test2
Start Service Command: net start "4DS Test2"
Stop Service Command: net stop "4DS Test2"
Client Cache Folder: C:\Users\{userName}\AppData\Local\4D\Test2_10_64_0_12
SQL: 19822
App: 19823
DB4D: App+1 (19824)

Example DB 3:
Structure Path: C:\MyDatabases\Test3db\Test3.4DB
Structure Name: Test3.4DB
Service Name: 4DS Test3
Start Service Command: net start "4DS Test3"
Stop Service Command: net stop "4DS Test3"
Client Cache Folder: C:\Users\{userName}\AppData\Local\4D\Test3.4DB_10_64_0_12
SQL: 19832
App: 19833
DB4D: App+1 (19834)

Example DB 4:
Structure Path: C:\MyDatabases\Test4app\Test4.4DC
Structure Name: Test4.4DC
Service Name: 4DS Test4
Start Service Command: net start "4DS Test4"
Stop Service Command: net stop "4DS Test4"
Client Cache Folder: C:\Users\{userName}\AppData\Local\4D\Test4.4DC_10_64_0_12
SQL: 19842
App: 19843
DB4D: App+1 (19844)