zoukankan      html  css  js  c++  java
  • MongoDB官网配置项目整理

    MongoDB的配置文件共有10个项目:

    systemLog:
    processManagement:
    net:
    security:
    storage:
    operationProfiling:
    replication:
    sharding:
    auditLog:
    snmp:

    详细解析如下:

    systemLog:
       verbosity: <int>
       quiet: <boolean>
       traceAllExceptions: <boolean>
       syslogFacility: <string>
       path: <string>
       logAppend: <boolean>
       logRotate: <string>
       destination: <string>
       timeStampFormat: <string>
       component:
          accessControl:
             verbosity: <int>
          command:
             verbosity: <int>
          # COMMENT some component verbosity settings omitted for brevity
          replication:
             verbosity: <int>
             heartbeats:
                verbosity: <int>
             rollback:
                verbosity: <int>
          storage:
             verbosity: <int>
             journal:
                verbosity: <int>
          write:
             verbosity: <int>

    processManagement:
       fork: <boolean>
       pidFilePath: <string>
       timeZoneInfo: <string>

    net:
       port: <int>
       bindIp: <string>
       bindIpAll: <boolean>
       maxIncomingConnections: <int>
       wireObjectCheck: <boolean>
       ipv6: <boolean>
       unixDomainSocket:
          enabled: <boolean>
          pathPrefix: <string>
          filePermissions: <int>
       ssl:
          sslOnNormalPorts: <boolean>  # deprecated since 2.6
          mode: <string>
          PEMKeyFile: <string>
          PEMKeyPassword: <string>
          clusterFile: <string>
          clusterPassword: <string>
          CAFile: <string>
          CRLFile: <string>
          allowConnectionsWithoutCertificates: <boolean>
          allowInvalidCertificates: <boolean>
          allowInvalidHostnames: <boolean>
          disabledProtocols: <string>
          FIPSMode: <boolean>
       compression:
          compressors: <string>
       transportLayer: <string>
       serviceExecutor: <string>

    security:(Most Available only in MongoDB Enterprise)
       keyFile: <string>
       clusterAuthMode: <string>
       authorization: <string>
       transitionToAuth: <boolean>
       javascriptEnabled:  <boolean>
       redactClientLogData: <boolean>
       sasl:
          hostName: <string>
          serviceName: <string>
          saslauthdSocketPath: <string>
       enableEncryption: <boolean>
       encryptionCipherMode: <string>
       encryptionKeyFile: <string>
       kmip:
          keyIdentifier: <string>
          rotateMasterKey: <boolean>
          serverName: <string>
          port: <string>
          clientCertificateFile: <string>
          clientCertificatePassword: <string>
          serverCAFile: <string>
       ldap:
          servers: <string>
          bind:
             method: <string>
             saslMechanisms: <string>
             queryUser: <string>
             queryPassword: <string>
             useOSDefaults: <boolean>
          transportSecurity: <string>
          timeoutMS: <int>
          userToDNMapping: <string>
          authz:
             queryTemplate: <string>

    storage:
       dbPath: <string>
       indexBuildRetry: <boolean>
       repairPath: <string>
       journal:
          enabled: <boolean>
          commitIntervalMs: <num>
       directoryPerDB: <boolean>
       syncPeriodSecs: <int>
       engine: <string>
       mmapv1:
          preallocDataFiles: <boolean>
          nsSize: <int>
          quota:
             enforced: <boolean>
             maxFilesPerDB: <int>
          smallFiles: <boolean>
          journal:
             debugFlags: <int>
             commitIntervalMs: <num>
       wiredTiger:
          engineConfig:
             cacheSizeGB: <number>
             journalCompressor: <string>
             directoryForIndexes: <boolean>
          collectionConfig:
             blockCompressor: <string>
          indexConfig:
             prefixCompression: <boolean>
       inMemory:
          engineConfig:
             inMemorySizeGB: <number>

    operationProfiling:
       mode: <string>
       slowOpThresholdMs: <int>
       slowOpSampleRate: <double>

    replication:
       oplogSizeMB: <int>
       replSetName: <string>
       secondaryIndexPrefetch: <string>
       enableMajorityReadConcern: <boolean>  ## Deprecated in 3.6

    sharding:
       clusterRole: <string>
       archiveMovedChunks: <boolean>

    auditLog:(Available only in MongoDB Enterprise)
       destination: <string>
       format: <string>
       path: <string>
       filter: <string>

    snmp:
       subagent: <boolean>
       master: <boolean>

    每个项目的详细解析见官方手册:

    https://docs.mongodb.com/v3.6/reference/configuration-options/

    [THE END]

  • 相关阅读:
    html 上传图片前预览
    php获取当月天数及当月第一天及最后一天、上月第一天及最后一天实现方法
    php 计算 pdf文件页数
    php 获取半年内每个月的订单数量, 总价, 月份
    php 获取两个数组之间不同的值
    小程序支付功能
    关于nginx的Job for nginx.service failed because the control process exited with error code.错误
    linux 安装 Apollo
    MongoDB待续。。。
    ABP vNext...待续
  • 原文地址:https://www.cnblogs.com/configure/p/9530891.html
Copyright © 2011-2022 走看看