Instead it's likely preferable to mark the server as unavailable and let itĬircuit breakers are a pattern that does exactly that. When Redis is used as a cache and a connection error happens, you may not want to retry as it might take When the Redis server is used as an ephemeral cache, circuit breakers are generally prefered. That it's not really possibe to continue without issuing the command. This configuration is generally used when the Redis server is expected to failover or recover relatively quickly and The client is able to perform automatic failover by using Redis Sentinel. This can be used to hold middleware configurations and other user specific metadatas. custom: A user owned value ignored by redis-client but available as Config#custom.protocol: The version of the RESP protocol to use.See the circuit breaker section for details. circuit_breaker: A Hash with circuit breaker configuration.Makes sure to read the reconnection section before enabling it. reconnect_attempts: Specify how many times the client should retry to send queries.write_timeout: The write timeout, takes precedence over the general timeout when sending commands to the server.read_timeout: The read timeout, takes precedence over the general timeout when reading responses from the server.connect_timeout: The connection timeout, takes precedence over the general timeout when connecting to the server.timeout: The general timeout in seconds, default to 1.0.password Password to authenticate against server.username Username to authenticate against server, defaults to "default".id ID for the client connection, assigns name to current connection by sending CLIENT SETNAME.db: The database to select after connecting, defaults to 0.ca_file: The certificate authority to use, useful for self signed certificates (e.g.cert: The path to the client certificate (e.g.ssl_params: A configuration Hash passed to OpenSSL::SSL::SSLContext#set_params, notable options include:. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |