Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CRaC for Config Server and Client #2367

Open
quartex opened this issue Dec 15, 2023 · 1 comment
Open

Add support for CRaC for Config Server and Client #2367

quartex opened this issue Dec 15, 2023 · 1 comment
Assignees
Projects

Comments

@quartex
Copy link

quartex commented Dec 15, 2023

Hi,
I'm trying using Crac with Spring Cloud 2023 with all my microservices that use enviroment name (SPRING_PROFILES_ACTIVE) and Spring Cloud config to get all application settings.
When I try to get a dump passing parameter
spring.context.checkpoint=onRefresh
to jvm an error is reported describing that are open streams (point to Config Server) and dump is not possible.
I switched the Config server off in my application.yml with
spring.cloud.config.enabled=false
and the jvm get the dump with success but after restore all settings is not present and my applications does not start.

I tried to put in Jvm restore
-e SPRING_PROFILES_ACTIVE=prod -e JAVA_TOOL_OPTIONS="-Dspring.cloud.config.enabled=true" but it does not work

I search for an example using Spring Cloud Config Server but is not present at the moment.

I would like to do a dump with the settings taken from the config server in a non-production environment and be able to set that the production ones are taken during the restore. Is it possible ?

Thanks a lot

@OlgaMaciaszek
Copy link
Contributor

Hello @quartex this is not supported at this point; we'll be adding support later this year and will be documented as it does. So far in Spring Cloud we have support for SC Commons, with the ContextRefresh and LoadBalancer. Supported projects can be tracked by what gets added to the CRaC smoke tests repo.

@OlgaMaciaszek OlgaMaciaszek changed the title Sprint Config Server in Spring cloud 2023 with Crac does not work Add support for CRaC for Config Server and Client Jan 11, 2024
@OlgaMaciaszek OlgaMaciaszek self-assigned this Jan 11, 2024
@OlgaMaciaszek OlgaMaciaszek added this to To do in Backlog via automation Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Backlog
To do
Development

No branches or pull requests

2 participants