spring-cloud / spring-cloud/spring-cloud-config

Add support for CRaC for Config Server and Client

Open
#2,367 6 comments 0 reactions 1 assignee View on GitHub

@OlgaMaciaszek is already working on this.

Since Jan 11, 2024.

enhancement
Dominant language
Java
Stars
2k
Forks
1.3k
Avg merge
2d 59m
Merged PRs (30d)
16

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.