yugabyte-db icon indicating copy to clipboard operation
yugabyte-db copied to clipboard

Investigate impact of increasing timestamp_history_retention_interval_sec gflag

Open ndeodhar opened this issue 5 years ago • 2 comments
trafficstars

Jira Link: DB-1856 Currently, timestamp_history_retention_interval_sec gflag is set to 2mins. This means that we can't support transactions running longer than 2 mins. In YSQL relational workloads, it's not uncommon to have long running transactions. Increasing this gflag could have a performance impact (especially for update heavy workloads) since this gflag dictates what rows get compacted.

We should run some perf tests and find a reasonable limit for this gflag. Lets run the tests for gflag values 10 , 15, 30 and 60 mins and measure the impact on TPCC run and sysbench update workloads.

ndeodhar avatar Jun 18 '20 17:06 ndeodhar

@robertsami , Is the above valid? Don't we hold on to WALs corresponding to active transactions?

rthallamko3 avatar Sep 23 '22 00:09 rthallamko3

I think this issue is stale/should be closed now. A lot of work has been done to support long running transactions now.

Also, <<Don't we hold on to WALs corresponding to active transactions?>> I think WAL retention is independent of the "history_retension_interval_sec" knob. The MVCC retention applies to data flushed data (SSTable files) where we keep enough older versions to respect this retention interval. This should not block the older WAL logs from getting garbage collected.

kmuthukk avatar Sep 23 '22 04:09 kmuthukk

Thanks @kmuthukk , closing this issue.

rthallamko3 avatar Sep 26 '22 17:09 rthallamko3