Olga Maciaszek-Sharma
c04e4a2aed
Merge remote-tracking branch 'origin/2.2.x'
4 years ago
Olga Maciaszek-Sharma
65201f8f61
Add RandomLoadBalancer, along with tests and docs. ( #868 )
...
# Conflicts:
# spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/RoundRobinLoadBalancer.java
4 years ago
Olga Maciaszek-Sharma
ddd370c57d
Add function-based health check. Add restTemplate-based health-check beans to default config ( #866 )
...
* Switch to a function-based HealthCheckServiceInstanceListSupplier.
* Handle exception for restTemplate based function. Add default blocking health-check configuration.
* Add docs.
4 years ago
Olga Maciaszek-Sharma
c6bd75eb5d
Move LoadBalancerProperties to the parent package.
4 years ago
Olga Maciaszek-Sharma
8969d5d1e1
Remove deprecations.
4 years ago
Olga Maciaszek-Sharma
8739f8c233
Fix adding cookies. Update docs.
4 years ago
Olga Maciaszek-Sharma
3faeb77f55
Add HttpServerRequest-based constructor to RequestData. ( #865 )
...
* Add HttpServerRequest-based constructor to RequestData. Add HttpServerResponse-based constructor to ResponseData.
* Also get request cookies from headers.
* Handle cookie pattern not found.
* Fix adding cookie.
4 years ago
Olga Maciaszek-Sharma
28e096573a
Fix generics.
4 years ago
Olga Maciaszek-Sharma
dce413ae66
Do not pass response body to LB lifecycle beans. ( #864 )
...
* Do not pass response body to LB lifecycle beans.
* Fix argument name.
4 years ago
Olga Maciaszek-Sharma
0f98419c47
Request based sticky session ( #860 )
...
* Implement first draft for sticky-session load-balancing.
* Make setting instance cookie opt-in.
* Add tests.
* Make adding request cookie opt-in.
* Add docs and javadocs.
* Add default configuration with blocking discovery client.
* Fix docs after review.
4 years ago
Olga Maciaszek-Sharma
c3223934f8
Merge remote-tracking branch 'origin/2.2.x'
4 years ago
Olga Maciaszek-Sharma
c1128e5065
Fix @since info.
4 years ago
Olga Maciaszek-Sharma
2a1a50848f
Merge remote-tracking branch 'origin/2.2.x'
...
# Conflicts:
# docs/src/main/asciidoc/spring-cloud-commons.adoc
# spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/annotation/LoadBalancerClientConfiguration.java
# spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/RoundRobinLoadBalancer.java
# spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/core/LoadBalancerTests.java
4 years ago
Olga Maciaszek-Sharma
843cb79649
Support same service instance preference ( #862 )
...
* Draft initial implementation.
* Rename default configuration property. Check previously chosen instance for equality.
* Verify previous service instance for null. Add tests.
* Add docs.
* Add javadocs.
* Fix javadocs after review.
4 years ago
buildmaster
3d645bbc57
Going back to snapshots
4 years ago
buildmaster
b5801856a3
Update SNAPSHOT to 3.0.0-M6
4 years ago
Olga Maciaszek-Sharma
5a3c2b7364
Add ServerHttpRequestContext. ( #857 )
4 years ago
Olga Maciaszek-Sharma
c65dfbca6b
Merge remote-tracking branch 'origin/2.2.x'
...
# Conflicts:
# docs/src/main/asciidoc/_configprops.adoc
# spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/reactive/LoadBalancerProperties.java
# spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/HealthCheckServiceInstanceListSupplier.java
# spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/core/HealthCheckServiceInstanceListSupplierTests.java
4 years ago
Olga Maciaszek-Sharma
cbedae2e82
Allow refetching instances for healthcheck ( #855 )
...
* Allow refetching instances by HealthCheckServiceInstanceListSupplier.
* Add docs and javadocs.
* Fix docs after review.
4 years ago
Dave Syer
7287a3c767
Re-implement /pause endpoint
...
A new interface PauseHandler provides a callback for /pause and
/resume. The only implementation provided out of the box is for
Spring Integration's Pausable (so it will work with Spring Cloud
Stream Kafka for instance).
Fixes gh-788
4 years ago
buildmaster
48d315fa5b
Bumping versions
4 years ago
buildmaster
4215a9a046
Going back to snapshots
4 years ago
buildmaster
99f2a754d8
Update SNAPSHOT to 3.0.0-M5
4 years ago
buildmaster
ad00eaeeae
Bumping versions
4 years ago
spencergibb
f6a3988ed6
Merge branch '2.2.x'
4 years ago
spencergibb
18109085aa
formatting
4 years ago
spencergibb
17a82c21aa
Move properties to parameter.
...
Fixes gh-850
4 years ago
buildmaster
97189b4142
Bumping versions
4 years ago
Olga Maciaszek-Sharma
f5a5bef06f
Merge remote-tracking branch 'origin/2.2.x'
...
# Conflicts:
# docs/pom.xml
# pom.xml
# spring-cloud-commons-dependencies/pom.xml
# spring-cloud-commons/pom.xml
# spring-cloud-context-integration-tests/pom.xml
# spring-cloud-context-webflux-integration-tests/pom.xml
# spring-cloud-context/pom.xml
# spring-cloud-loadbalancer/pom.xml
# spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/annotation/LoadBalancerClientConfiguration.java
# spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/annotation/LoadBalancerClientConfigurationTests.java
# spring-cloud-starter-loadbalancer/pom.xml
# spring-cloud-starter/pom.xml
# spring-cloud-test-support/pom.xml
4 years ago
Olga Maciaszek-Sharma
17e9a2af38
Remove LB caching from default health-check config, since HealthCheckServiceInstanceListSupplier has a separate caching mechanism. Fixes gh-849.
4 years ago
Olga Maciaszek-Sharma
7f23cb852f
Add Reactive retries for SC LoadBalancer ( #847 )
...
* Implement retry logic.
* Fix retrying on next instance when RetryExhausted in same instance.
* Fix retrying on next instance when RetryExhausted in same instance.
* Fix retrying on next instance when RetryExhausted in same instance.
* Move duplicated methods to utility class. Fix checkstyle.
* Fix test.
* Add more tests.
* Fix test.
* Add autoConfiguration.
* Refactor and add javadocs.
* Add javadocs.
* Use RetryAwareServiceInstanceListSupplier with reactive retries.
* Update properties.
* Fix the docs.
* Rename utility class.
* Verify interactions in order.
4 years ago
buildmaster
259df6f4ee
Bumping versions to 2.2.7.BUILD-SNAPSHOT after release
4 years ago
buildmaster
439c966bb8
Going back to snapshots
4 years ago
buildmaster
30bf7336c9
Update SNAPSHOT to 2.2.6.RELEASE
4 years ago
Marcin Grzejszczak
1195581e02
Ignored a test; added conditional on property
4 years ago
buildmaster
a09abe00a4
Bumping versions
4 years ago
Olga Maciaszek-Sharma
4b3a399f7b
Merge remote-tracking branch 'origin/2.2.x'
...
# Conflicts:
# spring-cloud-commons/src/main/java/org/springframework/cloud/client/DefaultServiceInstance.java
# spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryClient.java
# spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryClientAutoConfiguration.java
# spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/reactive/SimpleReactiveDiscoveryClientAutoConfiguration.java
# spring-cloud-commons/src/test/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryClientTests.java
# spring-cloud-commons/src/test/java/org/springframework/cloud/client/discovery/simple/reactive/SimpleReactiveDiscoveryClientTests.java
# spring-cloud-commons/src/test/java/org/springframework/cloud/client/loadbalancer/reactive/LoadBalancerExchangeFilterFunctionTests.java
# spring-cloud-commons/src/test/java/org/springframework/cloud/client/loadbalancer/reactive/ReactorLoadBalancerExchangeFilterFunctionTests.java
# spring-cloud-loadbalancer/src/test/java/org/springframework/cloud/loadbalancer/blocking/client/BlockingLoadBalancerClientTests.java
4 years ago
Olga Maciaszek-Sharma
ba8fd08adf
Adjust after PR merge. Minor refactoring.
4 years ago
alchemy24
72762d76ed
Deprecates SimpleServiceInstance in favor of DefaultServiceInstance ( #835 )
...
* Initial Commit
* Added URI to DefaultServiceInstance
* Added default constructor
* Fixed PR Comments
4 years ago
buildmaster
44b35c2cbf
Going back to snapshots
4 years ago
buildmaster
83b7a1d6b3
Update SNAPSHOT to 3.0.0-M4
4 years ago
Ryan Baxter
084da119a1
Revert "Setting reactor bom to 2020.0.0-SNAPSHOT due to reactor bom overriding in HATEOAS"
...
This reverts commit 6ea0b4738b
.
4 years ago
Olga Maciaszek-Sharma
e1c570af07
Add equals(), hashCode() and toString() methods to HintRequestContext and RetryableRequestContext.
4 years ago
Olga Maciaszek-Sharma
0fc6f97974
Merge remote-tracking branch 'origin/2.2.x'
...
# Conflicts:
# spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/DefaultRequest.java
# spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/DefaultRequestContext.java
4 years ago
Olga Maciaszek-Sharma
653222d561
Override equals(), hashCode() and toString() in DefaultRequest and DefaultRequestContext.
4 years ago
Ralph Goers
4a2e83ea46
Remove URL check that causes loading 401 responses from Spring Cloud Config
4 years ago
Olga Maciaszek-Sharma
0f0a4963d9
Merge remote-tracking branch 'origin/2.2.x'
...
# Conflicts:
# spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/RetryLoadBalancerInterceptor.java
4 years ago
Olga Maciaszek-Sharma
8748ef400f
Add more logs.
4 years ago
Olga Maciaszek-Sharma
25c17082ee
Avoid retrying on same instance ( #834 )
...
* cherry-pick switching to properties
* Pass information on previous ServiceInstance to RequestContext.
# Conflicts:
# spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/blocking/retry/BlockingLoadBalancedRetryPolicy.java
* Add a RoundRobinLoadBalancer implementation that avoids same service instance while retrying.
* Wrap instances in ArrayList. Add tests.
* Enable AvoidPreviousInstanceRoundRobinLoadBalancer by default if SpringRetry on classpath.
* Fix failing tests. Add javadocs and author tags.
* Fix properties.
* Add documentation.
* Fix docs after review.
* Fix docs after review.
* Handle avoiding previous instance with ServiceInstanceListSupplier in place of LoadBalancer.
* Fix property name.
* Change spelling.
4 years ago
Olga Maciaszek-Sharma
cbe4bb1139
Merge remote-tracking branch 'origin/2.2.x'
4 years ago