7.2.9.3.2. Configuration / fichiers utiles¶
Les fichiers de configuration du composant vitam-mongod
sont accessibles dans le répertoire /vitam/conf/mongod
.
7.2.9.3.2.1. Fichier mongod.conf
¶
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# where to write logging data.
systemLog:
destination: file
syslogFacility: local0
verbosity: {{ mongodb.verbosity | default(0) }}
traceAllExceptions: {{ mongodb.trace_all_exceptions | default('false') }}
logAppend: true
logRotate: reopen
path: {{ mongo_folder_log }}/mongod.log
# Where and how to store data.
storage:
dbPath: {{ mongo_db_path }}
directoryPerDB: true
{% if mongod_memory is defined and mongod_memory != '' %}
wiredTiger:
engineConfig:
cacheSizeGB: {{ mongod_memory }}
{% endif %}
# network interfaces
net:
port: {{ mongodb.mongod_port }}
bindIp: {{ ip_service }}{% if groups['hosts_dev_tools'] | length > 0 and ip_service != ip_admin %},{{ ip_admin }}{% endif %}
unixDomainSocket:
enabled: true
pathPrefix: {{ mongo_tmp_path }}
filePermissions: 0700
# operationProfiling:
replication:
replSetName: shard{{ mongo_shard_id }} # name of the replica set
enableMajorityReadConcern: true
sharding:
clusterRole: shardsvr # role du shard
# During (re)initialization, authentication is temporarily disabled to ensure replica-set & user creation/update.
# Authentication will be (re)enabled during mongo_configure role execution
7.2.9.3.2.2. Fichier keyfile
¶
{{ mongodb[mongo_cluster_name].passphrase }}
7.2.9.3.2.3. Fichier de données¶
Ce service utilise des fichiers de données localisés dans le répertoire /vitam/data/mongod/db