.alter query weak consistency policy
The command sets the cluster query weak consistency policy, overriding the current policy, and then returns the updated policy. The updated policy can be later viewed using the show command. If not altered, the default policy applies.
Syntax
.alter cluster policy query_weak_consistency PolicyObject
Arguments
PolicyObject - Define a policy object, see also query weak consistency policy.
Result
JSON serialization of the updated query weak consistency policy object
Examples
.alter cluster policy query_weak_consistency @'{"PercentageOfNodes": 10, "MinimumNumberOfNodes": 2, "EnableMetadataPrefetch": false, "MaximumLagAllowedInMinutes": 10, "RefreshPeriodInSeconds": 300}'
Output
| PolicyName | EntityName | Policy | ChildEntities | EntityType |
|---|---|---|---|---|
| QueryWeakConsistencyPolicy | {"PercentageOfNodes": 10, "MinimumNumberOfNodes": 2 "EnableMetadataPrefetch": false, "MaximumLagAllowedInMinutes": 10, "RefreshPeriodInSeconds": 300} | Cluster |