feat: add CPA-Manager config migration#82
Merged
Conversation
Add a persisted CPA-Manager configuration model with SQLite storage and a management API for reading and saving runtime settings. Use the saved configuration to control collector startup, request monitoring enablement, poll interval, batch size, transport settings, and legacy setup fallback. Validate collector polling against CPA queue retention and enable CPA usage publishing only when request monitoring is active, reducing data loss risk during setup. Refs #78, #79, #80.
Add CPA-Manager configuration controls for Usage Service runtime settings, request monitoring enablement, and collector tuning from the configuration page. Move external Usage Service setup out of System Info, add the hosted setup wizard, and expose monitoring availability so unavailable request monitoring has a clear path back to configuration. Localize the new setup, monitoring, and Usage Service error states across supported languages while keeping legacy Usage Service bootstrap data compatible. Refs #78, #79, #80.
Update the English and Chinese README files to describe the CPA versus CPA-Manager configuration boundary and the new persisted manager configuration flow. Document setup behavior, queue retention constraints, request monitoring disable semantics, migration steps, and the updated Usage Service endpoints. The documentation reduces upgrade ambiguity for users moving from environment variables, config files, or legacy setup storage to SQLite-backed CPAM settings. Refs #81.
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.
Summary
Add persisted CPA-Manager runtime configuration across Usage Service and the web panel, including request monitoring setup, collector controls, and migration docs.
Changes
Testing
Related
Closes #78
Closes #79
Closes #80
Closes #81