Skip to content
Permalink
Browse files
Merge pull request #18 from BLasan/remove-eureka
Removed Eureka Client Side Load Balancing
  • Loading branch information
fynmanoj committed Jun 2, 2022
2 parents 0380611 + 8974eb1 commit c3bf9ab008b480f8f7184da1a70bc6890e488437
Showing 5 changed files with 23 additions and 11 deletions.
@@ -37,7 +37,7 @@
import org.springframework.web.bind.annotation.RequestParam;

@SuppressWarnings("unused")
@FeignClient(name="payroll-v1", path="/payroll/v1", configuration = CustomFeignClientsConfiguration.class)
@FeignClient(path="/payroll/v1", url = "http://${kubernetes.payroll.service.name}:${kubernetes.payroll.server.port}", configuration = CustomFeignClientsConfiguration.class)
public interface PayrollManager {

@RequestMapping(
@@ -54,7 +54,6 @@ public class AbstractPayrollTest extends SuiteTestEnvironment {
@EnableFeignClients(basePackages = {
"org.apache.fineract.cn.payroll.api.v1.client"
})
@RibbonClient(name = SuiteTestEnvironment.APP_NAME)
@ComponentScan(
basePackages = {
"org.apache.fineract.cn.payroll.listener"
@@ -44,7 +44,7 @@ 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.boot', name: 'spring-boot-starter-jetty'],
[group: 'org.apache.fineract.cn.payroll', name: 'api', version: project.version],
[group: 'org.apache.fineract.cn.accounting', name: 'api', version: versions.frameworkaccounting],
@@ -42,7 +42,6 @@
@SuppressWarnings("WeakerAccess")
@Configuration
@EnableAutoConfiguration
@EnableDiscoveryClient
@EnableAsync
@EnableTenantContext
@EnableCassandra
@@ -24,13 +24,6 @@ spring:
config:
enabled: false

eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
instance:
homePageUrl: "http://${eureka.hostname}:2031/payroll/v1/"

server:
port: 2031
contextPath: /payroll/v1/*
@@ -69,3 +62,24 @@ async:

flyway:
enabled: false

kubernetes:
payroll:
service:
name: payroll-service
server:
port: 2031
accounting:
service:
name: accounting-service
server:
port: 2025
customer:
service:
name: customer-service
server:
port: 2024

ribbon:
eureka:
enabled: false

0 comments on commit c3bf9ab

Please sign in to comment.