-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store only last 2 postgres timeline histories #651
Conversation
c75713d
to
cece4a9
Compare
cece4a9
to
82325d6
Compare
@dineshba Thanks for the PR! TimeLineHistory is used to check that the current db is not diverged and is used in function Looking at these functions logic we could theoretically just keep the last two timeline histories. So we could avoid having an user defined (and unclear from the user point of view) parameter and just keep the last N (where N could be just the last 2 or be conservative and choose something like 10...) |
Make sense @sgotti. It couldn't be user defined parameter. We can make |
c472318
to
956394a
Compare
@sgotti Updated the PR with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dineshba LGTM. Just a small nit.
eb1ea03
to
dd1acb0
Compare
Co-authored-by: Arunvel Sriram <arunvelsriram@gmail.com>
dd1acb0
to
07b9dfb
Compare
@dineshba Thanks! Merging. |
Fixes #629
We have made changes to store last N (MaxPostgresTimelinesHistory) timeline histories. We have set the default value as
1000
.We introduced an interface
PGManager
to mockGetTimelinesHistory
method in unit test.Question:
MaxPostgresTimelinesHistory
configurable throughclusterspec
?MaxPostgresTimelinesHistory
?