Skip to content
The Bits That Byte
  • About
October 31, 2019 / Sitecore

Configuring Sitecore 9.2 to Use MongoDB for xDB

Using MongoDB for xDB in Sitecore 9.2 is an option. By default, the Sitecore Installation Framework (xDB) uses the Shard Map Manger in SQL for this purpose, and is the default recommendation.

However, if your requirements are to run xDB in Sitecore 9.2. using Mongo, here are the steps per the Sitecore 9.2 installation guide (along with some unspoken items):

  1. Create your MongoDB collection (I named mine “collection”). You will need the connectionString including the username and password in a future step. Its also imperative to ensure the proper ports are open (default is usually 27017 for Mongo)

  2. Enable the sc.Xdb.Collection.Data.MongoDb.xml.disabled configuration file by removing .disabled extension.

    Of note: These are located in the 5 xConnect roles, xConnectCollectionSearch job and 2 Cortex roles within the .\App_Data\Config\Sitecore\Collection directory. You will also need to update this in the xConnectCollectionSearch continuous job (.\sitecore.collectionsearch\App_Data\jobs\continuous\IndexWorker\App_Data\config\sitecore\Collection

  3. Disable the sc.Xdb.Collection.Data.Sql.xml configuration file by adding the .disabled file extension.

    Note: Same as item 2, you need to update this in all 8 locations (5 xConnect roles, xConnectCollectionSearch job, and 2 Cortex roles)

  4. Update the collection connectionString to point to the MongoDB instance. You must also update the collection connection string in the indexer job that exists under the xConnect Collection role, xConnectCollectionSearch role, and xConnectCollectionSearch job ( .\sitecore.collectionsearch\App_Data\jobs\continuous\IndexWorker\App_Config). There are a few examples in the installation guide but it should start as mongodb://username:password:port/collection?

  5. Rebuild the xDB Search Indexes in Solr. This requires using a CMD Prompt as an administrator and browsing to the directory where the xConnectSearchIndexer jobs resides (App_Data\jobs\continuous\IndexWorker) and executing the XConnectSearchIndexer -rr command)

  6. Check your MongoDB to ensure data is there

Post navigation

Previous Post:

Sitecore Alert: Reference Database Might Degrade Site Performance

Next Post:

Planning for Sitecore SaaS

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Sitecore Technology MVP

Categories

  • AngularJS
  • Azure
  • CSS3
  • HTML5
  • Hyper-V
  • JavaScript
  • jQuery
  • OneDrive
  • PowerShell
  • Responsive Web Design
  • Search
  • SEO
  • SharePoint
  • Sitecore
  • SQL 2008 R2
  • SQL 2012
  • Tech Review
  • Tech Toy
  • Technical Resources
  • Uncategorized
  • Visual Studio
  • Web Content Management
  • Windows 8
  • Windows 8 App
  • Windows App
  • Windows Server 2008 R2
  • Workflow

Sponsored Links

Recent Posts

  • Sitecore Commerce 10.0.0 Bootstrap 404 Error and Other Changes
  • How to Run Cost Effective Sitecore Environments in Azure
  • Autofail: A Big Azure Autoscale Limitation and What To Do
  • Got Fixes? A Sitecore Troubleshooters Guide to Sitecore Hotfixes
  • Sitecore 10 Application Roles, Storage Roles, and Indexes

Blogroll

  • Colins Sitecore Tech Blog
  • Sitecore Architecture – Grant's Sitecore Rants
February 2021
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
« Jan    
© 2021 thebitsthatbyte.com - Powered by SimplyNews