현재 MongoDB의 설정을 확인하기 위해 getCmdLineOpts를 사용할 수 있습니다. 쿼리는 다음과 같습니다 -
> db._adminCommand({getCmdLineOpts:1});
다음은 출력입니다 -
{ "argv" :[ "mongod" ], "parsed" :{ }, "ok" :1 }
라이브 설정을 확인하려면 아래 쿼리를 사용할 수 있습니다 -
> db._adminCommand({getParameter:"*"});
다음은 출력 &마이너스
입니다. { "AsyncRequestsSenderUseBaton를"참 "KeysRotationIntervalSec를"7776000 "ShardingTaskExecutorPoolHostTimeoutMS"300000 "ShardingTaskExecutorPoolMaxConnecting"2 "ShardingTaskExecutorPoolMaxSize"-1 "ShardingTaskExecutorPoolMinSize"1 "ShardingTaskExecutorPoolRefreshRequirementMS"60000 "ShardingTaskExecutorPoolRefreshTimeoutMS" 20000 "TransactionRecordMinimumLifetimeMinutes"30 "adaptiveServiceExecutorIdlePctThreshold"60 "adaptiveServiceExecutorMaxQueueLatencyMicros"500 "adaptiveServiceExecutorRecursionLimit"8 "adaptiveServiceExecutorReservedThreads"-1 "adaptiveServiceExecutorRunTimeJitterMillis"500 "adaptiveServiceExecutorRunTimeMillis"5000 "adaptiveServiceExecutorStuckThreadTimeoutMillis" 250, "allowSecondaryReadsDuringBatchApplication":true, "authSchemaVersion":5, "authenticationMechanisms":[ "MONGODB-X509", "SCRAM-SHA-1", "SCRAM-SHA-256" ], "bgSyncOplogFetcherBatc hSize":13981010, "clientCursorMonitorFrequencySecs":4, "cloudFreeMonitoringEndpointURL":"https://cloud.mongodb.com/freemonitoring/mongo", "clusterAuthMode":"undefined", "collectionClonerBatchSize":-1, "connHostPool" (200), "connPoolMaxInUseConnsPerHost":2147483647, "connPoolMaxShardedConnsPerHost":200, "connPoolMaxShardedInUseConnsPerHost":2147483647, "createRollbackDataFiles"사실, "createTimestampSafeUniqueIndex"거짓 "cursorTimeoutMillis"NumberLong으로 (600000), "debugCollectionUUIDs"거짓 "diagnosticDataCollectionDirectorySizeMB" :200, "diagnosticDataCollectionEnabled" :true, "diagnosticDataCollectionFileSizeMB" :10, "diagnosticDataCollectionPeriodMillis" :1000, "diagnosticDataCollectionSamplesPerChunk" :300, "diagnosticDataCollectionSamplesPerInterimUpdate":dissel, falseLogicre,disableLogical,disableJavaScriptJ , "비활성화된SecureAllo catorDomains":[ ], "enableElectionHandoff":true, "enableInMemoryTransactions":false, "enableLocalhostAuthBypass":true, "enableTestCommands":false, "failIndexKeyTooLong":true, "featureCompatibilityVersion":{ "version":"4.0" }, "forceRollbackViaRefetch"거짓 "globalConnPoolIdleTimeoutMinutes":2147483647, "initialSyncOplogBuffer":"수집", "initialSyncOplogBufferPeekCacheSize"10000 "initialSyncOplogFetcherBatchSize"13981010 "internalDocumentSourceCursorBatchSizeBytes"4194304 "internalDocumentSourceLookupCacheSizeBytes"104857600 "internalGeoNearQuery2DMaxCoveringCells":16, "internalGeoPredicateQuery2DMaxCoveringCells":16, "internalInsertMaxBatchSize":64, "internalProhibitShardOperationRetry":false, "internalQueryAlwaysMergeOnPrimaryShard", "InternalQueryAlwaysMergeOnPrimaryShard"0, "InternalQueryCache05inQuery0":num. IntersectPerAnd ":3"internalQueryEnumerationMaxOrSolutions "10"internalQueryExecMaxBlockingSortBytes "33554432"internalQueryExecYieldIterations "128"internalQueryExecYieldPeriodMS "10"internalQueryFacetBufferSizeBytes "104857600"internalQueryForceIntersectionPlans "거짓"internalQueryIgnoreUnknownJSONSchemaKeywords "거짓"internalQueryMaxScansToExplode " 200, "internalQueryPlanEvaluationCollFraction"0.3 "internalQueryPlanEvaluationMaxResults"101 "internalQueryPlanEvaluationWorks"10000 "internalQueryPlanOrChildrenIndependently"참 "internalQueryPlannerEnableHashIntersection"거짓 "internalQueryPlannerEnableIndexIntersection"참 "internalQueryPlannerGenerateCoveredWholeIndexScans"거짓 "internalQueryPlannerMaxIndexedSolutions"64 , "internalQueryProhibitBlockingMergeOnMongoS":거짓, "internalQueryProhibitMergingOnMongoS":거짓, "internalQueryS2GeoCoarsestLevel":0, "internalQueryS2 {GeoFinestLevel":23, "internalQueryS2GeoMaxCells":20, "internalValidateFeaturesAsMaster":true, "javascriptProtection":false, "journalCommitInterval":0, "jsHeapLimitMB":1100, "localLogicalSessionTimeoutMinutes":V30, "localLogicalSessionTimeoutMinutes":V30, " 0, "accessControl" :{ "verbosity" :-1 }, "command" :{ "verbosity" :-1 }, "control" :{ "verbosity" :-1 }, "executor" :{ "verbosity" :-1 }, "geo" :{ "verbosity" :-1 }, "index" :{ "verbosity" :-1 }, "network" :{ "verbosity" :-1, "asio" :{ "verbosity" :-1 }, "bridge" :{ "verbosity" :-1 } }, "query" :{ "verbosity" :-1 }, "replication" :{ "verbosity" :-1, "heartbeats" :{ " verbosity" :-1 }, "롤백" :{ "verbosity" :-1 } }, "sharding" :{ "verbosity" :-1, "shard ingCatalogRefresh" :{ "verbosity" :-1 } }, "storage" :{ "verbosity" :-1, "recovery" :{ "verbosity" :-1 }, "journal" :{ "verbosity" :-1 } }, "쓰기" :{ "상세" :-1 }, "ftdc" :{ "상세" :-1 }, "추적" :{ "상세" :-1 }, "트랜잭션" :{ "상세" :-1 } }, "logLevel":0, "logicalSessionRefreshMillis":300000, "maxAcceptableLogicalClockDriftSecs":NumberLong(31536000), "maxBSONDepth":Collonersitors:200, "maxIndexBuildMemoryUsageMegabytes,":maxLogS000 "IntAntsSessions":1000000, "maxSyncSourceLagSecs":30, "maxTransactionLockRequestTimeoutMillis":5, "migrateCloneInsertionBatchDelayMS":0, "migrateCloneInsertion1Sync0,"Collections0num, falsenotables":false, " " :3, "numIn itialSyncCollectionFindAttempts":3, "numInitialSyncConnectAttempts":10, "numInitialSyncListCollectionsAttempts":3, "numInitialSyncListDatabasesAttempts,",",",",","Configpher:Dsl,"Finds","Opttempts" "numInitialSyncListIndexesAttempts":3, ""log" oplogFetcherInitialSyncMaxFetcherRestarts "10"oplogFetcherSteadyStateMaxFetcherRestarts "1"oplogInitialFindMaxSeconds "60"oplogRetriedFindMaxSeconds "2"orphanCleanupDelaySecs "900"periodicNoopIntervalSecs "10"priorityTakeoverFreshnessWindowSeconds "2"조용 "거짓"rangeDeleterBatchDelayMS " :20, "rangeDeleterBatchSize":0, "recoverFromOplogAsStandalone":false, "replBatchLimitOperations":5000, "replElectionTimeoutOffsetLimitFraction":0.15, "replIndexPrefetch":"uninitialized", "replWriterServiceThreadCountre":"uninitialized", "replWriterServiceThreadCountre"::2000년, "rollbackTimeLimitSecs":86400, "saslHostName":"DESKTOP-QN2RB3H", "saslServiceName":"mongodb", "saslauthdPath":"", "scramIterationCount":10000, "scramSHA256IterationCount":InterruptingIntervalEMS0:"15000" shardedConnPoolIdleTimeoutMinutes":2147483647, "skipCorruptDocumentsWhenCloning":false, "skipShardingConfigurationChecks":false, "sslMode":"사용 안 함", "sslWithholdClientCertificate":sync0dening0:false, "startupAuthSchemaValidationpress":false, "startupAuthSchemaValidationpress":true, synchronousServiceExecutorRecursionLimit":8, "taskExecutorPoolSize":1, "tcmallocAggressiveMemoryDecommit":0, "tcmallocEnableMarkThreadTemporarilyIdle":false, "tcmallocMaxTotalThreadCacheBytes", "tcmallocMaxTotalThreadCacheBytes":NumberLong(10733741824) "transactionLifetimeLimitSeconds":60, "ttlMonitorEnabled":true, "t tlMonitorSleepSecs":60, "waitForSecondaryBeforeNoopWriteMS":10, "wiredTigerConcurrentReadTransactions":128, "wiredTigerConcurrentWriteTransactions":128:Nioopwrite:N,"RuntimesorCacheSize":-100, "Runtimes", "와이어드Tiger" /사전>