@@ -1233,12 +1233,6 @@ type ValueSeparationPolicy struct {
12331233 //
12341234 // MinimumSize must be > 0.
12351235 MinimumSize int
1236- // MinimumLatencyTolerantSize specifies the minimum size of a value that can
1237- // be separated into a blob file if said value is a part of a latency tolerant
1238- // span.
1239- //
1240- // MinimumLatencyTolerantSize must be > 0.
1241- MinimumLatencyTolerantSize int
12421236 // MinimumMVCCGarbageSize specifies the minimum size of a value that can be
12431237 // separated into a blob file if said value is likely to be MVCC garbage.
12441238 // See sstable.IsLikelyMVCCGarbage for the exact criteria we use to
@@ -1287,7 +1281,8 @@ type ValueSeparationPolicy struct {
12871281 GarbageRatioHighPriority float64
12881282}
12891283
1290- // SpanPolicy contains policies that can vary by key range.
1284+ // SpanPolicy contains policies that can vary by key range. The zero value is
1285+ // the default value.
12911286type SpanPolicy struct {
12921287 // Prefer a faster compression algorithm for the keys in this span.
12931288 //
@@ -1364,6 +1359,13 @@ func (vsp *ValueStoragePolicyAdjustment) ContainsOverrides() bool {
13641359 vsp .MinimumMVCCGarbageSize > 0
13651360}
13661361
1362+ // ValueStorageLatencyTolerant is the suggested ValueStoragePolicyAdjustment
1363+ // to use for key ranges that can tolerate higher value retrieval
1364+ // latency.
1365+ var ValueStorageLatencyTolerant = ValueStoragePolicyAdjustment {
1366+ OverrideBlobSeparationMinimumSize : 10 ,
1367+ }
1368+
13671369// ValueStorageLowReadLatency is the suggested ValueStoragePolicyAdjustment
13681370// to use for key ranges that require low value retrieval latency.
13691371var ValueStorageLowReadLatency = ValueStoragePolicyAdjustment {
@@ -1873,7 +1875,6 @@ func (o *Options) String() string {
18731875 fmt .Fprintln (& buf , "[Value Separation]" )
18741876 fmt .Fprintf (& buf , " enabled=%t\n " , policy .Enabled )
18751877 fmt .Fprintf (& buf , " minimum_size=%d\n " , policy .MinimumSize )
1876- fmt .Fprintf (& buf , " minimum_latency_tolerant_size=%d\n " , policy .MinimumLatencyTolerantSize )
18771878 fmt .Fprintf (& buf , " minimum_mvcc_garbage_size=%d\n " , policy .MinimumMVCCGarbageSize )
18781879 fmt .Fprintf (& buf , " max_blob_reference_depth=%d\n " , policy .MaxBlobReferenceDepth )
18791880 fmt .Fprintf (& buf , " rewrite_minimum_age=%s\n " , policy .RewriteMinimumAge )
@@ -2325,10 +2326,6 @@ func (o *Options) Parse(s string, hooks *ParseHooks) error {
23252326 var minimumSize int
23262327 minimumSize , err = strconv .Atoi (value )
23272328 valSepPolicy .MinimumSize = minimumSize
2328- case "minimum_latency_tolerant_size" :
2329- var minimumLatencyTolerantSize int
2330- minimumLatencyTolerantSize , err = strconv .Atoi (value )
2331- valSepPolicy .MinimumLatencyTolerantSize = minimumLatencyTolerantSize
23322329 case "minimum_mvcc_garbage_size" :
23332330 var minimumMVCCGarbageSize int
23342331 minimumMVCCGarbageSize , err = strconv .Atoi (value )
@@ -2633,9 +2630,6 @@ func (o *Options) Validate() error {
26332630 if policy .MinimumSize <= 0 {
26342631 fmt .Fprintf (& buf , "ValueSeparationPolicy.MinimumSize (%d) must be > 0\n " , policy .MinimumSize )
26352632 }
2636- if policy .MinimumLatencyTolerantSize <= 0 {
2637- fmt .Fprintf (& buf , "ValueSeparationPolicy.MinimumLatencyTolerantSize (%d) must be > 0\n " , policy .MinimumLatencyTolerantSize )
2638- }
26392633 if policy .MinimumMVCCGarbageSize <= 0 {
26402634 fmt .Fprintf (& buf , "ValueSeparationPolicy.MinimumMVCCGarbageSize (%d) must be > 0\n " , policy .MinimumMVCCGarbageSize )
26412635 }
0 commit comments