• About this blog
  • About me
  • Contact
Sitecore XperiencesThe things I've seen as a Sitecore Professional
  • About this blog
  • About me
  • Contact
Menu
  • About this blog
  • About me
  • Contact
  • Sitecore 7.5 and MongoDB through different environments

    March 9, 2015 Rodrigo Peplau 0

    Jan Löwgren, another Sitecore Consultant, in response to my post “Sitecore Environments for Dev, QA, UAT and Production” said It would be interesting to elaborate on how to handle MongoDB though different environments. In the project I am currently working the team was about to upgrade from Sitecore 7.2 to 7.5, so the opportunity to engage into a MongoDB experience was the excuse I wanted to volunteer myself to the upgrade task.

    Trusting your instincts

    My first thought before getting my hands on the issue was trying to handle mongo databases as we do with Sql server dbs: each Developer would need to install a MongoDB server at their machines.

    Setup before Sitecore 7.5

    For the context of the project, our environment’s setup was pretty similar to what is described in my first article:

    1. Developers and front-end devs works at their local machines, with local copies of solution and databases – everyone has their set of “master”, “core” and “web” databases. TDS is used to syncronize Sitecore data with the team;
    2. We have an integration server Sitecore instance, periodically updated by TeamCity on every build change;
    3. We also have a QA Sitecore instance, updated by the trigger of the QA team;
    4. The last instance is the UAT server, also updated by TeamCity by the trigger of someone with this privilege (usually the Project Owner by request of the client);

    Solution

    The final setup ended up being pretty similar to my first thought. It makes sense if you think that MongoDB is not much different than a normal Database Server. At Sitecore 7.5 MongoDB serves DMS Analytics and access data, so we can safely have separated databases for each Sitecore instance (Dev, CI, QA and UAT).

    MongoDB Installation

    Since every developer needs a separated MongoDB server, everyone needs to install at their own machines and access using their “localhost”. This very easy operation can be made by following the steps of this article (Sitecore and xDB – Setting up MongoDB on your developer machine).

    Here is where the developer’s ConnectionStrings will end up:

    <add name=”analytics” connectionString=”mongodb://localhost/dotz_analytics” />
    <add name=”tracking.live” connectionString=”mongodb://localhost/dotz_tracking_live” />
    <add name=”tracking.history” connectionString=”mongodb://localhost/dotz_tracking_history” />

    MongoDB server initializing

    MongoDB is not a service you can install on Windows – you must run it manually – so it’s recommended to have a batch pinned up at your Windows start button before you launch your development instance.

    Windows Start Menu with a link to the batch that starts MongoDB

    Your batch can simply contain the following:

    “C:\Program Files\MongoDB\Server\3.0\bin\mongod.exe” –dbpath “D:\MongoDB”

    • First path depends on where your MongoDB is installed
    • Second path is where MongoDB creates the files to manage databases

    What about the CI, QA and UAT servers?

    At the Continuous Integration servers the installation is pretty much the same, the only difference at our case is that we opted to have a centralized MongoDB server, with separated sets of databases for each Sitecore instance (CI, QA and UAT).

    Categories: Continuous Integration, Environments, TDS, Team City

    How would you do it: 2 levels menu Best way to setup Active Directory Module in a Sitecore Solution

    Leave a Reply Cancel reply

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

      Am Not Spammer

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Proudly 8x Sitecore MVP (2016-2023) MVP 2016-2023

Localization

Recent Posts

  • Meet the (Brand new) Advanced Powershell Packaging Features
  • Glossary: Sitecore CDP vs Sitecore XP
  • ReplaceHTML doesn't work in Web Experiences with Sitecore Personalize
  • Sitecore Personalize: Difference between "Experiences" and "Experiments"
  • Automatic Sitecore NuGet upgrades with Powershell

Recent Comments

  • NAVAN on Automatic Sitecore NuGet upgrades with Powershell
  • Hedipo S Menezes on Corey Peplau wrote this - WFFM conflict with Unity DI and a lesson on how Sitecore community is so amazing
  • Rodrigo Peplau on ERROR [Content Testing]: Cannot find PhantomJS executable at ' (...) /data/tools/phantomjs/phantomjs.exe'. Aborting screenshot generation.
  • Fred on ERROR [Content Testing]: Cannot find PhantomJS executable at ' (...) /data/tools/phantomjs/phantomjs.exe'. Aborting screenshot generation.
  • Rodrigo Peplau on Language specific MediaProvider breaking icons at Media Library

Archives

  • July 2023
  • February 2022
  • December 2021
  • November 2021
  • March 2021
  • July 2020
  • February 2020
  • September 2019
  • July 2019
  • April 2019
  • March 2019
  • December 2018
  • February 2018
  • January 2018
  • November 2017
  • September 2017
  • August 2017
  • July 2017
  • March 2017
  • February 2017
  • November 2016
  • September 2016
  • August 2016
  • July 2016
  • April 2016
  • November 2015
  • September 2015
  • July 2015
  • April 2015
  • March 2015
  • February 2015

Categories

  • Actions
  • Active Directory
  • Analytics
  • Architecture
  • Bug fixing
  • CDP/Personalize
  • Content Edition Experience
  • Continuous Integration
  • Dev
  • Development
  • Environments
  • Experience Editor
  • Experience Forms
  • Front-end
  • Health Check builds
  • Helix
  • How To
  • LDAP
  • MVP
  • MVP Summit
  • Phantom JS
  • Powershell
  • QA
  • Richtext Editor
  • Rules
  • Security Provider
  • SIF
  • Sitecore 9
  • Sitecore API
  • Sitecore Community
  • Sitecore Modules
  • Sitecore Rocks
  • Sitecore Rule Processor
  • Sitecore Symposium
  • SPE
  • SPEAK
  • SUG
  • Support Ticket
  • TDS
  • Team City
  • Uncategorized
  • Upgrades
  • Visual Studio
  • WFFM
  • Workflow
  • XConnect
  • xDB

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Recent Posts

  • Meet the (Brand new) Advanced Powershell Packaging Features
  • Glossary: Sitecore CDP vs Sitecore XP
  • ReplaceHTML doesn’t work in Web Experiences with Sitecore Personalize
  • Sitecore Personalize: Difference between “Experiences” and “Experiments”
  • Automatic Sitecore NuGet upgrades with Powershell
  • Sitecore 10.1 Form Send E-mail VS Community Send E-mail
  • (Bug-free) Custom Form IDs in Sitecore Forms
  • Malformed querystring breaks Sitecore Experience Forms (Value cannot be null. Parameter name: key)
  • Custom rule condition to find Top-N Profile Key
  • Programmatically “Visit” a page (and all xDB-related)

Tag Cloud

    Architecture Automation Continuous Integration Debugging Development Environments Hackathon How To PhantomJS Powershell Server Roles TDS Team City Team Development for Sitecore XConnect

Pages

  • About this blog
  • About me
  • Contact

Search

Copyright © 2015 Rodrigo Peplau Theme created by PWT. Powered by WordPress.org