These are chat archives for OrchardCMS/Orchard

23rd
Mar 2017
Jean Jordaan
@jean
Mar 23 2017 05:48
how do you guys do zero-downtime Orchard deploys?
Jean Jordaan
@jean
Mar 23 2017 09:13
any Lombiq/dotnest guys here?
Indexes don't seem to "stick" --- define an index, rebuild, and upon refresh there are 0 documents indexed again.
mhodorogea
@mhodorogea
Mar 23 2017 09:15
Did you add the index to your content types ? @jean
Carl Woodhouse
@carlwoodhouse
Mar 23 2017 09:18
Jean, we deploy to a staging env on azure ... warm it up on staging to populate some caches, then switch the production and staging slots
For the most part, we share the same db with staging and live; but means you have to be a little more vigilant with how you write migrations; so you dont break the live deployment.
Jean Jordaan
@jean
Mar 23 2017 09:19
@carlwoodhouse we're on a dedicated server
Carl Woodhouse
@carlwoodhouse
Mar 23 2017 09:20
azure removes the hassle i guess, even then though if you just have one server, no load balancer etc... you could pretty much deploy to a fresh iis site, then switch the bindings
Jean Jordaan
@jean
Mar 23 2017 09:20
:ok_hand: got it, thanks :-)
Carl Woodhouse
@carlwoodhouse
Mar 23 2017 09:21
i dont miss the days of dedicaterd servers haha
i struggle to grasp people still using them :|
Jean Jordaan
@jean
Mar 23 2017 09:31
we were paying way more on Azure than on a dedicated server ... like 5x more ...
I'm sure that's because we were doing it wrong :confounded:
Carl Woodhouse
@carlwoodhouse
Mar 23 2017 09:34
possibly; it's all relative - yes azure can cost more then a dedicated server; but when your not paying people to do updates to the server, worrying about the security of it; get great features like staged deployments out the box without needing to pay someone to setup a manual process, works with your ci out the box etc etc
i imagine the cost isnt as much as people think when they just see the price.
less hidden costs
also when the internet for your dedicated server dies, or the server dies .. and you lose all your revenue :P
maybe it depends what your running, but i even use azure for small personal stuff ;/ you can run an awful lot off one small azure webapp plan lol
that been said, even for the website we run, which has massive traffic .. the costs are relatively low, we use little resource ;p
mostly due to Orchards awesome scalability ofc ;)
Jean Jordaan
@jean
Mar 23 2017 09:38
@carlwoodhouse we need to learn more, that's for sure.
Carl Woodhouse
@carlwoodhouse
Mar 23 2017 09:38
also if your spending a lot, and dont have one .. an enterprise agreement is always worth exploring; as you get substantial discounts :p
Owain Richardson
@OwainRichardson
Mar 23 2017 09:41
@carlwoodhouse what's the deal with enterprise agreements?
Carl Woodhouse
@carlwoodhouse
Mar 23 2017 09:42
basically, you agree an amount your willing to spend for 12 months - then get discount for paying up front
the discount is relative to the agreed spend ;p
Xceno
@Xceno
Mar 23 2017 09:55

hahaha

all websites get Git deployment (and redeployment, also known as the "oh shit button")

that post is answering a lot of my questions about azure thx @carlwoodhouse
seems like my money is better spent on azure in the long run
Carl Woodhouse
@carlwoodhouse
Mar 23 2017 09:58
i think so :)
i mean, we've used it for ~5 years and its come a LONG way in that time
Xceno
@Xceno
Mar 23 2017 10:04
I've shied from it cause the pricing was to obscure and i'm lazy. but you had me at "small personal stuff" ;)
Carl Woodhouse
@carlwoodhouse
Mar 23 2017 10:09
;)
Zoltán Lehóczky
@Piedone
Mar 23 2017 15:05
@jean There's more to no-downtime deployments how we do at Lombiq than it would be possible to add in a message here, but for search indices we use our open source Azure Indexing module that stores index files in Blob Storage. Read about all of these here: https://dotnest.com/knowledge-base/topics/lombiq-hosting-suite
And for simpler websites where just being able to customize via theming is enough (especially for personal stuff) I wouldn't use anything else than DotNest. Actually some of our team members also use it for their personal sites: https://dotnest.com/knowledge-base/topics/case-studies
Sébastien Ros
@sebastienros
Mar 23 2017 18:03
@jean the rebuild is actually deleting the index, so that's why you see 0 documents for a while. In Orchard Core I came with a different technique, which is just to reset the cursor so all documents stay in place and the indexing re-processes all content items. It's still a stale index, but at least all searches still work. @Piedone Maybe we want that too in O1, should be very simple to do, just a "Reset" button to add.