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
Describe the bug
asynq can not follow the right redis master.
Environment:
OS: [Linux]
asynq package version [e.g. v0.25.0]
Redis/Valkey version
To Reproduce
use helm to install a redis cluster, with sentinel be set to true.
configure the asynq using sentinel:
Expected behavior
asynq can follow the right master and running normally.
Screenshots
go-redis can find the right master and change:
But asynq report error:
asynq: pid=1 2024/11/07 08:23:58.539202 ERROR: Dequeue error: UNKNOWN: redis eval error: READONLY You can't write against a read only replica. script: a8153319360adc71cdc370107f8ab9786f204765, on @user_script:3.
asynq: pid=1 2024/11/07 08:23:58.557608 ERROR: Failed to write server state data: UNKNOWN: redis command error: SADD failed: READONLY You can't write against a read only replica.
The text was updated successfully, but these errors were encountered:
hoorayman
changed the title
[BUG] Description of the bug: asynq can not follow the right redis master when using sentinel mode.
[BUG] asynq can not follow the right redis master when using sentinel mode.
Nov 7, 2024
This is most likely an issue with misconfiguration when using go-redis with Redis sentinel (Also, because you are running this in k8s, you will most likely have only 1 service that points to the redis sentinel endpoint). Could you debug a simple go-redis application first https://redis.uptrace.dev/guide/go-redis-sentinel.html#redis-server-client?
Describe the bug
asynq can not follow the right redis master.
Environment:
asynq
package version [e.g. v0.25.0]To Reproduce
use helm to install a redis cluster, with sentinel be set to true.
configure the asynq using sentinel:
Expected behavior
asynq can follow the right master and running normally.
Screenshots
go-redis can find the right master and change:
But asynq report error:
asynq: pid=1 2024/11/07 08:23:58.539202 ERROR: Dequeue error: UNKNOWN: redis eval error: READONLY You can't write against a read only replica. script: a8153319360adc71cdc370107f8ab9786f204765, on @user_script:3.
asynq: pid=1 2024/11/07 08:23:58.557608 ERROR: Failed to write server state data: UNKNOWN: redis command error: SADD failed: READONLY You can't write against a read only replica.
The text was updated successfully, but these errors were encountered: