test_mongodb module

test_mongodb.test_check_storage_engine()
Description:

Checks for issues with the storageEngine used, and not MMAPv1

Result:

The storageEngine being used by Mongo

Public Facing KB:

https://tickets.dominodatalab.com/hc/en-us/articles/13016256769940-test-mongodb-py-Runbook

test_mongodb.test_mongo_creds()
Description:

Retrieves mongodb credentials

Result:

The connection string is displayed

Public Facing KB:

https://tickets.dominodatalab.com/hc/en-us/articles/13016256769940-test-mongodb-py-Runbook

test_mongodb.test_mongo_ping()
Description:

Sanity test mongodb connectivity with a ping

Result:

The ping result is displayed along with operationTime, and clusterTime

Public Facing KB:

https://tickets.dominodatalab.com/hc/en-us/articles/13016256769940-test-mongodb-py-Runbook

test_mongodb.test_mongo_replication_status(compact)
Description:

Checks for replication lag between the secondary replicas and primary

Result:

Displays the secondary_lag, and detailed replication metrics for each mongodb replicaset

Public Facing KB:

https://tickets.dominodatalab.com/hc/en-us/articles/13016256769940-test-mongodb-py-Runbook

test_mongodb.test_mongo_sagasizes()

Description:

Check for large incomplete saga records that are causing Mongo to sometimes timeout. If there are no Mongo heartbeats, then Model API image build may not succeed, and deployments might never get started.

Result:

Print out old dangling saga records that have grown to size > 16mb

test_mongodb.test_mongo_version()
Description:

Retrieves the version of Mongo and its FeatureCompatibilityVersion being used

Result:

Displays the version and FeatureCompatibilityVersion of Mongo currently running

Public Facing KB:

https://tickets.dominodatalab.com/hc/en-us/articles/13016256769940-test-mongodb-py-Runbook

test_mongodb.test_mongo_workspaces_with_importedGitRepos_issues()
Description:

Identifies the list of projects, iterates over and checks for importedGitRepos association

Result:

Identifies a list of projects that are impacted by OT-2711 and prints them out.

Public Facing KB:

https://tickets.dominodatalab.com/hc/en-us/articles/13016256769940-test-mongodb-py-Runbook

test_mongodb.test_mongodb_sizes()
Description:

Retrieves Mongo collection Counts, Sizes, Index counts, Storage

Result:

Displays human readable tabular format of collection size stats, along with totals of documents

Public Facing KB:

https://tickets.dominodatalab.com/hc/en-us/articles/13016256769940-test-mongodb-py-Runbook

test_mongodb.test_sagaindex()
Description:

Checks if index SagaId is installed or not

Result:

Displays the current list of indexes installed for domino.sagas

Public Facing KB:

https://tickets.dominodatalab.com/hc/en-us/articles/13016256769940-test-mongodb-py-Runbook