Product: | Microsiga Protheus |
Versions: | 11 and 12 |
Step by Step: | C-tree BoundServer (c-tree Server DLL) is, basically, a c-tree server that starts along (embedded) with Protheus Server. We recommend its use in environments in which only one Protheus Server is used as application server, in which the access to dictionaries is not shared with other Protheus servers. You can configure it to load dictionary files (SXs) in the memory, making the access faster. See below reference links of C-tree BoundServer documentation with technical information: c-tree BoundServer http://tdn.totvs.com/display/tec/c-tree+BoundServer c-Tree Server with SXS in memory http://tdn.totvs.com/pages/viewpage.action?pageId=208338982 Section cTreeServerMaster http://tdn.totvs.com/pages/viewpage.action?pageId=208338976 Below the procedure showing how to configure the file appserver.ini and ctsrvr.cfg (of the folder Appserver) to use the C-Tree Bound Server with memory files: Notification: Only tables informed in the .ini configuration are notified by that Protheus server. In this configuration, specify the extension of the table. Only ISAM tables of the Ctree are specified. The notification system is not ready to work with files Superfile type (.SPF extension). Important: 1. It is recommendable the binary to be updated.
Note:
- Copy the root folder of the load balance, with the folders "Appserver" of Master and Slaves - See an example of configuration of files:
Code Block [General] InstallPath=C:\TOTVS 12 CtreeMode=boundServer Consolelog=1 [Drivers] Active=TCP [TCP] TYPE=TCPIP Port=1270 [LICENSECLIENT] Server=localhost Port=5555 [P12] SourcePath=C:\TOTVS 12\Microsiga\protheus\apo\ RootPath=C:\TOTVS 12\Microsiga\protheus_data CtreeRootPath=C:\TOTVS 12\Microsiga\protheus_data StartPath=\system\ x2_path= RpoDb=top RpoLanguage=Portuguese RpoVersion=120 LocalFiles=CTREE Trace=0 localdbextension=.dtc [DBAccess] Alias=P12_1_14 Server=localhost Database=MSSQL Port=7890 [CtreeServerMaster] ctUserId=ADMIN ctUserPass=ADMIN ctServerName=FAIRCOMS@localhost memctUserId=ADMIN memctUserPass=ADMIN memctServerName=boundServer@localhost Environments=P12 Files=sx3*.dtc,sx5*.dtc,sx6*.dtc,sx7*.dtc ShowStatus=1 [ServerNetwork] MasterConnection=0 Servers=Slave1,Slave2 [Slave1] TYPE=TCPIP Server=localhost Port=1271 Connections=1 [Slave2] TYPE=TCPIP Server=localhost Port=1272 Connections=1
Code Block SERVER_NAME BOUNDSERVER COMM_PROTOCOL F_TCPIP COMM_PROTOCOL FSHAREMM LOG_SPACE 96 CTSTATUS_SIZE -1000000 SKIP_MISSING_FILES YES IDX_MEMORY 128 MB DAT_MEMORY 128 MB CONNECTIONS 150 CONSOLE NO_MESSAGEBOX CONSOLE NO_SHUTDOWN_PROMPT APPSERVER.INI (SLAVES) Code Block [General] InstallPath=C:\TOTVS 12 CtreeMode=boundClient Consolelog=1 [Drivers] Active=TCP [TCP] TYPE=TCPIP Port=1271 [LICENSECLIENT] Server=localhost Port=5555 [P12] SourcePath=C:\TOTVS 12\Microsiga\protheus\apo\ RootPath=C:\TOTVS 12\Microsiga\protheus_data CtreeRootPath=C:\TOTVS 12\Microsiga\protheus_data StartPath=\system\ x2_path= RpoDb=top RpoLanguage=Portuguese RpoVersion=120 LocalFiles=CTREE Trace=0 localdbextension=.dtc [DBAccess] Alias=P12_1_14 Server=localhost Database=MSSQL Port=7890 [CtreeServerMaster] ctUserId=ADMIN ctUserPass=ADMIN ctServerName=FAIRCOMS@localhost Environments=P12 Files=sx3*.dtc,sx5*.dtc,sx6*.dtc,sx7*.dtc ShowStatus=1 CTSRVR.CFG (SLAVES) Code Block COMM_PROTOCOL F_TCPIP COMM_PROTOCOL FSHAREMM LOG_SPACE 96 CTSTATUS_SIZE -1000000 SKIP_MISSING_FILES YES IDX_MEMORY 128 MB DAT_MEMORY 128 MB CONNECTIONS 150 CONSOLE NO_MESSAGEBOX CONSOLE NO_SHUTDOWN_PROMPT |
Notes: | About the files configuration:
[CtreeServerMaster]
Information to connect to CTREE BOUND SERVER:
|