Data Engineering, Data Science, Mongodb, Python, DevOps.
read-only secondary node worker1_client = MongoClient("mongodb://127.0.0.1:27018/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.10.5&readPreference=secondary") # Connect to worker2 as a read-only secondary node worker2_client =