Luuk Peters (Proud Nerds)
12/12/2024, 9:31 AMKaspar Boel Kjeldsen
12/12/2024, 11:18 AMKaspar Boel Kjeldsen
12/12/2024, 11:20 AMcsharp
public class DisableNuCacheDatabaseComposer : IComposer
{
    public void Compose(IUmbracoBuilder builder)
    {
        var settings = new Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotServiceOptions
        {
            IgnoreLocalDb = true
        };
        builder.Services.AddSingleton(settings);
    }
}
As weird file-locking of the nucache unfortunately happen every so often in azure, either when we swap, or if we scale our frontend env. upLuuk Peters (Proud Nerds)
12/12/2024, 11:30 AMkdx-perbol
12/12/2024, 11:32 AMIgnoreLocalDb do exactly?Mike Chambers
12/12/2024, 11:35 AMKaspar Boel Kjeldsen
12/12/2024, 11:47 AMKaspar Boel Kjeldsen
12/12/2024, 11:48 AMLuuk Peters (Proud Nerds)
12/12/2024, 2:08 PMkdx-perbol
12/12/2024, 2:20 PMKaspar Boel Kjeldsen
12/12/2024, 2:25 PMKaspar Boel Kjeldsen
12/12/2024, 2:27 PMDean Leigh
12/12/2024, 2:56 PMTackleMcClean 🏅
12/12/2024, 3:14 PMLuuk Peters (Proud Nerds)
12/12/2024, 3:32 PMTackleMcClean 🏅
12/12/2024, 3:35 PMKaspar Boel Kjeldsen
12/12/2024, 3:59 PMLuuk Peters (Proud Nerds)
12/12/2024, 4:49 PMDean Leigh
12/12/2024, 7:40 PMKaspar Boel Kjeldsen
12/13/2024, 7:47 AMMike Chambers
12/13/2024, 11:29 AMWEBSITE_DISABLE_OVERLAPPED_RECYCLING set to 1, is a way to not have.. overlapping...Kaspar Boel Kjeldsen
12/13/2024, 12:31 PMKaspar Boel Kjeldsen
12/13/2024, 12:31 PMMike Chambers
12/13/2024, 12:33 PMschedulingPublisher too many pain points.. but for the subscribers slot swapping seems ok.Balázs Kerper
12/13/2024, 2:56 PMschedulingPublisher), however maybe for cases where you know you can need to have migrations/update wizards, you can do something more special and set up a pipeline to:
- create a copy of the DB, 
- a slot for scheduling and subscriber app services all pointing to the copied DB
- direct traffic to this new slot
- do what needs to be done
- if something goes wrong, have a way to just roll back
- if all good, direct the traffic to the now working updated slot
- clean up the DBs
With the DB changes there would be a content editing freeze, but no downtime for customers