Repository navigation
[#383] Add clustering daemon integration, backup discovery, and documentation - #1747
Closed
manishpatel00 wants to merge 2 commits into
Closed
manishpatel00 wants to merge 2 commits into
manishpatel00 wants to merge 2 commits into
Conversation
…upport Introduce foundational clustering support for node synchronization: 1. Bitset: Add a bounds-safe bitset data structure (bitset.h, bitset.c) for tracking chunk streaming and transfer states, with unit tests in test_bitset.c. 2. Configuration: Add clustering settings (clustering, clustering_id, clustering_nodes, clustering_base_dir) to main_configuration, server configuration, INI parser, reload transfer, and validation rules. 3. Wire Protocol Framing: Add JSON framing for clustering commands (CLUSTERING_GET_ID, CLUSTERING_GET_SERVERS), outcome responses, and active node discovery (pgmoneta_clustering_check_active). Fixes pgmoneta#383 Signed-off-by: Manish Kumar <[email protected]>
…nd documentation Add daemon integration and backup discovery for clustering support: 1. Daemon Integration: Add clustering socket binding, listener callback (accept_clustering_cb), and periodic clustering worker dispatch (clustering_cb) in src/main.c. 2. Backup Discovery: Implement CLUSTERING_GET_BACKUPS command request and response framing with server backup listing in src/libpgmoneta/clustering.c. 3. Metadata & Tracking: Record OWNER in backup.info (INFO_OWNER, struct backup) and expose via management API (MANAGEMENT_ARGUMENT_OWNER). 4. Documentation & Tests: Document clustering configuration parameters and wire protocol framing, with unit tests in test_clustering.c. Fixes pgmoneta#383 Signed-off-by: Manish Kumar <[email protected]>
Collaborator
|
same here, closing - read the reasons on #1751 |
Contributor
Author
|
@ecleon26 I have read the reasons on #1751 and posted a consolidated response covering both closed PRs here: #1745 (comment) . Could you clarify the accepted scope for any reusable work or follow-up contribution before I revise this further? |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follows #1745
Fixes #383
Description
Delivers Part 2 of clustering support for node synchronization:
config->clustering, connection acceptance callback (accept_clustering_cb), and periodic node synchronization dispatch (clustering_cb) insrc/main.c.CLUSTERING_GET_BACKUPSrequest and response handling (pgmoneta_clustering_request_get_backups,pgmoneta_clustering_response_get_backups) and node worker loop (pgmoneta_clustering_run) insrc/libpgmoneta/clustering.c.INFO_OWNERrecording inbackup.info, struct fieldownerinstruct backup, and exposure through the management API viaMANAGEMENT_ARGUMENT_OWNER.doc/CONFIGURATION.md,doc/manual/en/04-configuration.md,doc/man/pgmoneta.conf.5.rst), architecture overview (doc/manual/en/72-architecture.md), and MCTF unit tests intest/testcases/test_clustering.c.