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 |
eb1ea03 to
dd1acb0
Compare
Co-authored-by: Arunvel Sriram <[email protected]>
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
PGManagerto mockGetTimelinesHistorymethod in unit test.Question:
MaxPostgresTimelinesHistoryconfigurable throughclusterspec?MaxPostgresTimelinesHistory?