.alter-merge 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-merge cluster policy query_weak_consistency PolicyObject

Arguments

PolicyObject - Define a policy object, see also show command.

Result

JSON serialization of the updated query weak consistency policy object

Examples

.alter-merge cluster policy query_weak_consistency @'{"PercentageOfNodes": 40}'

Output

PolicyName EntityName Policy ChildEntities EntityType
QueryWeakConsistencyPolicy {"PercentageOfNodes": 40, "MinimumNumberOfNodes": 2 "EnableMetadataPrefetch": false, "MaximumLagAllowedInMinutes": 10, "RefreshPeriodInSeconds": 300} Cluster