How do I test if an Optimizely site can handle Read Only Deployments?

  • Page Owner: Not Set
  • Last Reviewed: 2022-03-09

How do I test if an Optimizely site can handle Read Only Deployments?


Answer

There are two pieces needed to properly test.

CMS 11

Add the following key to the Appsettings in your Web config, to test how the Site behaves.

<add key="episerver:DatabaseMode" value="ReadOnly" />
  1. Open SSMS
  2. Open Databases
  3. Right click on your database, Select Properties
  4. Select Options Tab (left pane)
  5. Navigate to the State group at the bottom.
  6. Change Database Read-Only to True
  7. Confirm the site does not 500 on important pages.

Additional Posts

CMS 12

The appsetting for CMS12 looks like the sample below. All other steps in the CMS11 directions are the same for CMS12

"EpiServer": {
    "Cms": {
        "DataAccess": {
            "DatabaseMode": "ReadOnly"
        }
    }
}