Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
2e66360
Added support to expire specfic member of a sorted set by adding fami…
Vijay-Nirmal Feb 5, 2025
f0b8671
Removed temp file
Vijay-Nirmal Feb 5, 2025
6a38dd6
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Feb 5, 2025
2d41032
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Feb 9, 2025
d0e9697
Added test cases
Vijay-Nirmal Feb 9, 2025
83ec38c
Format fix
Vijay-Nirmal Feb 9, 2025
c236828
Fixed formating
Vijay-Nirmal Feb 9, 2025
00517b3
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Feb 10, 2025
c70edc9
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Feb 10, 2025
4e0a546
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Feb 11, 2025
bdf6144
Merged latest
Vijay-Nirmal Feb 14, 2025
824ac79
Fixed review commands
Vijay-Nirmal Feb 14, 2025
63ff780
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Feb 15, 2025
b7e23e9
Merged latest
Vijay-Nirmal Feb 19, 2025
3ccd505
Fixed test case failure
Vijay-Nirmal Feb 19, 2025
9e1a5a9
Fixed slot test case
Vijay-Nirmal Feb 20, 2025
b231909
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Feb 20, 2025
bc7ce39
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Mar 2, 2025
a9c8b5a
Fixed review commands
Vijay-Nirmal Mar 3, 2025
728aa6c
Fixed review comments
Vijay-Nirmal Mar 9, 2025
42223f6
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Mar 9, 2025
1b37232
Format fix
Vijay-Nirmal Mar 9, 2025
af07859
Merge branch 'new/sorted-set-member-expire' of https://github.com/Vij…
Vijay-Nirmal Mar 9, 2025
ada336d
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Mar 10, 2025
16d8b7b
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Mar 12, 2025
62da62f
Review comment fix
Vijay-Nirmal Mar 12, 2025
007d882
Review comment fix for reusing parseState
Vijay-Nirmal Mar 16, 2025
f2b68c4
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Mar 16, 2025
75299da
Fixed issue after pulling latest
Vijay-Nirmal Mar 16, 2025
4925362
Fixed custom proc
Vijay-Nirmal Mar 16, 2025
67c2d97
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Mar 19, 2025
fbdf721
Merged latest
Vijay-Nirmal Mar 21, 2025
1483c29
Merge branch 'new/sorted-set-member-expire' of https://github.com/Vij…
Vijay-Nirmal Mar 21, 2025
552e5db
PR review comment fix
Vijay-Nirmal Mar 21, 2025
b209e32
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Mar 24, 2025
bc2db64
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Mar 26, 2025
8d3257d
Merge branch 'main' into new/sorted-set-member-expire
Vijay-Nirmal Mar 28, 2025
f5d4b45
Fixed review comments
Vijay-Nirmal Mar 28, 2025
b782d32
close lock for hcollect as well
Vijay-Nirmal Mar 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions libs/host/Configuration/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,10 @@ internal sealed class Options
[IntRangeValidation(0, int.MaxValue)]
[Option("compaction-freq", Required = false, HelpText = "Background hybrid log compaction frequency in seconds. 0 = disabled (compaction performed before checkpointing instead)")]
public int CompactionFrequencySecs { get; set; }

[IntRangeValidation(0, int.MaxValue)]
[Option("hcollect-freq", Required = false, HelpText = "Frequency in seconds for the background task to perform Hash collection. 0 = disabled. Hash collect is used to delete expired fields from hash without waiting for a write operation. Use the HCOLLECT API to collect on-demand.")]
public int HashCollectFrequencySecs { get; set; }
[Option("expired-object-collection-freq", Required = false, HelpText = "Frequency in seconds for the background task to perform object collection which removes expired members within object from memory. 0 = disabled. Use the HCOLLECT and ZCOLLECT API to collect on-demand.")]
public int ExpiredObjectCollectionFrequencySecs { get; set; }

[Option("compaction-type", Required = false, HelpText = "Hybrid log compaction type. Value options: None - no compaction, Shift - shift begin address without compaction (data loss), Scan - scan old pages and move live records to tail (no data loss), Lookup - lookup each record in compaction range, for record liveness checking using hash chain (no data loss)")]
public LogCompactionType CompactionType { get; set; }
Expand Down Expand Up @@ -766,7 +767,7 @@ public GarnetServerOptions GetServerOptions(ILogger logger = null)
WaitForCommit = WaitForCommit.GetValueOrDefault(),
AofSizeLimit = AofSizeLimit,
CompactionFrequencySecs = CompactionFrequencySecs,
HashCollectFrequencySecs = HashCollectFrequencySecs,
ExpiredObjectCollectionFrequencySecs = ExpiredObjectCollectionFrequencySecs,
CompactionType = CompactionType,
CompactionForceDelete = CompactionForceDelete.GetValueOrDefault(),
CompactionMaxSegments = CompactionMaxSegments,
Expand Down
4 changes: 2 additions & 2 deletions libs/host/defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@
/* Background hybrid log compaction frequency in seconds. 0 = disabled (compaction performed before checkpointing instead) */
"CompactionFrequencySecs" : 0,

/* Frequency in seconds for the background task to perform Hash collection. 0 = disabled. Hash collect is used to delete expired fields from hash without waiting for a write operation. Use the HCOLLECT API to collect on-demand. */
"HashCollectFrequencySecs" : 0,
/* Frequency in seconds for the background task to perform object collection which removes expired members within object from memory. 0 = disabled. Use the HCOLLECT and ZCOLLECT API to collect on-demand. */
"ExpiredObjectCollectionFrequencySecs" : 0,

/* Hybrid log compaction type. Value options: */
/* None - no compaction */
Expand Down
Loading