-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[jaeger-v2] Add Validation And Comments to Badger Storage Config #5927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
389091d
06ec13d
f4ed853
aa952f5
3ef934e
e3752c8
ce6d0e3
5d5360c
a0b019e
c5f9ffa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -9,6 +9,7 @@ import ( | |||||
| "path/filepath" | ||||||
| "time" | ||||||
|
|
||||||
| "github.com/asaskevich/govalidator" | ||||||
| "github.com/spf13/viper" | ||||||
| "go.uber.org/zap" | ||||||
| ) | ||||||
|
|
@@ -19,18 +20,43 @@ type Options struct { | |||||
| // This storage plugin does not support additional namespaces | ||||||
| } | ||||||
|
|
||||||
| // NamespaceConfig is badger's internal configuration data | ||||||
| // NamespaceConfig is badger's internal configuration data. | ||||||
yurishkuro marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| type NamespaceConfig struct { | ||||||
| namespace string | ||||||
| SpanStoreTTL time.Duration `mapstructure:"span_store_ttl"` | ||||||
| ValueDirectory string `mapstructure:"directory_value"` | ||||||
| KeyDirectory string `mapstructure:"directory_key"` | ||||||
| // Setting this to true will ignore ValueDirectory and KeyDirectory | ||||||
| Ephemeral bool `mapstructure:"ephemeral"` | ||||||
| SyncWrites bool `mapstructure:"consistency"` | ||||||
| MaintenanceInterval time.Duration `mapstructure:"maintenance_interval"` | ||||||
| namespace string | ||||||
|
||||||
| // TTL holds time-to-live configuration for the badger store. | ||||||
| TTL TTL `mapstructure:"ttl"` | ||||||
| // Directories contains the configuration for where items are stored. Ephemeral must be | ||||||
| // set to false for this configuration to take effect. | ||||||
| Directories Directories `mapstructure:"directories"` | ||||||
| // Ephemeral, if set to true, will store data in a temporary file system. | ||||||
| // If set to true, the configuration in Directories is ignored. | ||||||
| Ephemeral bool `mapstructure:"ephemeral"` | ||||||
| // SyncWrites, if set to true, will immediately sync all writes to disk. Note that | ||||||
| // setting this field to true will affect write performance. | ||||||
| SyncWrites bool `mapstructure:"consistency"` | ||||||
| // MaintenanceInterval is the regular interval after which a maintenance job is | ||||||
| // run on the values in the store. | ||||||
| MaintenanceInterval time.Duration `mapstructure:"maintenance_interval"` | ||||||
| // MetricsUpdateInterval is the regular interval after which metrics are collected | ||||||
| // by Jaeger. | ||||||
| MetricsUpdateInterval time.Duration `mapstructure:"metrics_update_interval"` | ||||||
| ReadOnly bool `mapstructure:"read_only"` | ||||||
| // ReadOnly opens the data store in read-only mode. Multiple instances can open the same | ||||||
| // store in read-only mode. Values still in the write-ahead-log must be replayed before opening. | ||||||
| ReadOnly bool `mapstructure:"read_only"` | ||||||
| } | ||||||
|
|
||||||
| type TTL struct { | ||||||
| // SpanStore holds the amount of time that the span store data is stored. | ||||||
| // Once this duration has passed for a given key, span store data will | ||||||
| // no longer be accessible. | ||||||
| SpanStore time.Duration `mapstructure:"span_store"` | ||||||
|
||||||
| SpanStore time.Duration `mapstructure:"span_store"` | |
| Spans time.Duration `mapstructure:"spans"` |
Uh oh!
There was an error while loading. Please reload this page.