Option disk space recycling no clear

Regarding space recycling in the official documentation said:

“… Recycling is controlled by the MaximumStorageSize and the MaximumPatientCount options in the Orthanc configuration file. Setting both these values to 0 will disable recycling …”

But when run Orthanc, de log messages show:

MAIN ServerIndex.cpp:381] No limit on the number of stored patients
MAIN ServerIndex.cpp:401] No limit on the size of the storage area
MAIN ServerIndex.cpp:420] Maximum Storage mode: Recycle

So, in my understand this is a Maximum Storage mode: Protection or something else. Is very confusing understand exactly what this message means.

I just saw in the repository the new parameter:
"MaximumStorageMode" : "Recycle"

I would add the Protected option additionally:
"MaximumStorageMode" : "Protected"

Hi Alejandro,

I understand that this is not clear. I tried to clarify it both in the orthanc-book and in the code by not displaying this log if it is actually no relevant:

To summarize:

  • MaximumStorageMode is taken into account only if you have set a MaximumStorageSize != 0 or a MaximumPatientCount != 0
  • to protect a patient, you must explicitly send a PUT command on /patients/../protected
  • if you have not set any maximum size, your patients will never be deleted but they might be, in the future, if you set a maximum size.

HTH,

Alain.

1 Like