MCPcopy Index your code
hub / github.com/cortexproject/cortex / NewQuerySchedulerWithConfigFile

Function NewQuerySchedulerWithConfigFile

integration/e2ecortex/services.go:274–294  ·  view source on GitHub ↗
(name, configFile string, flags map[string]string, image string)

Source from the content-addressed store, hash-verified

272}
273
274func NewQuerySchedulerWithConfigFile(name, configFile string, flags map[string]string, image string) *CortexService {
275 if configFile != "" {
276 flags["-config.file"] = filepath.Join(e2e.ContainerSharedDir, configFile)
277 }
278
279 if image == "" {
280 image = GetDefaultImage()
281 }
282
283 return NewCortexService(
284 name,
285 image,
286 e2e.NewCommandWithoutEntrypoint("cortex", e2e.BuildArgs(e2e.MergeFlags(map[string]string{
287 "-target": "query-scheduler",
288 "-log.level": "warn",
289 }, flags))...),
290 e2e.NewHTTPReadinessProbe(httpPort, "/ready", 200, 299),
291 httpPort,
292 grpcPort,
293 )
294}
295
296func NewCompactor(name string, consulAddress string, flags map[string]string, image string) *CortexService {
297 return NewCompactorWithConfigFile(name, consulAddress, "", flags, image)

Callers 1

NewQuerySchedulerFunction · 0.85

Calls 7

BuildArgsFunction · 0.92
MergeFlagsFunction · 0.92
NewHTTPReadinessProbeFunction · 0.92
GetDefaultImageFunction · 0.85
NewCortexServiceFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected