question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warm up persistence infrastructure at startup

See original GitHub issue

We 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:open
  • Created 4 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
octonatocommented, Nov 4, 2019

reopening because #2370 was reverted in #2416

0reactions
howesrocommented, Mar 18, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found