I'd also recommend that anyone using DSpace 7.5 consider enabling the new "caching of server-side rendered pages" feature for anonymous users:
https://wiki.lyrasis.org/display/DSDOC7x/Performance+Tuning+DSpace#PerformanceTuningDSpace-Turnon(orincrease)cachingofServer-SideRenderedpages Simply put, one of the areas where a site can see slowness (especially to the homepage) is during "server-side rendering". Each time a user visits your site, the *first* page they receive is flat HTML (which is dynamically built via server-side rendering). This is a feature of Angular which tries to speed up the initial page by sending immediate HTML while the Javascript app is still downloading... once the Javascript app finishes, it replaces the flat HTML and allows you to interact with the page. However, on very complex pages or pages with a lot of content (like the homepage) , the server-side rendering can take time/resources to generate that flat HTML *on demand*. That's why we've added the caching feature to cache these flat HTML pages for anonymous users....it ensures that the server-side rendering runs *less frequently*, and the same flat HTML page can be cached & returned for many anonymous users. That said, this caching is *disabled by default *at this time. We've enabled this caching on https://demo7.dspace.org/ to allow the homepage to load more rapidly. Take a look at the docs here for more information: https://wiki.lyrasis.org/display/DSDOC7x/User+Interface+Configuration#UserInterfaceConfiguration-CacheSettings-ServerSideRendering(SSR) Tim On Wednesday, July 12, 2023 at 1:55:03 AM UTC-5 [email protected] wrote: > Hi, > > Are you sure your frontend works in cluster mode? > This issue was recently discussed here: > https://groups.google.com/g/dspace-tech/c/dSHHObckkIc/m/jztWqQpTAwAJ > > Regards, > Mariusz > > > wtorek, 11 lipca 2023 o 14:38:14 UTC+2 Edmund Balnaves napisał(a): > >> I don't know how your proxy is wired up, but I got a benefit from binding >> the external host name in /etc/hosts to the internal IP - that kept a lot >> API traffic from hitting the external interface. >> >> The home page generates a lot of API calls. On my server the ratio is 1 >> page : 10 API calls overall. >> >> I will be interested to see any ideas on this question. >> >> >> On Tuesday, July 11, 2023 at 7:55:57 PM UTC+10 emilio lorenzo wrote: >> >>> Hello, >>> >>> Is there any recomendation to improve the initial load time of Dspace 7 >>> home page ? We are suffering high load times ( and consistent) at a >>> production site. (Lots an lots of cpu and memory available) >>> >>> The recommendations of >>> https://wiki.lyrasis.org/display/DSDOC7x/Performance+Tuning+DSpace has >>> been applied and we have alredy paid attention to this thread: >>> https://www.mail-archive.com/[email protected]/msg14510.html >>> <https://www.mail-archive.com/[email protected]/msg14510.html> >>> >>> We wonder if anyone has additional tips. We are running low in ideas. >>> >>> Thanks >>> >>> >>> >>> -- >>> >>> -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/db51e722-e5bd-4853-b059-925c824b4265n%40googlegroups.com.
