Skip to content
Permalink
Browse files
Merge pull request #19 from BLasan/remove-eureka
Removed Eureka Client Side Load Balancing
  • Loading branch information
fynmanoj committed Jun 1, 2022
2 parents 01bd419 + bbbee37 commit 51089b5cdfa060f4d4871293196cb736bcca5cd6
Showing 5 changed files with 20 additions and 8 deletions.
@@ -42,7 +42,7 @@
* @author Myrle Krantz
*/
@SuppressWarnings("unused")
@FeignClient(name="provisioner-v1", path="/provisioner/v1", configuration=CustomFeignClientsConfiguration.class)
@FeignClient(path="/provisioner/v1", url="http://${kubernetes.provisioner.service.name}:${kubernetes.provisioner.server.port}", configuration=CustomFeignClientsConfiguration.class)
public interface Provisioner {


@@ -46,7 +46,7 @@ public class AbstractServiceTest {

@Configuration
@EnableFeignClients(basePackages = {"org.apache.fineract.cn.provisioner.api.v1.client"})
@RibbonClient(name = APP_NAME)
// @RibbonClient(name = APP_NAME)
@Import({ProvisionerServiceConfig.class})
public static class TestConfiguration {
public TestConfiguration() {
@@ -95,7 +95,7 @@ public class TestTenantApplicationAssignment {

@Configuration
@EnableFeignClients(basePackages = {"org.apache.fineract.cn.provisioner.api.v1.client"})
@RibbonClient(name = APP_NAME)
// @RibbonClient(name = APP_NAME)
@Import({ProvisionerServiceConfig.class})
public static class TestConfiguration {
public TestConfiguration() {
@@ -46,7 +46,8 @@ bootRepackage {
dependencies {
compile(
[group: 'org.springframework.cloud', name: 'spring-cloud-starter-config'],
[group: 'org.springframework.cloud', name: 'spring-cloud-starter-eureka'],
[group: 'org.springframework.boot', name: 'spring-boot-starter-web'],
// [group: 'org.springframework.cloud', name: 'spring-cloud-starter-eureka'],
[group: 'org.springframework.boot', name: 'spring-boot-starter-jetty'],
[group: 'org.springframework', name: 'spring-jms', version: versions.springcontext],
[group: 'org.apache.activemq', name: 'activemq-broker', version: versions.activeMQ],
@@ -17,10 +17,10 @@
# under the License.
#

eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
#eureka:
# client:
# serviceUrl:
# defaultZone: http://localhost:8761/eureka/

server:
port: 2020
@@ -51,3 +51,14 @@ spring:
url: jdbc:postgresql://localhost:5432/seshat
username: postgres
password: postgres

kubernetes:
provisioner:
service:
name: provisioner-service
server:
port: 2020

ribbon:
eureka:
enabled: false

0 comments on commit 51089b5

Please sign in to comment.