Warm up persistence infrastructure at startup
See original GitHub issueWe got a report in which the first call to a PersistenceEntity may take a few seconds on newly deployed nodes.
This happens, particularly in CPU starved environments.
The ideal situation would be to trigger the setup of the persistence plugin at bootstrap. By the time that a node joins a cluster and receive the first real request, the plugin will be already configured.
Eventually, we could add a dummy persistent actor (no entity, not sharded), that we could hit as soon as possible. That actor won’t have any state or event, it only needs to implement PersistentActor
and shutdown just after ‘recovery’.
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (13 by maintainers)
Top Results From Across the Web
Warming up the database before application launch
As a best practice, we recommend that you launch your application when Cloud Spanner is in a warm state with splits already created...
Read more >For startups planning to host their infrastructure on AWS, a ...
* AWS load balancers and persistent disks need warming up before high usage. If you are running a website on global scale, you...
Read more >The VDI Boot Storm: Why It Happens, How to Prevent It
Some companies use an image “warm up,” which is a type of timed caching of boot images. This technology works well in both...
Read more >Can we solve serverless cold starts? - DEV Community
When a container is already warm, it jumps right to #4, which saves a lot of time and makes our app respond faster....
Read more >App startup time - Android Developers
A warm start encompasses some subset of the operations that take place during a cold start; at the same time, it represents more...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
reopening because #2370 was reverted in #2416
Hi, we are also facing similar issues here and it is particularly obvious in our staging environments.
Every time we release a Lagom Persistent Entity service the CI/CD pipeline fails on our automated test suite. Major red flag for me is when the team start discussing having our pipeline automatically run the tests twice to bypass. I think the suggestion to have the framework do this automatically makes a lot of sense - ultimately if the service wants to make use of Cassandra backed Persistent Entities then I see no downside to warming this up vs forcing every consumer to do the same.