Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CassandraCqlClusterFactoryBean with support for setting speculativeExecutionPolicy. [DATACASS-320] #489

Closed
spring-projects-issues opened this issue Jul 19, 2016 · 1 comment
Assignees
Labels
in: core Issues in core support type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link

John Blum opened DATACASS-320 and commented

Update CassandraCqlClusterFactoryBean to include a setSpeculativeExecutionPolicy(:SpeculativeExecutionPolicy) method and update the afterPropertiesSet() method to set on the Cluster.Builder.

Example SpeculativeExecutionPolicy usage:

PerHostPercentileTracker tracker = PerHostPercentileTracker
    .builderWithHighestTrackableLatencyMillis(15000)
    .build();

PercentileSpeculativeExecutionPolicy policy = new PercentileSpeculativeExecutionPolicy(tracker, 99.0, 2);

Cluster.builder().addContactPoint("127.0.0.1")
    .withSpeculativeExecutionPolicy(policy)
    .build(); 

Affects: 1.4.2 (Hopper SR2)

Referenced from: pull request #79

@spring-projects-issues
Copy link
Author

John Blum commented

Recent StackOverflow post pertaining to this JIRA ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants