Computer >> คอมพิวเตอร์ >  >> การเขียนโปรแกรม >> MongoDB

จะตรวจสอบการกำหนดค่าปัจจุบันของ MongoDB ได้อย่างไร


ในการตรวจสอบการกำหนดค่าปัจจุบันของ 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", "collectionClonerBatchSizeconn" :-1Max, Per 200, "connPoolMaxInUseConnsPerHost" :2147483647, "connPoolMaxShardedConnsPerHost" :200, "connPoolMaxShardedInUseConnsPerHost" :2147483647, "createRollbackDataFiles" :จริง "createTimestampSafeUniqueIndex":เท็จ, UI ของ UI, UI ของแคช, ข้อผิดพลาด M:ข้อผิดพลาด :200, "diagnosticDataCollectionEnabled" :true, "diagnosticDataCollectionFileSizeMB" :10, "diagnosticDataCollectionPeriodMillis" :1000, "diagnosticDataCollectionSamplesPerChunk" :300, "diagnosticDataCollectionSamplesPerInterimUpdateableC" :disisticDataCollectionSamplesPerInterimUpdateableC สคริปต์ "เท็จ":สคริปต์ dissticDataCollectionSamplesPerInterimgingableCava , "ปิดการใช้งานSecureAllo catorDomains" :[ ], "enableElectionHandoff" :true, "enableInMemoryTransactions" :false, "enableLocalhostAuthBypass" :true, "enableTestCommands" :false, "failIndexKeyTooLong" :true, "featureCompatibilityVersion" } ":"forceRollbackViaRefetch" เท็จ "globalConnPoolIdleTimeoutMinutes":2147483647 "initialSyncOplogBuffer":"คอลเลกชัน", "initialSyncOplogBufferPeekCacheSize":10000 "initialSyncOplogFetcherBatchSize":13981010 "internalDocumentSourceCursorBatchSizeBytes":4194304 "internalDocumentSourceLookupCacheSizeBytes":104857600, "internalGeoNearQuery2DMaxCoveringCells":16 "internalGeoPredicateQuery2DMaxCoveringCells" :16, "internalInsertMaxBatchSize" :64, "internalProhibitShardOperationRetry" :เท็จ "internalQueryAlwaysMergeOnPrimaryShard" :เท็จ "internalQueryCacheEvictionRatio" :10 FeedbacksMaxCacheed , QueryCacheed ภายใน 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, "localLogicalSessionTimeout, "overbos":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 }, "rollback" :{ "verbosity" :-1 } }, "sharding" :{ "verbosity" :-1, "shard) ละเอียด ingCatalogRefresh" :{ "verbosity" :-1 } }, "storage" :{ "verbosity" :-1, "recovery" :{ "verbosity" :-1 }, "journal" :{ "verbosity" :-1 } }, "เขียน" :{ "verbosity" :-1 }, "ftdc" :{ "verbosity" :-1 }, "tracking" :{ "verbosity" :-1 }, "transaction" :{ "verbosity" :-1 } } "logLevel" :0, "logicalSessionRefreshMillis" :300000, "maxAcceptableLogicalClockDriftSecs" :NumberLong(31536000), "maxBSONDepth" :200 "maxIndexBuildMemoryInsageMegabytes" :ซิงค์สูงสุด 500 ":maxCizeKBlons" "maxSessions" :1000000, "maxSyncSourceLagSecs" :30, "maxTransactionLockRequestTimeoutMillis" :5, "migrateCloneInsertionBatchDelayMS" :0, "migrateCloneInsertionBatchSize" :0, "newCollectionsUsePowerOf2Sizes" :ชั่วคราว " :3, "จำนวนอิน itialSyncCollectionFindAttempts" :3, "numInitialSyncConnectAttempts" :10, "numInitialSyncListCollectionsAttempts" :3, "numInitialSyncListDatabasesAttempts" :3, "numInitialSyncListIndexesAttempts" :3, "ConnumInitialSyncOpstemps, 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" :"ไม่ได้กำหนดค่าเริ่มต้น", "ReplElectionTimeoutOffsetLimitFraction" :2000, "rollbackTimeLimitSecs" :86400, "saslHostName" :"DESKTOP-QN2RB3H", "saslServiceName" :"mongodb", "saslauthdPath" :"", "scramIterationCount" :10000, "scramSHA256IterationCount" :15000rupting, "การเขียนสคริปต์" shardedConnPoolIdleTimeoutMinutes" :2147483647, "skipCorruptDocumentsWhenCloning" :false, "skipShardingConfigurationChecks" :false, "sslMode" :"disabled", "sslWithholdClientCertificate" :false, "falerCaltupAuthnings":"เท็จ":maVtificate, true:synchronousServiceExecutorRecursionLimit" :8, "taskExecutorPoolSize" :1, "tcmallocAggressiveMemoryDecommit" :0, "tcmallocEnableMarkThreadTemporarilyIdle" :เท็จ "tcmallocMaxTotalThreadCacheBytes" :ข้อผิดพลาด 4182Long, ข้อยกเว้น:Betesting "TcmallocMaxTotalThreadCacheBytes" ที่เป็นเท็จ, ข้อยกเว้น:ข้อผิดพลาด 10 รายการ, ข้อยกเว้น:10 รายการ "transactionLifetimeLimitSeconds" :60, "ttlMonitorEnabled" :จริง "t tlMonitorSleepSecs" :60, "waitForSecondaryBeforeNoopWriteMS" :10, "wiredTigerConcurrentReadTransactions" :128, "wiredTigerConcurrentWriteTransactions" :128, "wiredTigerCursorCacheSize" :-100, "wiredConcurrentReadTransactions" :"wiredConcurrentWriteTransactions":"wiredTigerCursorCacheSize" :-100, "wiredConcurrent" รันไทม์ /pre>