-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Multi DB with namespace support, Introducing the database_global.json… #4477
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a57061e
Multi DB with namespace support, Introducing the database_global.json…
judyjoseph b7dfc9e
Updates based on comments
judyjoseph 009f272
Adding the j2 templates for database_config and database_global files.
judyjoseph 77d343c
Updating to retrieve the redis DIR's to be mounted from database_glob…
judyjoseph a582f63
Additional check to see if asic.conf file exists before sourcing it.
judyjoseph 5dcf99e
Updates based on PR comments discussion.
judyjoseph 6503517
Review comments update
judyjoseph cec71f1
Updates to the argument "-n" for namespace used in both context of pa…
judyjoseph 1ba9082
Update with the attribute "persistence_for_warm_boot" that was added …
judyjoseph 1875a49
Removing the database_config.json file to avioid confusion in future.
judyjoseph 65c0926
Update the comments for sudo usage in docker_image_ctrl.j2
judyjoseph fb9cf04
Update with the new logic in PING PONG tests using sonic-db-cli. With…
judyjoseph b7bc8ef
Similar changes in swss and syncd scripts for the PING tests with son…
judyjoseph 73b6fac
Updated with a missing , in the database_config.json.j2 file, Do pip …
judyjoseph File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% set namespace_cnt = NAMESPACE_COUNT|int %} | ||
{ | ||
"INCLUDES" : [ | ||
{ | ||
"include" : "../../redis/sonic-db/database_config.json" | ||
}, | ||
{% if namespace_cnt > 1 %} | ||
{% for ns in range(namespace_cnt) %} | ||
{ | ||
"namespace" : "{{NAMESPACE_PREFIX}}{{ns}}", | ||
"include" : "../../redis{{ns}}/sonic-db/database_config.json" | ||
{% if ns == namespace_cnt-1 %} | ||
} | ||
{% else %} | ||
}, | ||
{% endif %} | ||
{% endfor %} | ||
], | ||
"VERSION" : "1.0" | ||
} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so customized database_config.json is not in j2 format, it is a well-formatted json file ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes the customized json file will is a well-formatted json file, and not j2 template.