8.2.17.2.3. Configuration / fichiers utiles¶
Les fichiers de configuration sont gérés par les procédures d’installation ou de mise à niveau de l’environnement VITAM. Se référer au DIN.
Les fichiers de configuration sont définis sous /vitam/conf/storage-engine.
8.2.17.2.3.1. Fichier driver-location.conf¶
driverLocation: {{ vitam_folder_lib }}
8.2.17.2.3.2. Fichier driver-mapping.conf¶
driverMappingPath: {{ vitam_folder_data }}/
delimiter: ;
8.2.17.2.3.3. Fichier static-offer.json¶
#jinja2: lstrip_blocks: True
[
{% for item in all_used_offers %}
{
{% if item.id is defined %}
"id": "{{ item.id }}",
{% else %}
"id": "{{ item.name }}.service.{{ item.vitam_site_name | default(vitam_site_name) }}.{{ consul_domain }}",
{% endif %}
"baseUrl": "http{% if vitam.offer.https_enabled | bool %}s{% endif %}://{{ item.name }}.service.{{ item.vitam_site_name | default(vitam_site_name) }}.{{ consul_domain }}:{{ vitam.offer.port_service }}",
{% if item.asyncRead is defined %} "asyncRead": {{ item.asyncRead | bool | lower }},{% endif %}
"parameters": {
{% if vitam.offer.https_enabled | bool %}
"keyStore-keyPath": "{{ vitam_folder_conf }}/keystore_storage.p12",
"keyStore-keyPassword": "{{ keystores.client_storage.storage }}",
"trustStore-keyPath": "{{ vitam_folder_conf }}/truststore_storage.jks",
"trustStore-keyPassword": "{{ truststores.client_storage }}"
{% endif %}
}
}{% if not loop.last %},{% endif %}
{% endfor %}
]
8.2.17.2.3.4. Fichier static-strategy.json¶
Ce fichier décrit les stratégies de stockage définies, ainsi que les offres en associées. Chaque offre de stockage définit un ordre
de lecture rank. Cet ordre sera pris en considération pour la lecture des objets dans une stratégie. Cependant, pour le cas
de la reconstruction, la lecture des objets se fait à travers l’offre référente de la startégie ( celle qui a la propriété referent en true).
#jinja2: lstrip_blocks: True
[
{
"id": "default",
"offers": [
{% for item in vitam_strategy %}
{
{% if item.id is defined %}
"id": "{{ item.id }}",
{% else %}
"id": "{{ item.name }}.service.{{ item.vitam_site_name | default(vitam_site_name) }}.{{ consul_domain }}",
{% endif %}
"referent": {{ item.referent | default(false) | bool | lower }},
"status": "{{ item.status | default('ACTIVE') | upper }}",
"rank": {{ item.rank }}
}{% if not loop.last %},{% endif %}
{% endfor %}
]
}
{% if other_strategies is defined %}
{% for strategy_name, strategy_offers in other_strategies.items() %}
, {
"id": "{{ strategy_name }}",
"offers": [
{% for strategy_offer in strategy_offers %}
{
"id": "{{ strategy_offer.name }}.service.{{ strategy_offer.vitam_site_name |default(vitam_site_name) }}.{{ consul_domain }}",
"referent": {{ strategy_offer.referent | default(false) | bool | lower }},
"status": "{{ strategy_offer.status | default('ACTIVE') | upper }}",
"rank": {{ strategy_offer.rank }}
}{% if not loop.last %},{% endif %}
{% endfor %}
]
}
{% endfor %}
{% endif %}
]
8.2.17.2.3.5. Fichier storage-engine.conf¶
jettyConfig: jetty-config.xml
readOnly: {{ not primary_site | bool | lower }}
urlWorkspace: {{ vitam.workspace | client_url }}
zippingDirecorty: {{ vitam_folder_data }}/storage_archives
loggingDirectory: {{ vitam_folder_log }}
p12LogbookPassword: {{ keystores.timestamping.secure_storage }}
p12LogbookFile: keystore_{{ vitam_timestamp_usage }}.p12
# Basic Authentication
adminBasicAuth:
- userName: {{ admin_basic_auth_user }}
password: {{ admin_basic_auth_password }}
# unit time per kB (in ms) used while calculating the timeout of an http request between storage and offer.
timeoutMsPerKB: {{ vitam.storage.timeoutMsPerKB | default(100) }}
# minimum timeout (in ms) for writing objects to offers
minWriteTimeoutMs: {{ vitam.storage.minWriteTimeoutMs | default(60000) }}
# minimum timeout per object (in ms) for bulk writing objects to offers
minBulkWriteTimeoutMsPerObject: {{ vitam.storage.minBulkWriteTimeoutMsPerObject | default(10000) }}
# Offer synchronization batch size & thread pool size
offerSynchronizationBulkSize: {{ vitam.storage.offerSynchronizationBulkSize | default(1000) }}
offerSyncThreadPoolSize: {{ vitam.storage.offerSyncThreadPoolSize | default(32) }}
# Retries attempts on failures
offerSyncNumberOfRetries: {{ vitam.storage.offerSyncNumberOfRetries | default(3) }}
# Retry wait delay on failures (in seconds)
offerSyncFirstAttemptWaitingTime: {{ vitam.storage.offerSyncFirstAttemptWaitingTime | default(15) }}
offerSyncWaitingTime: {{ vitam.storage.offerSyncWaitingTime | default(30) }}
# Offer synchronization wait delay (in seconds) for async offers (synchronization from a tape-storage offer)
offerSyncAccessRequestCheckWaitingTime: {{ vitam.storage.offerSyncAccessRequestCheckWaitingTime | default(10) }}
# Storage write/access log backup max thread pool size
storageLogBackupThreadPoolSize: {{ vitam.storage.storageLogBackupThreadPoolSize | default(16) }}
# Storage write log traceability thread pool size
storageLogTraceabilityThreadPoolSize: {{ vitam.storage.storageLogTraceabilityThreadPoolSize | default(16) }}
storageTraceabilityOverlapDelay: {{ vitam.storage.storageTraceabilityOverlapDelay | default(300) }}