0

I'm looking into this issue where I'm trying to understand how this event queue and publishing works with respect to shared master db with 2 CM Instances & respective 2 CD instances with dedicated web database.

I'm referring to this blog post

Whereas according to blog, respective CD's Event-Queue database table register corresponding CM instance details from where the request initiated.

I need help to understand how event-queue and publish queue is initiated from CM to CD. Have anyone came across this scenario. Please help. Thanks.

  • To add more details to this question for future reference. staging and prod slot -CMS has common master db whereas staging and prod CDs have dedicated web db. If we publish the content from staging it publishes the content in the production slot of web. – Santosh Poojari Aug 2 '17 at 5:07
  • 1. Login to staging slot, make change and save it e.g. home page 2. Open separate browser e.g. firefox and open prod slot 3. Clear cache using admin/cache 4. Make sure you can see the change in prod slot. 5. Then publish from staging slot. 6. Verify web prod and staging slot.[both slot reflects changes] – Santosh Poojari Aug 2 '17 at 5:07
0

Fix: Leave the sitecore settings InstanceName empty in all cms staging and production instance. It will by default pick up the InstanceName +website name from IIS. Below is the code that sitecore uses to get instance name:

string setting = GetSetting("InstanceName", null);
    if (!setting.IsNullOrEmpty())
    {
        return setting;
    }
    string machineName = MainUtil.GetMachineName(); // this function returns ((SystemInformation.ComputerName ?? Environment.MachineName) ?? string.Empty);
    try
    {
        string siteName = HostingEnvironment.SiteName;
        if (!string.IsNullOrEmpty(siteName))
        {
            machineName = machineName + "-" + siteName;
        }
    }
    catch
    {
    }
    return machineName;
}
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.