The Fabric Set Sync command is used to define the synchronization mode of an instance from source systems. The default value is ON.
SYNTAX: SET SYNC [SYNC MODE];
Sync Mode |
Description |
When is an Instance Synced? |
ON |
Run a sync according to the Sync method which can be None, Time Interval, Inherited or Decision Function. |
|
OFF |
Don't sync. |
|
FORCE |
Always sync. |
Synchronization is performed on every operation on the Fabric LU instance, regardless of the sync method definitions of the LU. The only exception is when using a Decision function. If the Decision function returns False, the data is not synced. |
Note that the sync returns an error message when a source is not available. To change this behavior, use the set ignore_source_exception true command.
Sync ON protection improves the response time of multiple GET LUI requests on the same LUI and Fabric node. For example, executing a stress test by running a Web Service with the same LUI on multiple threads. In principle, since each request requires a write lock in the LUI's MicroDB, multiple requests on the same LUI and Fabric node are executed sequentially if they all implement Sync ON mode. This means that even when LUI populations are not run, a short check can take a long time before the last GET is successful.
To avoid checking each LUI, Fabric implements Sync ON mode only on the first GET request on the LUI. Remaining requests are executed in parallel to the first request when executed in Sync OFF mode.
SYNC_PROTECTION can be edited in the config.ini file:
Since release 6.2.3, SYNC_PROTECTION can be disabled on the session level by using SET SYNC_PROTECTION=off command.
The Force Upgrade Post Deploy checkbox is defined for each predefined Fabric server in the Server Configuration window:
This checkbox defines the Sync mode of the first GET of each LU instance (LUI) after the LU is deployed to the server:
Notes
Example 1
Example 2
Click for more information about the Get LUI Fabric Command.
The Fabric UserCode class holds the method that returns the Sync mode set for the current session:
public static String getSyncMode();
This method can be invoked by a Decision function. For example: If the Sync Mode is FORCE, then return True to sync the instance. Else, do not sync the instance.
To view the list of Fabric APIs, click http://[Fabric IP address]:3213/static/doc/user-api/index.html.
The Fabric Set Sync command is used to define the synchronization mode of an instance from source systems. The default value is ON.
SYNTAX: SET SYNC [SYNC MODE];
Sync Mode |
Description |
When is an Instance Synced? |
ON |
Run a sync according to the Sync method which can be None, Time Interval, Inherited or Decision Function. |
|
OFF |
Don't sync. |
|
FORCE |
Always sync. |
Synchronization is performed on every operation on the Fabric LU instance, regardless of the sync method definitions of the LU. The only exception is when using a Decision function. If the Decision function returns False, the data is not synced. |
Note that the sync returns an error message when a source is not available. To change this behavior, use the set ignore_source_exception true command.
Sync ON protection improves the response time of multiple GET LUI requests on the same LUI and Fabric node. For example, executing a stress test by running a Web Service with the same LUI on multiple threads. In principle, since each request requires a write lock in the LUI's MicroDB, multiple requests on the same LUI and Fabric node are executed sequentially if they all implement Sync ON mode. This means that even when LUI populations are not run, a short check can take a long time before the last GET is successful.
To avoid checking each LUI, Fabric implements Sync ON mode only on the first GET request on the LUI. Remaining requests are executed in parallel to the first request when executed in Sync OFF mode.
SYNC_PROTECTION can be edited in the config.ini file:
Since release 6.2.3, SYNC_PROTECTION can be disabled on the session level by using SET SYNC_PROTECTION=off command.
The Force Upgrade Post Deploy checkbox is defined for each predefined Fabric server in the Server Configuration window:
This checkbox defines the Sync mode of the first GET of each LU instance (LUI) after the LU is deployed to the server:
Notes
Example 1
Example 2
Click for more information about the Get LUI Fabric Command.
The Fabric UserCode class holds the method that returns the Sync mode set for the current session:
public static String getSyncMode();
This method can be invoked by a Decision function. For example: If the Sync Mode is FORCE, then return True to sync the instance. Else, do not sync the instance.
To view the list of Fabric APIs, click http://[Fabric IP address]:3213/static/doc/user-api/index.html.