The Fabric SET SYNC command is used to define the synchronization mode of an instance from source systems. The default value is On.
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. |
Synchronization is not performed, however if the LU instance already exists in Fabric, it will bring the existing LU instance data based on the most updated LU Schema definition. If the LU instance does not yet exist in Fabric, the following warning message is displayed:Instance '<LU Name>:<Instance ID>' was not found and Sync is disabled. |
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. |
DELTA |
Delta sync. |
Valid in the iidFinder in Delta Partition mode when there is no delta will be running in Sync Off mode otherwsie Sync On. |
Note that the sync returns an error message when a source is not available. To change this, 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, when 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 their Sync mode is set to ON. 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 mode (Sync is set to ON) only on the first GET request on the LUI. Remaining requests are executed in parallel to the first request, and are executed with the Sync mode set to OFF.
SYNC_PROTECTION can be edited in the config.ini file:
SYNC_PROTECTION can be disabled on the session level using the 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 Always Sync mode enables synchronizing the attached LUI when running SELECT queries on the LUI. The sync of the LUI is executed before the execution of the SELECT queries.
To define an Always Sync mode either:
The Fabric SET SYNC command is used to define the synchronization mode of an instance from source systems. The default value is On.
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. |
Synchronization is not performed, however if the LU instance already exists in Fabric, it will bring the existing LU instance data based on the most updated LU Schema definition. If the LU instance does not yet exist in Fabric, the following warning message is displayed:Instance '<LU Name>:<Instance ID>' was not found and Sync is disabled. |
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. |
DELTA |
Delta sync. |
Valid in the iidFinder in Delta Partition mode when there is no delta will be running in Sync Off mode otherwsie Sync On. |
Note that the sync returns an error message when a source is not available. To change this, 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, when 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 their Sync mode is set to ON. 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 mode (Sync is set to ON) only on the first GET request on the LUI. Remaining requests are executed in parallel to the first request, and are executed with the Sync mode set to OFF.
SYNC_PROTECTION can be edited in the config.ini file:
SYNC_PROTECTION can be disabled on the session level using the 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 Always Sync mode enables synchronizing the attached LUI when running SELECT queries on the LUI. The sync of the LUI is executed before the execution of the SELECT queries.
To define an Always Sync mode either: