Effect of setting "HybridMode" to "WriteToFileSystem" in Cloud Object Storage plugins

Greetings,

I just wanted to confirm if my understanding of the effect of setting “HybridMode” to “WriteToFileSystem” in Orthanc Cloud Object Storage plugins is correct. This will make Orthanc store studies to the local file system until there is no more space there and then start using the Object storage? Is this correct? But if this is the case then wouldnt the newest/latest studies end up in object storage(if the filesystem is full) contrary to what it says in the documentation at at Cloud Object Storage plugins — Orthanc Book documentation ?

I read the documentation but its not clear to me how the filesystem and object storage work together when setting setting “HybridMode” to “WriteToFileSystem”

No, in “WriteToFileSystem” mode, Orthanc will always write to the file system and try to read from both the file system and the object storage. There is no automatic process that moves files from one storage to the other.

BR,

Alain

1 Like

So in this mode, images are always written to the file system. if that mean it will create a copy in the object storage of the incoming study along with being written to the disk? please give me some more info. We want to load studies from the disk if available otherwise load from object storage, is this achievable?

Hi,

When writing, there is no copy, the data is either written to disk OR to object storage depending on the HybridMode configuration.

When reading, the plugin always try to read from both the disk AND the object storage.

But this is already explained in the documentation.

Best regards

Alain