Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@qiangdavidliu
Copy link
Contributor

This pull provides an abstraction over the transport layer of eureka-client. It also provides ways of resolving query targets that can handle intelligent pre-discovery query targets. For example this can be used for cases were readonly replicas of discovery servers can be deployed and queries are handled by the readonly replica, via an initial bootstrap resolve from the master replicas.

As of this current implementation, both the old and new code paths are preserved and the old code path is enabled by default. To use the new transport code, set the properties:

eureka.experimental.transport.registration.enabled=true
eureka.experimental.transport.query.enabled=true

To use the intelligent query resolver, set the properties

eureka.transport.readClusterVip=[insert the vip address of the query targets here]
eureka.transport.useBootstrapResolverForQuery=false

Tomasz Bak and others added 30 commits September 17, 2015 15:58
so different retry logic can be injected for registration and query operations
…ver' into refactorings/transport

Conflicts:
	eureka-client/src/test/java/com/netflix/discovery/converters/EurekaJsonAndXmlJacksonCodecTest.java
	eureka-core/src/main/java/com/netflix/eureka/cluster/JerseyReplicationClient.java
	eureka-core/src/main/java/com/netflix/eureka/cluster/PeerEurekaNodes.java
	eureka-core/src/main/java/com/netflix/eureka/cluster/ReplicationTask.java
	eureka-core/src/test/java/com/netflix/eureka/cluster/JerseyReplicationClientTest.java
	eureka-core/src/test/java/com/netflix/eureka/cluster/TestableInstanceReplicationTask.java
	eureka-server/src/test/java/com/netflix/eureka/resources/EurekaClientServerRestIntegrationTest.java
	eureka-test-utils/src/main/java/com/netflix/discovery/util/DiagnosticClient.java
It is still an optional feature that must be explicitly enabled. By default
the previous transport implementation is used.
eureka-client-jersey2 module is still work in progress, as DiscoveryClient
has hard dependency on Jersey 1.x.
…ver' into refactorings/transport

Conflicts:
	eureka-core/src/main/java/com/netflix/eureka/DefaultEurekaServerConfig.java
	eureka-core/src/main/java/com/netflix/eureka/EurekaServerConfig.java
	eureka-core/src/main/java/com/netflix/eureka/cluster/PeerEurekaNode.java
	eureka-core/src/main/java/com/netflix/eureka/cluster/PeerEurekaNodes.java
	eureka-core/src/main/java/com/netflix/eureka/cluster/ReplicationTask.java
	eureka-core/src/main/java/com/netflix/eureka/cluster/ReplicationTaskProcessor.java
	eureka-core/src/test/java/com/netflix/eureka/cluster/TestableInstanceReplicationTask.java
Vip query methods, and related support in DiscoveryClient were not
implemented.
The single, very long running test was refactored to shorten its
execution time.
Refactorings/transport sync with master
…sport

Conflicts:
	eureka-client/src/main/java/com/netflix/discovery/util/EurekaEntityFunctions.java
- created a transport specific config
Intelligent resolvers for read operations
- a single jerseyClient is used for query, registration and httpResolver
- a single bootstrap resolver (async wrapped) is used for query and registration resolvers
@cloudbees-pull-request-builder

NetflixOSS » eureka » eureka-pull-requests #496 SUCCESS
This pull request looks good

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets always use milliseconds. Using seconds is bad for unit tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were due to a bad diff.

qiangdavidliu added a commit that referenced this pull request Oct 16, 2015
@qiangdavidliu qiangdavidliu merged commit de24b93 into master Oct 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants