-
Notifications
You must be signed in to change notification settings - Fork 300
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
Broker in scheduler unable to connect to Redis #2496
Comments
@PKizzle Please send me the launch configuration for helm charts, thx. |
These are all the changes I have made to the scheduler:
config:
seedPeer:
enable: false
metrics:
prometheusRule:
enable: true
seedPeer:
enable: false
dfdaemon:
console: true
download:
totalRateLimit: 40Mi
perPeerRateLimit: 20Mi
upload:
rateLimit: 20Mi
objectStorage:
enable: true
maxReplicas: 1
storage:
taskExpireTime: 3h
strategy: io.d7y.storage.v2.advance
diskGCThreshold: 4Gi
network:
enableIPv6: true
manager:
ingress:
enable: true
className: "haproxy-internal"
annotations:
haproxy.org/ssl-redirect: "true"
hosts:
- "${DRAGONFLY_DOMAIN}"
config:
auth:
jwt:
key: "${JWT_KEY}"
objectStorage:
enable: true
endpoint: "${S3_DOMAIN}"
accessKey: "${AWS_ACCESS_KEY_ID}"
secretKey: "${AWS_SECRET_ACCESS_KEY}"
network:
enableIPv6: true
console: true
mysql:
enable: false
# Custom addition to helm chart for postgres support
externalPostgres:
migrate: true
host: "${PGHOST}"
username: "${PGUSER}"
password: "${PGPASSWORD}"
database: "dragonfly"
port: 5432
sslMode: require
redis:
enable: false
externalRedis:
addrs:
- "rfs-dragonfly-redis.kube-system.svc.cluster.local:26379"
masterName: "mymaster"
username: null
password: "${REDIS_PASSWORD}"
db: 0
brokerDB: 0
backendDB: 0
networkTopologyDB: 0 |
Also, the dependency used for the async (job) queue is no longer maintained: RichardKnop/machinery#790 |
After taking a closer look at the machinery source code sentinel support is only provided for the go-redis implementation. The factor that decides whether redigo or go-redis are used is the number of broker addresses. Two or more addresses leads to the go-redis implementation being used. Thus adding an additional empty address in the I do not see any reason why machinery is using two different redis implementations and therefore highly recommend to switch to a different job queue dependency that does not introduce this kind of complexity. |
Bug report:
The broker in the scheduler logs a connection error signalling that it is unable to authenticate with the Redis server.
This is the error message that is repeated over and over again:
v1/worker.go:84 Broker failed with error: ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?
Expected behavior:
Authentication succeeds and no error message is logged.
How to reproduce it:
--console
argument)Environment:
The text was updated successfully, but these errors were encountered: