@@ -46,22 +46,23 @@ type SSLConfig struct {
46
46
47
47
// Config contains configuration structure for scylla manager.
48
48
type Config struct {
49
- HTTP string `yaml:"http"`
50
- HTTPS string `yaml:"https"`
51
- TLSVersion config.TLSVersion `yaml:"tls_version"`
52
- TLSCertFile string `yaml:"tls_cert_file"`
53
- TLSKeyFile string `yaml:"tls_key_file"`
54
- TLSCAFile string `yaml:"tls_ca_file"`
55
- Prometheus string `yaml:"prometheus"`
56
- Debug string `yaml:"debug"`
57
- Logger config.LogConfig `yaml:"logger"`
58
- Database DBConfig `yaml:"database"`
59
- SSL SSLConfig `yaml:"ssl"`
60
- Healthcheck healthcheck.Config `yaml:"healthcheck"`
61
- Backup backup.Config `yaml:"backup"`
62
- Restore restore.Config `yaml:"restore"`
63
- Repair repair.Config `yaml:"repair"`
64
- TimeoutConfig scyllaclient.TimeoutConfig `yaml:"agent_client"`
49
+ HTTP string `yaml:"http"`
50
+ HTTPS string `yaml:"https"`
51
+ TLSVersion config.TLSVersion `yaml:"tls_version"`
52
+ TLSCertFile string `yaml:"tls_cert_file"`
53
+ TLSKeyFile string `yaml:"tls_key_file"`
54
+ TLSCAFile string `yaml:"tls_ca_file"`
55
+ Prometheus string `yaml:"prometheus"`
56
+ Debug string `yaml:"debug"`
57
+ ClientCacheTimeout time.Duration `yaml:"client_cache_timeout"`
58
+ Logger config.LogConfig `yaml:"logger"`
59
+ Database DBConfig `yaml:"database"`
60
+ SSL SSLConfig `yaml:"ssl"`
61
+ Healthcheck healthcheck.Config `yaml:"healthcheck"`
62
+ Backup backup.Config `yaml:"backup"`
63
+ Restore restore.Config `yaml:"restore"`
64
+ Repair repair.Config `yaml:"repair"`
65
+ TimeoutConfig scyllaclient.TimeoutConfig `yaml:"agent_client"`
65
66
}
66
67
67
68
func DefaultConfig () Config {
@@ -83,11 +84,12 @@ func DefaultConfig() Config {
83
84
SSL : SSLConfig {
84
85
Validate : true ,
85
86
},
86
- Healthcheck : healthcheck .DefaultConfig (),
87
- Backup : backup .DefaultConfig (),
88
- Restore : restore .DefaultConfig (),
89
- Repair : repair .DefaultConfig (),
90
- TimeoutConfig : scyllaclient .DefaultTimeoutConfig (),
87
+ Healthcheck : healthcheck .DefaultConfig (),
88
+ ClientCacheTimeout : 15 * time .Minute ,
89
+ Backup : backup .DefaultConfig (),
90
+ Restore : restore .DefaultConfig (),
91
+ Repair : repair .DefaultConfig (),
92
+ TimeoutConfig : scyllaclient .DefaultTimeoutConfig (),
91
93
}
92
94
}
93
95
0 commit comments