1
0
Fork 0

More doc updates

master
Philip O'Toole 2 years ago
parent 7fbe1be491
commit 3b24aad742

@ -14,7 +14,7 @@ With _none_, the node simply queries its local SQLite database, and does not car
### Limiting read staleness
You can tell the node not return results (effectively) older than a certain time, however. If a read request sets the query parameter `freshness` to a [Go duration string](https://golang.org/pkg/time/#Duration), the node serving the read will check that less time has passed since it was last in contact with the Leader, than that specified via freshness. If more time has passed the node will return an error. `freshness` is ignored for all consistency levels except `none`, and is also ignored if set to zero.
> :warning: The `freshness` parameter is ignored if the node serving the query is the Leader. Any read, when served by the leader, is always going to be within any possible freshness bound.
> :warning: The `freshness` parameter is always ignored if the node serving the query is the Leader. Any read, when served by the leader, is always going to be within any possible freshness bound.
If you decide to deploy [read-only nodes](https://github.com/rqlite/rqlite/blob/master/DOC/READ_ONLY_NODES.md) however, _none_ combined with `freshness` can be a particularly effective at adding read scalability to your system. You can use lots of read-only nodes, yet be sure that a given node serving a request has not fallen too far behind the Leader (or even become disconnected from the cluster).

Loading…
Cancel
Save