Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Sentinel configuration not implements? #2

Open
nemodeveloper opened this issue Apr 6, 2020 · 2 comments
Open

Sentinel configuration not implements? #2

nemodeveloper opened this issue Apr 6, 2020 · 2 comments

Comments

@nemodeveloper
Copy link

Hello im Aleksey
Im start using this library and not found how it configure sentinel connection with LettuSearch ?

From your configuration

@bean(destroyMethod = "shutdown")
RediSearchClient client(ClientResources clientResources) {
RedisURI redisURI = RedisURI.create(redisProperties.getHost(), redisProperties.getPort());
if (redisProperties.getPassword() != null) {
redisURI.setPassword(redisProperties.getPassword());
}
Duration timeout = redisProperties.getTimeout();
if (timeout != null) {
redisURI.setTimeout(timeout);
}
return RediSearchClient.create(clientResources, redisURI);
}

Its work only with standalone configuration or im not understand something?)
How i can connect this?

Also im using spring-boot-starter-data-redis
And im need configure RediSearchClient for send query to RediSearch
My RedisProperties can be different one moment its standalone and another sentinel

@jruaux
Copy link
Collaborator

jruaux commented Oct 23, 2020

Sorry I missed this issue. Sentinel support was added to LettuSearch 2.4.2. Can you check this thread and see if it works for you?

@Ananda2126
Copy link

Sentinel configuration is not working with lettuSearch 2.4.4 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants