7.2.9.2.2. Configuration / fichiers utiles

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

7.2.9.2.2.1. Fichier mongoc.conf

# mongoc.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
  logAppend: true
  logRotate: reopen
  path: {{ mongo_folder_log }}/mongoc.log


# Where and how to store data.
storage:
  dbPath: {{ mongo_db_path }}
  directoryPerDB: true


# network interfaces
net:
  port: {{ mongodb.mongoc_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: configsvr # name of the replica set
  enableMajorityReadConcern: true

sharding:
  clusterRole: configsvr # role du shard


# ansible managed security conf

7.2.9.2.2.2. Fichier keyfile

{{ mongodb[mongo_cluster_name].passphrase }}

7.2.9.2.2.3. Fichier de données

Ce service utilise des fichiers de données localisés dans le répertoire /vitam/data/mongoc/db