-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Is your feature request related to a problem? Please describe. π
If the crowdsec service is down during traefik stratup, the middleware will wait for the initial sincronization to fail, potentially haulting the whole routing initialization until it has finished.
This is the code:
if (config.CrowdsecMode == configuration.StreamMode || config.CrowdsecMode == configuration.AloneMode) && streamTicker == nil {
if config.CrowdsecMode == configuration.AloneMode {
if err := getToken(bouncer); err != nil {
bouncer.log.Error("New:getToken " + err.Error())
return nil, err
}
}
handleStreamTicker(bouncer)
isStartup = false
streamTicker = startTicker("stream", config.UpdateIntervalSeconds, log, func() {
handleStreamTicker(bouncer)
})
}
Describe the solution you'd like β¨
Revisit the startup process to avoid anything that blocks middleware startup.
mathieuHa
Metadata
Metadata
Assignees
Labels
No labels