7.2.9.3.2. Configuration / fichiers utiles

Les fichiers de configuration du composant vitam-mongoc sont accessibles dans le répertoire /vitam/conf/mongoc.

7.2.9.3.2.1. Fichier mongoc.conf

# mongod.conf

# for documentation of all options, see:
#   http://docs.mongodb.org/manual/reference/configuration-options/


# where to write logging data.
systemLog:
  destination: syslog
  syslogFacility: local0
  logAppend: true


# 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


# ansible managed security conf

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/conf/mongoc/db