GitHub
Download
Forum
Overview
Tutorial
C++ API
C# API
DTDL
DADL
Setup
DataFS SDK setup
DataFS setup
DataFS Tools
DataFS setup parameters
stcStorageDiskSettings
stcStorageDiskOpen
stcStorageDiskCreate
stcDomainStorage
stcDomainSettings
stcStorageSettings
stcStorageSettings structure
Storage settings
Syntax
struct
stcStorageSettings
{
U
INT32
ulSize;
GUID
guidId;
w
char
_t
*
strName;
U
INT32
ulFlags;
U
INT16
usStorageId;
U
INT8
ubtServerId;
U
INT8
ubtSecureBlockShift;
U
INT32
ulLogDataPoolLength;
U
INT32
ulLogDataReplicationPoolLength;
U
INT32
ulLogDataBlockSize;
U
INT32
ulMinStorageElementCount;
U
INT32
ulMaxStorageElementCount;
U
INT32
ulMinStorageDataSize;
U
INT32
ulMaxStorageDataSize;
U
INT32
ulDeltaStorageDataSize;
U
INT32
ulMinPartObjectCount;
U
INT32
ulMaxPartObjectCount;
U
INT32
ulCacheHalfLife;
U
INT32
ulMinStorageCount;
U
INT32
ulMaxStorageCount;
U
INT32
ulDeltaStorageCount;
U
INT32
ulMinPartCount;
U
INT32
ulMaxPartCount;
U
INT32
ulDeltaPartCount;
U
INT32
ulWriteDownThreadCount;
U
INT32
ulMaxIncompleteTransaction;
U
INT32
ulReplicationThreadCount;
U
INT32
ulEventThreadCount;
};
Member
ulSize
Type:
UINT32
The size (sizeof(stcStorageSettings)) of the structure.
guidId
Type:
GUID
The globally unique ID of the domain.
strName
Type:
wchar_t*
The name of the domain. This name is only used in GUIs.
ulFlags
Type:
UINT32
0x1 Enabled (read-only, use “EnableStorage” to set it).
usStorageId
Type:
UINT16
The ID of the storage in relation to the domain.
ubtServerId
Type:
UINT8
The ID of the server in relation to the storage.
ubtSecureBlockShift
Type:
UINT8
Defines the size of a block that is written in a single operation (atomic) by the storage device used. The size of a block is 1 << ubtSecureBlockShift. If the value is less than 9, the value is increased so that a minimum block size of 512 is created.
ulLogDataPoolLength
Type:
UINT32
The log blocks’ count for incoming write requests is kept loaded in the memory.
ulLogDataReplicationPoolLength
Type:
UINT32
Always 0.
ulLogDataBlockSize
Type:
UINT32
Size of log blocks.
Minimum value: 1048576 (1 MB)
Default value: 1048576 (1 MB)
ulMinStorageElementCount
Type:
UINT32
Minimum count of objects that can be stored inside an object storage.
Minimum value: 32
Default value: 32
ulMaxStorageElementCount
Type:
UINT32
Maximum count of objects that can be stored inside an object storage.
Minimum value: 8192
Default value: 8192
ulMinStorageDataSize
Type:
UINT32
Minimum size of object data that can be stored inside an object storage.
Minimum value: 4096 (4 KB)
Default value: 4096 (4 KB)
ulMaxStorageDataSize
Type:
UINT32
Maximum size of object data that can be stored inside an object storage.
Minimum value: 8388608 (8 MB)
Default value: 8388608 (8 MB)
ulDeltaStorageDataSize
Type:
UINT32
Size that the object data size is increased or decreased by when more or less space is needed.
Minimum value: 131072 (128 KB)
Default value: 131072 (128 KB)
ulMinPartObjectCount
Type:
UINT32
Minimum count of objects inside a part of the caching table for open objects.
ulMaxPartObjectCount
Type:
UINT32
Maximum count of objects inside a part of the caching table for open objects.
Minimum value: 64
Default value: 64
ulCacheHalfLife
Type:
UINT32
Time in milliseconds after which the system tries to reduce the size of the data inside the cache if the data has not been used.
ulMinStorageCount
Type:
UINT32
Minimum count of object storages kept loaded in the memory for caching.
ulMaxStorageCount
Type:
UINT32
Maximum count of object storages kept loaded in the memory for caching.
ulDeltaStorageCount
Type:
UINT32
Delta count that the storage count is reduced by after not being used for more than the ulCacheHalfLife time.
ulMinPartCount
Type:
UINT32
Minimum count of caching tables for caching objects.
ulMaxPartCount
Type:
UINT32
Maximum count of caching tables for caching objects.
ulDeltaPartCount
Type:
UINT32
Delta count that the part count is reduced by after not being used for more than the ulCacheHalfLife time.
ulWriteDownThreadCount
Type:
UINT32
Count of threads to be used to make logged transaction changes to the data in the database.
ulMaxIncompleteTransaction
Type:
UINT32
Maximum number of incomplete transactions. A transaction is complete once it is fully processed. This is when it has been logged and all the changes have been made to the data in the database.
The system delays the execution of client write requests until the count of incomplete transactions falls below this limit.
ulReplicationThreadCount
Type:
UINT32
Always 0.
ulEventThreadCount
Type:
UINT32
Count of threads to be used for event handling. Events are sent to clients to inform them of changes to the database.
© 2022 Mobiland AG