I am randomly facing an issue whenever I am setting data corresponding to a aerospike key or while deleting any key.
Error I am getting is EOF that’s all. And I am getting this error randomly and quite frequently, 10% of requests are failed because of this single error.
I am using all default settings provided by go library, just added a extra condition in write policy (writePolicy.MaxRetries = 2).
We are facing this on prod.
Please help here
This means that your connection to the database nodes are not stable (Network issue). Increase the Timeout and SocketTimeout accordingly, and monitor the quality of your network. The default for the policies cannot assume the optimal values for all conditions and environments, so you should study them and set proper values for your own use case and environment.
Thanks for reply -
Thanks for your reply
In my case :
SocketTimeout is 30 sec
TotalTimeout is 0
I increased MaxRetries to 3, still error frequency is same.
I think we limit the total timeout to 30s anyway, so the retries in your policy will have no effect.
Your timeout values are way too large. For simple operations (get, put, delete) try:
policy.SocketTimeout = 250 * time.Millisecond
policy.TotalTimeout = 1000 * time.Millisecond
policy.MaxRetries = 3