Skip to content
This repository has been archived by the owner on Mar 1, 2019. It is now read-only.

Always close the acid state DB #339

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

dcoutts
Copy link
Collaborator

@dcoutts dcoutts commented Feb 13, 2019

Overview

While investigating potential causes for slow shutdown of the node I noticed that we are writing checkpoints and doing archiving, but not actually closing the acid state db.

  • always close the acid state DB on shutdown
  • don't bother updating the archive on shutdown

Comments

It's of no great benefit to do the archive stuff each time. The archive cleanup gets run by the worker periodicically.

We should also consider whether creating the checkpoint is also always needed on shutdown. If it's slow we might want to not bother, since we have to shutdown promptly or the process gets killed anyway. It's only for exchanges and ease of migration that we write the checkpoint and we can perhaps distinguish that use case. For example we could do a checkpoint on SIGUSR1 or SIGHUP.

@dcoutts dcoutts force-pushed the pr/acid-state-close branch from 00b84db to 827ee8b Compare February 13, 2019 19:24
And don't bother updating the archive on shutdown. It's of no great
benefit to do each time.

We should also consider whether creating the checkpoint is also always
needed. If it's slow we might want to not bother, since we have to
shutdown promptly or the process gets killed anyway. It's only for
exchanges and ease of migration that we write the checkpoint and we can
perhaps distinguish that use case.
@dcoutts dcoutts force-pushed the pr/acid-state-close branch from 827ee8b to c7dc095 Compare February 13, 2019 20:11
@KtorZ KtorZ self-requested a review February 18, 2019 13:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant