-
Notifications
You must be signed in to change notification settings - Fork 6
Add actions to list nodes and retrieve node metrics #418
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
1581a0d
Add proto messages for NodeMetadata and ClusterNodes
CGodiksen 9370183
Add NodeMetrics proto message
CGodiksen 054c01d
Add node to ClusterMode::SingleNode for self identity
CGodiksen 6af2554
Add sysinfo as a dependency to server
CGodiksen d4a9657
Add getters for the remaining memory in bytes to storage engine
CGodiksen bdea1a2
Add method to get all nodes in the cluster
CGodiksen 8f3252d
Add util method to get local data folder disk space
CGodiksen 469b6ba
Add ListNodes action
CGodiksen c6f6916
Add NodeMetrics action
CGodiksen 0ce9d4e
Add new actions to list_actions
CGodiksen b22605e
Use new nodes method in peer_nodes()
CGodiksen 51d55d5
Separate ListNodes implementation into relevant helper functions
CGodiksen 330ef04
Move ClusterMode from main.rs into cluster.rs
CGodiksen 1d74d9d
Update imports for ClusterMode
CGodiksen 6ad47b6
Move collection of metrics out of do_action and into Context
CGodiksen f19e3b9
Remove misleading comment
CGodiksen 972ebf7
Fix integration test after adding new actions
CGodiksen 8861c26
Add prost decode error to modelardb_embedded
CGodiksen 50e227b
Add a method to deserialize and extract cluster nodes from protobuf
CGodiksen 259e0d9
Add test for serializing and deserializing nodes
CGodiksen c4ac14b
Add helper methods to run actions on Client
CGodiksen 8d57405
Refactor action helper so they can be used in modelardb_type and create
CGodiksen c402383
Add basic node operations to Client struct
CGodiksen 2e173f0
Change order of helper methods for consistency
CGodiksen 1735212
Add a method that uses get_flight_info to get the cloud query node
CGodiksen 7ddb124
Add integration test for list nodes action
CGodiksen b890074
Add integration test for node metrics action
CGodiksen d3a6235
Simplify subtraction for used disk space
CGodiksen 33d1bd8
Add better error handling in retrieve_action_bytes()
CGodiksen 20d1376
Simplify local_data_folder_disk_space() based on comments from @skejs…
CGodiksen 0278ae1
Clamp the remaining memory to 0 instead of the used memory
CGodiksen b0d6607
Update based on comments from @skejserjensen
CGodiksen b2df518
Merge branch 'main' into dev/node-operations
CGodiksen 50f509d
Update based on comments from @chrthomsen
CGodiksen 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.