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

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Jul 19, 2016

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

@spring-projects-issues spring-projects-issues commented Jul 19, 2016

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants