orleans icon indicating copy to clipboard operation
orleans copied to clipboard

Improving startup time for dev/test?

Open lucasgodshalk opened this issue 10 years ago • 5 comments

Currently when I'm running orleans with the client/silo in the same process, orleans takes ~15 seconds to complete SiloHost.InitializeOrleansSilo(...) and another ~30 seconds to complete GrainClient.Initialize(...). Are there conditions or configuration settings that would slow down the init process? For instance, I have about 130 dlls (thanks aspnet core) in the project folder that orleans scans on startup, but I don't know how serious of an impact that would be. I'm not hitting any non-local resources and I don't have many non-default configuration settings (trace settings and setting up the storage provider mainly).

lucasgodshalk avatar Aug 26 '16 15:08 lucasgodshalk

This is way too long of a startup time IMO to be usable. Did you measure where the time is spent? I suspect you are right that the 130 assemblies are likely the cause.

We are looking at adding explicit scanning of only given assemblies instead of every binary we can find. #2025 is an attempt in that direction. And it's one of the workitems for .NET Core compatibility.

sergeybykov avatar Aug 29 '16 16:08 sergeybykov

I've been planning on temporarily stripping out most of the assemblies to see if the startup time drops, but I haven't had the chance yet. If that proves to be the problem then I'll wait until #2025 gets merged in and give it a whirl.

lucasgodshalk avatar Aug 29 '16 18:08 lucasgodshalk

@sergeybykov is there any way workaround to tell Orleans to only look at specific assemblies in 1.5.3? That would really help until 2.0 is ready (and until we are ready to migrate).

talarari avatar Dec 12 '17 17:12 talarari

@talarari Unfortunately, no.

sergeybykov avatar Dec 12 '17 18:12 sergeybykov

Closing this, as we don't scan all assemblies by default in 2.0.0.

sergeybykov avatar Jan 06 '18 01:01 sergeybykov