Today I am facing a problem that the redis in the kubernetes cluster shows error like this:
2021-11-16T05:32:18 [INFO] - increment delete failed...,MobcError(RedisCMDError(An error was signalled by the server: You can't write against a read only replica.))
I check my redis config and found that the config url like this:
redisConnectionStr="redis://default:[email protected]:6379/3"
I check the servcie and found it mapped to the redis cluster master and replica, I was wonder the headness service user for what situation? why not only keep the master servcie and replica servcie? If read operate, use any of the servcie would be fine. If write, only use the master service. when should i use the headness service?