Questions tagged [spring-cloud-zookeeper]
32 questions
1
vote
2 answers
How to load balance leader using zookeeper and spring integration
Using spring integration and zookeeper, one can implement a leader to perform activities such as polling.
However how do we distribute the leader responsibility to all nodes in the cluster to load balance?
Given below code, once the application…

suman j
- 6,710
- 11
- 58
- 109
0
votes
0 answers
Usage of Spring Cloud Zookeeper instead of Spring Cloud Config Server for Actuator refresh context
Spring Boot applications context needs to be refreshed after changing properties (in GIT repository) without a need of application redeployment.
Can I consider using zookeeper to fetch application properties stored externally (in a separate GIT…

user18363564
- 11
- 1
0
votes
0 answers
How to load the configs value from zookeeper's znode
I have a @Configuration class like below. I need to initialize configs from zookeeper znode's values on start of spring boot application and update config variables dynamically whenever their value gets updated in…

tusharRawat
- 719
- 10
- 24
0
votes
0 answers
How to make spring boot microservices consistent while using Eureka for service discovery?
The main criteria for choosing service discovery type is CAP theorem.
https://www.ibm.com/in-en/cloud/learn/cap-theorem
C- Consistency
A- Availability
P- Partition Tolerance
It says a distributed system can deliver only two of three desired…

Lisbon
- 126
- 1
- 1
- 12
0
votes
1 answer
Not able to execute the code for ZooKeeperMetaDataStore
I am using spring integration where I am trying to create a bean for MetaData
@Bean
public MetadataStore zkStore(CuratorFramework client) {
return new ZookeeperMetadataStore(client);
}
I am getting the error
Exception…

Karanjot Singh
- 136
- 7
0
votes
1 answer
Spring Cloud Zookeeper and Feign deployed on AWS ECS with Fargate
I have two Spring Boot applications, both using Spring Cloud Zookeeper for service discovery, and one of them uses Feign to talk to the other, as described here
It all works fine when deployed on localhost and as docker images via docker-compose…

andkov
- 96
- 10
0
votes
1 answer
Non-Java discovery registration for Spring Cloud Gateway/Zookeeper
Bottom-line up front: Is there a way to support non-Java discovery client made instances in Zookeeper, while providing custom metadata.
I'm building a Spring Cloud API Gateway. We're using Zookeeper discovery for most of our routes and Spring Cloud…

Jeff Walker
- 1,656
- 1
- 18
- 36
0
votes
1 answer
Disabled ZooKeeper in bootstrap.yml, it still runs during testing
I am running a SpringBoot App. I have bootstrap-test.yml (located under src/test/resources/config), which looks like:
spring.cloud.config.enabled: false
spring.cloud.service-registry.auto-registration.enabled:…

Alpha_Omega
- 91
- 7
0
votes
1 answer
Read class from Zookeeper (path with underscore) in Spring Boot application
We store in Zookeeper nodes some standard configuration for multiple cases. It is a flat list of simple values (string, boolean, integer etc). So for now we have a class describing this config, with corresponding fields, and fill its instances using…

marlett
- 35
- 1
- 7
0
votes
1 answer
Setup Zookeeper to deliver configuration one time only per application instance [Spring]
I can't find a solution or any hints online regarding my problem.
I want to set up central configuration manager with Apache Zookeeper for my Spring Boot application which can have multiple instances at the same time.
So in Zookeeper, I would only…

backend-designer
- 1
- 1
0
votes
0 answers
Zookeeper Service Discovery Znode Deleted after 40s
I've 2 application in which service 1 consumes service 2 with service 2 replicated into 3 instances. Service 1 connects to service 2 using spring-cloud-zookeeper-discovery.
The application works as expected until I bring down one of the instance of…

Karthik Prasad
- 9,662
- 10
- 64
- 112
0
votes
0 answers
Not able to access https service registered on zookeeper as discovery server via feign client
I have 2 services registered to zookeeper as discovery server. Both have SSl enabled
I want to access service 1 using a feign client which is in service 2.
I have created a keystore to make the endpoints https in both the services.
Also i have set…

Anmol
- 31
- 1
- 3
0
votes
1 answer
How to disable spring cloud zookeeper when executing integration test
The integration test tries to connect to zookeeper, when I test my code with TestRestTemplate and spring-cloud-zookeeper-discovery dependency. If zookeeper is not running the test throws an exception.
Here is simple project where you can reproduce…

Dennis Gloss
- 2,307
- 4
- 21
- 27
0
votes
1 answer
Spring cloud with zookeeper dependencies get NullException in the second vister
I have an application with the name
spring:
application:
name: /business/paysystem-service
and I setting the client with the configuration
spring:
zookeeper:
dependencies:
PayService:
path: /business/paysystem-service
so I can…

Vincent Kang
- 13
- 1
- 8
0
votes
1 answer
Application dependencies (another apps)
We need to deploy our 4 applications (3 spring boot apps and 1 zookeper) with docker stack. As our DevOps guy told us, there is no way how to define in docker stack which application will be depending on another like in docker compose, so we as…

Denis Stephanov
- 4,563
- 24
- 78
- 174