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

Local Standby if Remote Repository is not available

Open
#1,928 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

This issue has been addressed here How do I setup a local fallback config for Spring Cloud Config service incase remote repo is not available? . However the solution seems to be very manual.

I would have hoped that by using order I could;
order:1 try git and if it is accessible, clone/pull to baseDir. If GIT access fails use
order:2 native to access git:baseDir via native:seachLocations.

I would have thought, it would be better for order:1 to not delete baseDir before attempting GIT and only if GIT is available proceed with re-building baseDir.

As the linked solution suggests, in order to get around this problem, I need to start config with 'clone/pull' set, then remove, before the next run.

I see this issue mentioned in a number of places e.g. [#631] (https://github.com/spring-cloud/spring-cloud-config/issues/631) - however this issue and others seems to all point to each other and I don't see a resolution.

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.

Research direction

Read the linked Stack Overflow solution and related issue #631 first, then trace the existing git clone/pull and native search-location behavior. Done means a failed remote repository access preserves and uses the local fallback without requiring the manual startup sequence described here.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, java, spring-boot
Domain
backend, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.