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", "collectionClonerBatchSize" :-1, "ConnHost":200, "connPoolMaxInUseConnsPerHost":2147483647, "connPoolMaxShardedConnsPerHost" :200, "connPoolMaxShardedInUseConnsPerHost":2147483647, "createRollbackDataFiles":सच, "DicurlbackDataFiles":सच, "Directory"। :200, "diagnosticDataCollectionEnabled" :true, "diagnosticDataCollectionFileSizeMB" :10, "diagnosticDataCollectionPeriodMillis" :1000, "diagnosticDataCollectionSamplesPerChunk" :300, "diagnosticDataCollectionSamplesPerInterimUpdate" :10, "disableJavaScriptJIT" :सच, "कनेक्शनलॉगिंगडिस्सेबलएनजेबल:" असत्य:"कनेक्शन लॉगिंगडिसेबलJIT" , "अक्षमSecureAllo catorDomains" :[ ], "enableElectionHandoff" :true, "enableInMemoryTransactions" :false, "enableLocalhostAuthBypass" :true, "enableTestCommands" :false, "failIndexKeyTooLong" :true, "featureCompatibilityVersion" :". "forceRollbackViaRefetch":झूठे, "globalConnPoolIdleTimeoutMinutes":2147483647, "initialSyncOplogBuffer":"संग्रह", "initialSyncOplogBufferPeekCacheSize":10000, "initialSyncOplogFetcherBatchSize":13,981,010, "internalDocumentSourceCursorBatchSizeBytes":4,194,304, "internalDocumentSourceLookupCacheSizeBytes":104,857,600, "internalGeoNearQuery2DMaxCoveringCells":16, "internalGeoPredicateQuery2DMaxCoveringCells" :16, "internalInsertMaxBatchSize" :64, "internalProhibitShardOperationRetry" :false, "internalQueryAlwaysMergeOnPrimaryShard" :false, "internalQueryCacheEvictionRatio" C 10, "InternalQueryCacheEvictionRatio" C 10, "InternalQueryCacheEvictionRatio" C 10, "InternalQueryCacheEvictionRatio" C 10, "InternalQueryCacheEvictionRatio" C 10, "InternalQueryCacheEvictionRatio":IntersectPerAnd ":3," internalQueryEnumerationMaxOrSolutions ":10," internalQueryExecMaxBlockingSortBytes ":33,554,432," internalQueryExecYieldIterations ":128," internalQueryExecYieldPeriodMS ":10," internalQueryFacetBufferSizeBytes ":104,857,600," internalQueryForceIntersectionPlans ":झूठे," internalQueryIgnoreUnknownJSONSchemaKeywords ":झूठे," internalQueryMaxScansToExplode " :200, "internalQueryPlanEvaluationCollFraction":0.3, "internalQueryPlanEvaluationMaxResults":101, "internalQueryPlanEvaluationWorks":10000, "internalQueryPlanOrChildrenIndependently":सच है, "internalQueryPlannerEnableHashIntersection":झूठे, "internalQueryPlannerEnableIndexIntersection":सच है, "internalQueryPlannerGenerateCoveredWholeIndexScans":झूठे, "internalQueryPlannerMaxIndexedSolutions":64 , "internalQueryProhibitBlockingMergeOnMongoS" :false, "internalQueryProhibitMergingOnMongoS" :false, "internalQueryS2GeoCoarsestLevel" :0, "internalQueryS2 GeoFinestLevel" :23, "internalQueryS2GeoMaxCells" :20, "internalValidateFeaturesAsMaster" :true, "javascriptProtection" :false, "journalCommitInterval" :0, "jsHeapLimitMB" :1100, "localLogicalSession TimeoutMiner":0, "एक्सेसकंट्रोल":{"वर्बोसिटी":-1}, "कमांड":{"वर्बोसिटी":-1}, "कंट्रोल":{"वर्बोसिटी":-1}, "एक्ज़ीक्यूटर":{"वर्बोसिटी":-1}, "जियो":{"वर्बोसिटी":-1}, "इंडेक्स":{"वर्बोसिटी":-1}, "नेटवर्क":{"वर्बोसिटी":-1, "एएसआईओ":{"वर्बोसिटी" :-1}, "ब्रिज":{"वर्बोसिटी":-1}}, "क्वेरी":{"वर्बोसिटी":-1}, "प्रतिकृति":{"वर्बोसिटी":-1, "दिल की धड़कन":{ " वर्बोसिटी":-1}, "रोलबैक":{"वर्बोसिटी":-1}}, "शार्डिंग":{"वर्बोसिटी":-1, "शार्प" ingCatalogRefresh" :{ "verbosity" :-1 } }, "storage" :{ "verbosity" :-1, "recovery" :{ "verbosity" :-1 }, "journal" :{ "verbosity" :-1} }, "लिखें" :{ "वर्बोसिटी" :-1}, "एफटीडीसी" :{ "वर्बोसिटी" :-1}, "ट्रैकिंग" :{ "वर्बोसिटी" :-1}, "लेन-देन" :{ "वर्बोसिटी" :-1 } }, "logLevel" :0, "logicalSessionRefreshMillis" :300000, "maxAcceptableLogicalClockDriftSecs" :NumberLong(31536000), "maxBSONDepth" :200, "maxIndexBuildMemoryUsageMegabytes" :500, "maxLogSizeMemoryUsageMegabytes" :500, "maxLogSizeKB" "MaxSessions" :1000000, "maxSyncSourceLagSecs" :30, "maxTransactionLockRequestTimeoutMillis" :5, "migrateCloneInsertionBatchDelayMS" :0, "migrateCloneInsertionBatchSize" :0, "newCollectionsUsePowerOf2Sizes" :, सच:"गलत," SynctemptAnumtnumables, "संग्रह" " :3, "संख्या "IslSyncCollectionFindAttempts" :3, "numInitialSyncConnectAttempts" :10, "numInitialSyncListCollectionsAttempts" :3, "numInitialSyncListDatabasesAttempts" :3, "numInitialSyncListIndexesAttempts" :3, "ConfigInitialSyncOplogFit", "खुली", "संख्या InfigitialSyncOplogFit" 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", "replWriterThreadRecursion"SecutorRecursionReservedRemote::2000, "रोलबैकटाइम लिमिटसेक":86400, "एसएएसएलहोस्टनाम":"डेस्कटॉप-क्यूएन2आरबी3एच", "एसएएसएलसर्विसनाम":"मोंगोडब", "सस्लौथडपाथ":"", "स्क्रैमइटरेशनकाउंट":10000, "स्क्रैम:SHA256इटरेशनकाउंट":15000, "इंटरप्टिंगएमएस" shardedConnPoolIdleTimeoutMinutes" :2147483647, "स्किप करप्ट डॉक्यूमेंट्सव्हेनक्लोनिंग" :असत्य, "स्किपशर्डिंगकॉन्फ़िगरेशनचेक्स" :असत्य, "sslMode" :"अक्षम", "sslWithholdClientCertificate" :असत्य, "स्टार्टअपऑथस्केमा" सत्य, "सत्यापन" सिंक्रोनस सर्विस एक्ज़ीक्यूटर रिकर्सन लिमिट":8, "टास्क एक्ज़ीक्यूटरपूलसाइज़":1, "tcmallocAggressiveMemoryDecommit":0, "tcmallocEnableMarkThreadTemporallyIdle":असत्य, "tcmallocMaxTotalThreadCacheBytes", "अपवाद:" असत्य:"लेनदेन लाइफटाइम लिमिट सेकेंड":60, "ttlMonitorEnabled":सच, "टी tlMonitorSleepSecs" :60, "waitForSecondaryBeforeNoopWriteMS" :10, "wiredTigerConcurrentReadTransactions" :128, "wiredTigerConcurrentWriteTransactions" :128, "wiredTigerCursorCacheSize" :-100, "वायर्डटाइगर":"लिखें":/पूर्व> 
  1. जांचें कि क्या बिटअरे केवल सी # में पढ़ा जाता है

    यह जांचने के लिए कि क्या बिटअरे केवल पढ़ने के लिए है, कोड इस प्रकार है - उदाहरण using System; using System.Collections; public class Demo {    public static void Main() {       BitArray arr1 = new BitArray(2);       BitArray arr2 = new BitArray(2);   &nbs

  1. सी # में धागे की वर्तमान स्थिति कैसे जांचें?

    एक थ्रेड की वर्तमान स्थिति की जांच करने के लिए, कोड इस प्रकार है - उदाहरण using System; using System.Threading; public class Demo {    public static void Main(){       Thread thread = new Thread(new ThreadStart(demo1));       ThreadPool.QueueUserWorkItem(new W

  1. कैसे जांचें कि किसी स्ट्रिंग में केवल दशमलव वर्ण हैं या नहीं?

    स्ट्रिंग क्लास में isdigit() नामक एक विधि है जो स्ट्रिंग में सभी वर्ण अंक होने पर सत्य लौटाती है और कम से कम एक वर्ण होता है, अन्यथा झूठा। आप इसे इस प्रकार कॉल कर सकते हैं: >>> "12345".isdigit() True >>> "12345a".isdigit() False लेकिन यह फ्लोटिंग-पॉइंट नंबरों क