-
Notifications
You must be signed in to change notification settings - Fork 88
fix(clp-package): Add missing archive output and storage engine settings to server configuration (fixes #1799). #1803
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
base: main
Are you sure you want to change the base?
Conversation
… server configuration (fixes y-scope#1799).
WalkthroughThe PR updates the controller module to expose additional archive output configuration fields and storage engine settings in the Web UI client and server configurations, including compression levels, target sizes, and database table identifiers. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (3)📓 Common learnings📚 Learning: 2025-10-17T19:59:25.596ZApplied to files:
📚 Learning: 2025-10-27T07:07:37.901ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| self._clp_config.archive_output.target_encoded_file_size | ||
| ), | ||
| "ArchiveOutputTargetSegmentSize": self._clp_config.archive_output.target_segment_size, | ||
| "ClpStorageEngine": self._clp_config.package.storage_engine, |
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.
want to reverse the order of clpQueryEngine, and clpStrorageEngine so matches package config and setting.json
davemarco
left a comment
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.
i left a nit but approve
…ngine and ClpStorageEngine orders
Description
The
server_settings_json_updatesdictionary in_set_up_env_for_webuiwas missing several configuration keys that are defined in the WebUI server'ssettings.jsontemplate:SqlDbCompressionJobsTableNameArchiveOutputCompressionLevelArchiveOutputTargetArchiveSizeArchiveOutputTargetDictionariesSizeArchiveOutputTargetEncodedFileSizeArchiveOutputTargetSegmentSizeClpStorageEngineWithout these settings, user configurations for archive output parameters and storage engine were not being propagated to the WebUI server's
settings.jsonfile. This fix ensures the WebUI server receives these values from the CLP package configuration.Checklist
breaking change.
Validation performed
observed the configurations now show up in
build/clp-package/var/www/webui/server/dist/settings.json{ "SqlDbHost": "database", "SqlDbPort": 3306, "SqlDbName": "clp-db", "SqlDbQueryJobsTableName": "query_jobs", "SqlDbCompressionJobsTableName": "compression_jobs", "MongoDbHost": "results_cache", "MongoDbPort": 27017, "MongoDbName": "clp-query-results", "MongoDbSearchResultsMetadataCollectionName": "results-metadata", "MongoDbStreamFilesCollectionName": "stream-files", "ClientDir": "/opt/clp/var/www/webui/client", "LogViewerDir": "/opt/clp/var/www/webui/yscope-log-viewer", "LogsInputRootDir": "/mnt/logs", "StreamFilesDir": "/var/data/streams", "StreamTargetUncompressedSize": 134217728, "StreamFilesS3Region": null, "StreamFilesS3PathPrefix": null, "StreamFilesS3Profile": null, "ArchiveOutputCompressionLevel": 3, "ArchiveOutputTargetArchiveSize": 268435456, "ArchiveOutputTargetDictionariesSize": 33554432, "ArchiveOutputTargetEncodedFileSize": 268435456, "ArchiveOutputTargetSegmentSize": 268435456, "ClpQueryEngine": "clp-s", "ClpStorageEngine": "clp-s", "PrestoHost": null, "PrestoPort": null }Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.