Skip to content

Commit fc94cb0

Browse files
authored
Merge pull request #2597 from CortexFoundation/dev
add configuration changes
2 parents d73205d + 8e21211 commit fc94cb0

116 files changed

Lines changed: 4045 additions & 1193 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ctxcdb/pebble/pebble.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ func New(file string, cache int, handles int, namespace string, readonly bool) (
220220
{TargetFileSize: 16 * 1024 * 1024, FilterPolicy: bloom.FilterPolicy(10)},
221221
{TargetFileSize: 32 * 1024 * 1024, FilterPolicy: bloom.FilterPolicy(10)},
222222
{TargetFileSize: 64 * 1024 * 1024, FilterPolicy: bloom.FilterPolicy(10)},
223-
{TargetFileSize: 128 * 1024 * 1024, FilterPolicy: bloom.FilterPolicy(10)},
223+
// Pebble doesn't use the Bloom filter at level6 for read efficiency.
224+
{TargetFileSize: 128 * 1024 * 1024},
224225
},
225226
ReadOnly: readonly,
226227
EventListener: &pebble.EventListener{
@@ -251,9 +252,6 @@ func New(file string, cache int, handles int, namespace string, readonly bool) (
251252
// debt will be less than 1GB, but with more frequent compactions scheduled.
252253
L0CompactionThreshold: 2,
253254
}
254-
// Disable seek compaction explicitly. Check https://github.com/CortexFoundation/CortexTheseus/pull/20130
255-
// for more details.
256-
opt.Experimental.ReadSamplingMultiplier = -1
257255

258256
// Open the db and recover any potential corruptions
259257
innerDB, err := pebble.Open(file, opt)

go.mod

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ require (
66
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.6.3
77
github.com/CortexFoundation/inference v1.0.2-0.20230307032835-9197d586a4e8
88
github.com/CortexFoundation/statik v0.0.0-20210315012922-8bb8a7b5dc66
9-
github.com/CortexFoundation/torrentfs v1.0.73-0.20251124184227-7b581860e3c0
9+
github.com/CortexFoundation/torrentfs v1.0.73-0.20251202154802-316eb23b5a00
1010
github.com/Microsoft/go-winio v0.6.2
1111
github.com/ProjectZKM/Ziren/crates/go-runtime/zkvm_runtime v0.0.0-20251119083800-2aa1d4cc79d7
1212
github.com/VictoriaMetrics/fastcache v1.13.2
1313
github.com/arsham/figurine v1.3.0
1414
github.com/aws/aws-sdk-go-v2 v1.40.0
15-
github.com/aws/aws-sdk-go-v2/config v1.32.1
16-
github.com/aws/aws-sdk-go-v2/credentials v1.19.1
17-
github.com/aws/aws-sdk-go-v2/service/route53 v1.60.1
15+
github.com/aws/aws-sdk-go-v2/config v1.32.2
16+
github.com/aws/aws-sdk-go-v2/credentials v1.19.2
17+
github.com/aws/aws-sdk-go-v2/service/route53 v1.61.0
1818
github.com/cespare/cp v1.1.1
1919
github.com/charmbracelet/bubbletea v1.3.10
2020
github.com/cloudflare/cloudflare-go v0.116.0
@@ -25,7 +25,7 @@ require (
2525
github.com/dchest/siphash v1.2.3
2626
github.com/deckarep/golang-set/v2 v2.8.0
2727
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0
28-
github.com/dop251/goja v0.0.0-20251121114222-56b1242a5f86
28+
github.com/dop251/goja v0.0.0-20251201205617-2bb4c724c0f9
2929
github.com/ethereum/c-kzg-4844 v1.0.3
3030
github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab
3131
github.com/ethereum/go-verkle v0.2.2
@@ -86,12 +86,12 @@ require (
8686
github.com/CortexFoundation/wormhole v0.0.2-0.20250807143819-52807b74f358 // indirect
8787
github.com/DataDog/zstd v1.5.7 // indirect
8888
github.com/RoaringBitmap/roaring v1.9.4 // indirect
89-
github.com/ajwerner/btree v0.0.0-20211221152037-f427b3e689c0 // indirect
9089
github.com/alecthomas/atomic v0.1.0-alpha2 // indirect
90+
github.com/anacrolix/btree v0.0.0-20251201064447-d86c3fa41bd8 // indirect
9191
github.com/anacrolix/chansync v0.7.0 // indirect
9292
github.com/anacrolix/dht/v2 v2.23.0 // indirect
9393
github.com/anacrolix/envpprof v1.4.0 // indirect
94-
github.com/anacrolix/generics v0.1.0 // indirect
94+
github.com/anacrolix/generics v0.1.1-0.20251125230353-15d98d46693b // indirect
9595
github.com/anacrolix/go-libutp v1.3.2 // indirect
9696
github.com/anacrolix/log v0.17.1-0.20251118025802-918f1157b7bb // indirect
9797
github.com/anacrolix/missinggo v1.3.0 // indirect
@@ -101,7 +101,7 @@ require (
101101
github.com/anacrolix/multiless v0.4.0 // indirect
102102
github.com/anacrolix/stm v0.5.0 // indirect
103103
github.com/anacrolix/sync v0.5.5-0.20251119100342-d78dd1f686f1 // indirect
104-
github.com/anacrolix/torrent v1.59.2-0.20251121022239-29ca7fdf5c63 // indirect
104+
github.com/anacrolix/torrent v1.59.2-0.20251201070025-62f62628d9b8 // indirect
105105
github.com/anacrolix/upnp v0.1.4 // indirect
106106
github.com/anacrolix/utp v0.2.0 // indirect
107107
github.com/antlabs/stl v0.0.2 // indirect
@@ -114,11 +114,11 @@ require (
114114
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4 // indirect
115115
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.3 // indirect
116116
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.14 // indirect
117-
github.com/aws/aws-sdk-go-v2/service/signin v1.0.1 // indirect
118-
github.com/aws/aws-sdk-go-v2/service/sso v1.30.4 // indirect
119-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.9 // indirect
120-
github.com/aws/aws-sdk-go-v2/service/sts v1.41.1 // indirect
121-
github.com/aws/smithy-go v1.23.2 // indirect
117+
github.com/aws/aws-sdk-go-v2/service/signin v1.0.2 // indirect
118+
github.com/aws/aws-sdk-go-v2/service/sso v1.30.5 // indirect
119+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.10 // indirect
120+
github.com/aws/aws-sdk-go-v2/service/sts v1.41.2 // indirect
121+
github.com/aws/smithy-go v1.24.0 // indirect
122122
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
123123
github.com/bahlo/generic-list-go v0.2.0 // indirect
124124
github.com/benbjohnson/immutable v0.4.3 // indirect
@@ -130,10 +130,10 @@ require (
130130
github.com/cespare/xxhash/v2 v2.3.0 // indirect
131131
github.com/charmbracelet/colorprofile v0.3.3 // indirect
132132
github.com/charmbracelet/lipgloss v1.1.0 // indirect
133-
github.com/charmbracelet/x/ansi v0.11.1 // indirect
133+
github.com/charmbracelet/x/ansi v0.11.2 // indirect
134134
github.com/charmbracelet/x/cellbuf v0.0.14 // indirect
135135
github.com/charmbracelet/x/term v0.2.2 // indirect
136-
github.com/clipperhouse/displaywidth v0.6.0 // indirect
136+
github.com/clipperhouse/displaywidth v0.6.1 // indirect
137137
github.com/clipperhouse/stringish v0.1.1 // indirect
138138
github.com/clipperhouse/uax29/v2 v2.3.0 // indirect
139139
github.com/cockroachdb/errors v1.12.0 // indirect
@@ -153,7 +153,7 @@ require (
153153
github.com/emicklei/dot v1.9.2 // indirect
154154
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
155155
github.com/garslo/gogen v0.0.0-20170306192744-1d203ffc1f61 // indirect
156-
github.com/getsentry/sentry-go v0.39.0 // indirect
156+
github.com/getsentry/sentry-go v0.40.0 // indirect
157157
github.com/go-llsqlite/adapter v0.2.0 // indirect
158158
github.com/go-llsqlite/crawshaw v0.6.0 // indirect
159159
github.com/go-logr/logr v1.4.3 // indirect
@@ -172,7 +172,7 @@ require (
172172
github.com/huandu/xstrings v1.5.0 // indirect
173173
github.com/influxdata/line-protocol v0.0.0-20210922203350-b1ad95c89adf // indirect
174174
github.com/jedib0t/go-pretty/v6 v6.7.5 // indirect
175-
github.com/klauspost/compress v1.18.1 // indirect
175+
github.com/klauspost/compress v1.18.2 // indirect
176176
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
177177
github.com/kr/pretty v0.3.1 // indirect
178178
github.com/kr/text v0.2.0 // indirect
@@ -196,16 +196,16 @@ require (
196196
github.com/pion/datachannel v1.5.10 // indirect
197197
github.com/pion/dtls/v2 v2.2.12 // indirect
198198
github.com/pion/dtls/v3 v3.0.7 // indirect
199-
github.com/pion/ice/v4 v4.0.10 // indirect
199+
github.com/pion/ice/v4 v4.0.12 // indirect
200200
github.com/pion/interceptor v0.1.42 // indirect
201201
github.com/pion/logging v0.2.4 // indirect
202202
github.com/pion/mdns/v2 v2.1.0 // indirect
203203
github.com/pion/randutil v0.1.0 // indirect
204204
github.com/pion/rtcp v1.2.16 // indirect
205205
github.com/pion/rtp v1.8.25 // indirect
206-
github.com/pion/sctp v1.8.40 // indirect
206+
github.com/pion/sctp v1.8.41 // indirect
207207
github.com/pion/sdp/v3 v3.0.16 // indirect
208-
github.com/pion/srtp/v3 v3.0.8 // indirect
208+
github.com/pion/srtp/v3 v3.0.9 // indirect
209209
github.com/pion/stun/v3 v3.0.1 // indirect
210210
github.com/pion/transport/v2 v2.2.10 // indirect
211211
github.com/pion/transport/v3 v3.1.1 // indirect
@@ -233,7 +233,7 @@ require (
233233
github.com/tklauser/numcpus v0.11.0 // indirect
234234
github.com/ucwong/filecache v1.0.7 // indirect
235235
github.com/ucwong/go-ttlmap v1.0.2-0.20221020173635-331e7ddde2bb // indirect
236-
github.com/ucwong/golang-kv v1.0.24-0.20251109124133-d3b517c91775 // indirect
236+
github.com/ucwong/golang-kv v1.0.24-0.20251129161750-0c74710bc499 // indirect
237237
github.com/ucwong/shard v1.0.1-0.20250814204722-892131bad5ef // indirect
238238
github.com/wlynxg/anet v0.0.5 // indirect
239239
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
@@ -248,7 +248,7 @@ require (
248248
go.opentelemetry.io/otel/metric v1.38.0 // indirect
249249
go.opentelemetry.io/otel/trace v1.38.0 // indirect
250250
go.yaml.in/yaml/v2 v2.4.3 // indirect
251-
golang.org/x/exp v0.0.0-20251113190631-e25ba8c21ef6 // indirect
251+
golang.org/x/exp v0.0.0-20251125195548-87e1e737ad39 // indirect
252252
golang.org/x/mod v0.30.0 // indirect
253253
golang.org/x/net v0.47.0 // indirect
254254
golang.org/x/term v0.37.0 // indirect
@@ -261,5 +261,3 @@ require (
261261
modernc.org/sqlite v1.40.1 // indirect
262262
zombiezen.com/go/sqlite v1.4.2 // indirect
263263
)
264-
265-
replace github.com/ajwerner/btree => github.com/anacrolix/btree v0.0.0-20251103085645-fd1051eb0009

0 commit comments

Comments
 (0)