You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/experimental/migrate/posix/main.go
+28-9Lines changed: 28 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,8 @@ import (
29
29
"strings"
30
30
"time"
31
31
32
+
"github.com/dgraph-io/badger/v4"
33
+
"github.com/dustin/go-humanize"
32
34
"github.com/transparency-dev/tessera"
33
35
"github.com/transparency-dev/tessera/api/layout"
34
36
"github.com/transparency-dev/tessera/client"
@@ -38,12 +40,15 @@ import (
38
40
)
39
41
40
42
var (
41
-
storageDir=flag.String("storage_dir", "", "Path to directory in which to store the migrated data.")
42
-
sourceURL=flag.String("source_url", "", "Base monitoring URL for the source log.")
43
-
numWorkers=flag.Uint("num_workers", 30, "Number of migration worker goroutines.")
44
-
persistentAntispam=flag.Bool("antispam", true, "Set to true to populate antispam storage.")
45
-
antispamBatchSize=flag.Uint("antispam_batch_size", 50000, "Maximum number of antispam rows to insert per batch update.")
46
-
clientHTTPTimeout=flag.Duration("client_http_timeout", 30*time.Second, "Timeout for outgoing HTTP requests")
43
+
storageDir=flag.String("storage_dir", "", "Path to directory in which to store the migrated data.")
44
+
sourceURL=flag.String("source_url", "", "Base monitoring URL for the source log.")
45
+
numWorkers=flag.Uint("num_workers", 30, "Number of migration worker goroutines.")
46
+
persistentAntispam=flag.Bool("antispam", true, "Set to true to populate antispam storage.")
47
+
antispamBatchSize=flag.Uint("antispam_batch_size", 10000, "Maximum number of antispam rows to insert per batch update.")
48
+
antispamBlockCacheSize=flag.String("antispam_block_cache_size", "768MB", "Amount of RAM to allocate for antispam block cache, set to zero to disable.")
49
+
antispamIndexCacheSize=flag.String("antispam_index_cache_size", "768MB", "Amount of RAM to allocate for antispam index cache, set to zero for unlimited.")
50
+
antispamCompactionInterval=flag.Duration("antispam_compaction_interval", tposix_as.DefaultCompactionInterval, "Interval between GC/compaction runs on the antispam index.")
51
+
clientHTTPTimeout=flag.Duration("client_http_timeout", 30*time.Second, "Timeout for outgoing HTTP requests")
clientHTTPMaxIdle=flag.Int("client_http_max_idle", 20, "Maximum number of idle HTTP connections for outgoing requests.")
99
100
clientHTTPMaxIdlePerHost=flag.Int("client_http_max_idle_per_host", 10, "Maximum number of idle HTTP connections per host for outgoing requests.")
100
101
garbageCollectionInterval=flag.Duration("garbage_collection_interval", 10*time.Second, "Interval between scans to remove obsolete partial tiles and entry bundles. Set to 0 to disable.")
102
+
antispamBatchSize=flag.Uint("antispam_batch_size", 20000, "Maximum number of antispam rows to insert per batch update.")
103
+
antispamBlockCacheSize=flag.String("antispam_block_cache_size", "512MB", "Amount of RAM to allocate for antispam block cache, set to zero to disable.")
104
+
antispamIndexCacheSize=flag.String("antispam_index_cache_size", "512MB", "Amount of RAM to allocate for antispam index cache, set to zero for unlimited.")
105
+
antispamCompactionInterval=flag.Duration("antispam_compaction_interval", tposix_as.DefaultCompactionInterval, "Interval between GC/compaction runs on the antispam index.")
101
106
102
107
// Infrastructure setup flags
103
108
storageDir=flag.String("storage_dir", "", "Path to root of log storage.")
0 commit comments