Hosting v10 + v13 on Azure VMs - App Recycle & Dep...
# help-with-umbraco
r
Good evening everyone! Does anyone have a definitive way of having 0 downtime app pool recycles and deployments via github actions. We have a number of v10 and v13 sites on different VMs that we are slowly migrating to Azure Web Apps, but in the mean time we need to fix the daily outages. We have app pool overlapping disabled, This is due to the nucache file being locked, and when it's enabled the sites can't restart. Any help or guidance would be greatly appreciated https://cdn.discordapp.com/attachments/1258141828654432256/1258141828948037712/Microsoft_Azure.svg.png?ex=6686f763&is=6685a5e3&hm=57b0ee79c9cc7c1f7656db174e557668b7c2dadef9f0deac6d607aae0d79c586&
w
Hey Roy, is this to mitigate the 503 responses? I maybe miss remembering most of this but I believe overlapping app pools do not work with net cores host bundle/IIS module. With deployments the whole app pool needs to be shut down to kill net cores kestrel servers lock on files. It's recommended to do blue/green deployments to maintain high availability or load balancer/IIS ARR tricks. Big long git issue from 2019 about it all https://github.com/dotnet/aspnetcore/issues/10117 Continued here in 2022 https://github.com/dotnet/aspnetcore/issues/41340 I've not properly read all the recent updates to the issue, but it does sound like some work has been done to mitigate the issues in the net 8 and 9 hosting bundles.
k
@Roy Barber we "gave up" and started ignoring the nucache file so it wouldn't matter if it was locked or not
Copy code
csharp
public class DisableNuCacheDatabaseComposer : IComposer
{
    public void Compose(IUmbracoBuilder builder)
    {
        var settings = new Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotServiceOptions
        {
            IgnoreLocalDb = true
        };
        builder.Services.AddSingleton(settings);
    }
}
Haven't had trouble since. It's a bit of a performance hit on startup time if your site is big, but it's been worth it for us
r
Thank you @Kaspar Boel Kjeldsen what effect did you see after doing so? And were you able to do overlaps thereafter?
6 Views