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
// Config holds configuration for index cleaner binary.
@@ -39,59 +40,28 @@ type Config struct {
39
40
40
41
// AddFlags adds flags for TLS to the FlagSet.
41
42
func (*Config) AddFlags(flags*flag.FlagSet) {
42
-
flags.Int(shards, 5, "(deprecated, will be replaced with num-shards-span,num-shards-service,num-shards-sampling,num-shards-dependencies, if .num-shards set, it will be used as global settings for span,service,sampling,dependencies index) Number of shards")
43
-
flags.Int(replicas, 1, "(deprecated, will be replaced with num-replicas-span,num-replicas-service,num-replicas-sampling,num-replicas-dependencies, if .num-replicas set, it will be used as global settings for span,service,sampling,dependencies index) Number of replicas")
44
-
flags.Int(prioritySpanTemplate, 0, "(deprecated, will be replaced with priority-spans-template) Priority of jaeger-span index template (ESv8 only)")
45
-
flags.Int(priorityServiceTemplate, 0, "(deprecated, will be replaced with priority-services-template) Priority of jaeger-service index template (ESv8 only)")
46
-
47
-
flags.Int64(cfg.NumShardSpanFlag(), 5, "Number of span index shards")
48
-
flags.Int64(cfg.NumShardServiceFlag(), 5, "Number of service index shards")
49
-
flags.Int64(cfg.NumShardDependenciesFlag(), 5, "Number of dependencies index shards")
50
-
flags.Int64(cfg.NumShardSamplingFlag(), 5, "Number of sampling index shards")
51
-
52
-
flags.Int64(cfg.NumReplicaSpanFlag(), 1, "Number of span index replicas")
53
-
flags.Int64(cfg.NumReplicaServiceFlag(), 1, "Number of services index replicas")
54
-
flags.Int64(cfg.NumReplicaDependenciesFlag(), 1, "Number of dependencies index replicas")
55
-
flags.Int64(cfg.NumReplicaSamplingFlag(), 1, "Number of sampling index replicas")
56
-
57
-
flags.Int64(cfg.PrioritySpanTemplateFlag(), 0, "Priority of jaeger-span index template (ESv8 only)")
58
-
flags.Int64(cfg.PriorityServiceTemplateFlag(), 0, "Priority of jaeger-service index template (ESv8 only)")
59
-
flags.Int64(cfg.PriorityDependenciesTemplateFlag(), 0, "Priority of jaeger-dependencies index template (ESv8 only)")
60
-
flags.Int64(cfg.PrioritySamplingTemplateFlag(), 0, "Priority of jaeger-sampling index template (ESv8 only)")
43
+
flags.Int(shards, 5, "Number of shards")
44
+
flags.Int(replicas, 1, "Number of replicas")
45
+
flags.Int(prioritySpanTemplate, 0, "Priority of jaeger-span index template (ESv8 only)")
46
+
flags.Int(priorityServiceTemplate, 0, "Priority of jaeger-service index template (ESv8 only)")
47
+
flags.Int(priorityDependenciesTemplate, 0, "Priority of jaeger-dependencies index template (ESv8 only)")
48
+
flags.Int(prioritySamplingTemplate, 0, "Priority of jaeger-sampling index template (ESv8 only)")
61
49
}
62
50
63
51
// InitFromViper initializes config from viper.Viper.
@@ -56,56 +54,15 @@ func (o *Options) AddFlags(command *cobra.Command) {
56
54
7,
57
55
"The major Elasticsearch version")
58
56
command.Flags().Int64Var(
59
-
&deprecatedOptions.TemplateNumShards,
57
+
&indexOptions.TemplateNumShards,
60
58
shardsFlag,
61
59
5,
62
-
"(deprecated, will be replaced with num-shards-span,num-shards-service,num-shards-sampling,num-shards-dependencies, if .num-shards set, it will be used as global settings for span,service,sampling,dependencies index) The number of shards per index in Elasticsearch")
60
+
"The number of shards per index in Elasticsearch")
63
61
command.Flags().Int64Var(
64
-
&deprecatedOptions.TemplateNumReplicas,
62
+
&indexOptions.TemplateNumReplicas,
65
63
replicasFlag,
66
64
1,
67
-
"(deprecated, will be replaced with num-replicas-span,num-replicas-service,num-replicas-sampling,num-replicas-dependencies, if .num-replicas set, it will be used as global settings for span,service,sampling,dependencies index) The number of replicas per index in Elasticsearch")
68
-
69
-
command.Flags().Int64Var(
70
-
&o.Indices.Spans.TemplateNumShards,
71
-
config.NumShardSpanFlag(),
72
-
5,
73
-
"The number of shards per span index in Elasticsearch")
74
-
command.Flags().Int64Var(
75
-
&o.Indices.Spans.TemplateNumReplicas,
76
-
config.NumReplicaSpanFlag(),
77
-
1,
78
65
"The number of replicas per index in Elasticsearch")
79
-
command.Flags().Int64Var(
80
-
&o.Indices.Services.TemplateNumShards,
81
-
config.NumShardServiceFlag(),
82
-
5,
83
-
"The number of shards per service index in Elasticsearch")
84
-
command.Flags().Int64Var(
85
-
&o.Indices.Services.TemplateNumReplicas,
86
-
config.NumReplicaServiceFlag(),
87
-
1,
88
-
"The number of replicas per service index in Elasticsearch")
89
-
command.Flags().Int64Var(
90
-
&o.Indices.Dependencies.TemplateNumShards,
91
-
config.NumShardDependenciesFlag(),
92
-
5,
93
-
"The number of shards per dependencies index in Elasticsearch")
94
-
command.Flags().Int64Var(
95
-
&o.Indices.Dependencies.TemplateNumReplicas,
96
-
config.NumReplicaDependenciesFlag(),
97
-
1,
98
-
"The number of replicas per dependencies index in Elasticsearch")
99
-
command.Flags().Int64Var(
100
-
&o.Indices.Sampling.TemplateNumShards,
101
-
config.NumShardSamplingFlag(),
102
-
5,
103
-
"The number of shards per sampling index in Elasticsearch")
104
-
command.Flags().Int64Var(
105
-
&o.Indices.Sampling.TemplateNumReplicas,
106
-
config.NumReplicaSamplingFlag(),
107
-
1,
108
-
"The number of replicas per sampling index in Elasticsearch")
109
66
command.Flags().StringVar(
110
67
&o.IndexPrefix,
111
68
indexPrefixFlag,
@@ -122,21 +79,15 @@ func (o *Options) AddFlags(command *cobra.Command) {
122
79
"jaeger-ilm-policy",
123
80
"The name of the ILM policy to use if ILM is active")
0 commit comments